Disable tx sig checking at the Application level:

* Only skip sig checking on the RPC/Websocket interface.
* Used by Env tests which submit unsigned transactions.
This commit is contained in:
Edward Hennis
2016-01-22 08:53:37 -05:00
committed by Nik Bougalis
parent 1b378172b6
commit 8e842b5893
7 changed files with 46 additions and 17 deletions

View File

@@ -546,6 +546,9 @@ transactionConstructImpl (std::shared_ptr<STTx const> const& stpTrans,
// Check the signature if that's called for.
auto sttxNew = std::make_shared<STTx const> (sit);
if (!app.checkSigs())
forceValidity(app.getHashRouter(),
sttxNew->getTransactionID(), Validity::SigGoodOnly);
if (checkValidity(app.getHashRouter(),
*sttxNew, rules, app.config()).first != Validity::Valid)
{