Skip to content

Commit

Permalink
Fix undefined behavior in the test_bitcoin tests
Browse files Browse the repository at this point in the history
  • Loading branch information
defuse authored and daira committed Oct 1, 2020
1 parent 939c5df commit 3693b96
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/consensus/params.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/wallet/test/rpc_wallet_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3693b96

Please sign in to comment.