Tidy up jtx:

* Tidy declaration order
* Remove AccountInfo
* Remove Env autofill settings
This commit is contained in:
Vinnie Falco
2015-06-13 07:38:07 -07:00
committed by Nik Bougalis
parent 9dd08e4dab
commit eb709f415b
10 changed files with 53 additions and 159 deletions

View File

@@ -28,19 +28,18 @@ namespace jtx {
void
sig::operator()(Env const&, JTx& jt) const
{
if(boost::indeterminate(b_))
if (! manual_)
return;
jt.fill_sig = false;
if(account_)
{
// VFALCO Inefficient pre-C++14
auto const account = account_;
auto const account = *account_;
jt.signer = [account](Env&, JTx& jt)
{
jtx::sign(jt.jv, account);
};
}
else
{
jt.fill_sig = b_;
}
}
} // jtx