Auto merge of #4484 - defuse:fix-undefined-behavior-in-bitcoin-test, r=str4d

Fix undefined behavior in the test_bitcoin tests
This commit is contained in:
Homu 2020-10-01 15:19:39 +00:00
commit eb4c9ea0a3
2 changed files with 2 additions and 2 deletions

View File

@ -168,7 +168,7 @@ struct Params {
uint256 hashGenesisBlock;
bool fCoinbaseMustBeShielded;
bool fCoinbaseMustBeShielded = false;
/** Needs to evenly divide MAX_SUBSIDY to avoid rounding errors. */
int nSubsidySlowStartInterval;

View File

@ -2021,7 +2021,7 @@ BOOST_AUTO_TEST_CASE(rpc_z_mergetoaddress_internals)
TEST_FRIEND_AsyncRPCOperation_mergetoaddress proxy(ptr);
// Enable test mode so tx is not sent and proofs are not generated
static_cast<AsyncRPCOperation_sendmany *>(operation.get())->testmode = true;
static_cast<AsyncRPCOperation_mergetoaddress *>(operation.get())->testmode = true;
MergeToAddressJSInfo info;
std::vector<boost::optional < SproutWitness>> witnesses;