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:
commit
eb4c9ea0a3
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue