From 485145ea781adedf2fc7fd9e48c70db8477be948 Mon Sep 17 00:00:00 2001 From: Simon Date: Tue, 6 Sep 2016 22:55:08 -0700 Subject: [PATCH] Disable proof generation when testmode is enabled in async SendMany operation. --- src/wallet/asyncrpcoperation_sendmany.cpp | 3 ++- src/wallet/asyncrpcoperation_sendmany.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/wallet/asyncrpcoperation_sendmany.cpp b/src/wallet/asyncrpcoperation_sendmany.cpp index dffc2e0d..63896bd7 100644 --- a/src/wallet/asyncrpcoperation_sendmany.cpp +++ b/src/wallet/asyncrpcoperation_sendmany.cpp @@ -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"); diff --git a/src/wallet/asyncrpcoperation_sendmany.h b/src/wallet/asyncrpcoperation_sendmany.h index 12ae3d59..df10a2ce 100644 --- a/src/wallet/asyncrpcoperation_sendmany.h +++ b/src/wallet/asyncrpcoperation_sendmany.h @@ -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