Disable proof generation when testmode is enabled in async SendMany operation.

This commit is contained in:
Simon 2016-09-06 22:55:08 -07:00
parent 4cff8a5c50
commit 485145ea78
2 changed files with 3 additions and 2 deletions

View File

@ -838,7 +838,8 @@ Object AsyncRPCOperation_sendmany::perform_joinsplit(
{info.vjsin[0], info.vjsin[1]},
{info.vjsout[0], info.vjsout[1]},
info.vpub_old,
info.vpub_new);
info.vpub_new,
!this->testmode);
if (!(jsdesc.Verify(*zcashParams_, joinSplitPubKey_))) {
throw std::runtime_error("error verifying joinsplit");

View File

@ -54,7 +54,7 @@ public:
virtual void main();
bool testmode = false; // Set this to true to disable sending transactions to the network
bool testmode = false; // Set to true to disable sending txs and generating proofs
private:
friend class TEST_FRIEND_AsyncRPCOperation_sendmany; // class for unit testing