@@ -27,7 +27,7 @@ BOOST_FIXTURE_TEST_CASE(SubtractFee, TestChain100Setup)
27
27
// leftover input amount which would have been change to the recipient
28
28
// instead of the miner.
29
29
auto check_tx = [&wallet](CAmount leftover_input_amount) {
30
- CRecipient recipient{PubKeyDestination ({}), 50 * COIN - leftover_input_amount, /* subtract_fee=*/ true };
30
+ CRecipient recipient{PubKeyDestination ({}), /* Bitgesell genesis is 200 */ 200 * COIN - leftover_input_amount, /* subtract_fee=*/ true };
31
31
CCoinControl coin_control;
32
32
coin_control.m_feerate .emplace (10000 );
33
33
coin_control.fOverrideFeeRate = true ;
@@ -78,7 +78,8 @@ BOOST_FIXTURE_TEST_CASE(wallet_duplicated_preset_inputs_test, TestChain100Setup)
78
78
// Try to create a tx that spends more than what preset inputs + wallet selected inputs are covering for.
79
79
// The wallet can cover up to 200 BTC, and the tx target is 299 BTC.
80
80
std::vector<CRecipient> recipients{{*Assert (wallet->GetNewDestination (OutputType::BECH32, " dummy" )),
81
- /* nAmount=*/ 299 * COIN, /* fSubtractFeeFromAmount=*/ true }};
81
+ /* nAmount=*/ 899 * COIN, /* fSubtractFeeFromAmount=*/ true }};
82
+ // Adjusted the value of nAmount to 899 instead of 299 because Bitgesell genesis is at 200 * COIN while Bitcoin is at 50 * COIN
82
83
CCoinControl coin_control;
83
84
coin_control.m_allow_other_inputs = true ;
84
85
for (const auto & outpoint : preset_inputs) {
0 commit comments