Skip to content

Commit 1b72ce3

Browse files
committed
Fix failing tests (wallet/test/wallet_tests.cpp)
1 parent e5950e2 commit 1b72ce3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/wallet/test/wallet_tests.cpp

+5-5
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ BOOST_FIXTURE_TEST_CASE(scan_for_wallet_transactions, TestChain100Setup)
127127
BOOST_CHECK(result.last_failed_block.IsNull());
128128
BOOST_CHECK_EQUAL(result.last_scanned_block, newTip->GetBlockHash());
129129
BOOST_CHECK_EQUAL(*result.last_scanned_height, newTip->nHeight);
130-
BOOST_CHECK_EQUAL(GetBalance(wallet).m_mine_immature, 100 * COIN);
130+
BOOST_CHECK_EQUAL(GetBalance(wallet).m_mine_immature, 400 * COIN);
131131

132132
{
133133
CBlockLocator locator;
@@ -163,7 +163,7 @@ BOOST_FIXTURE_TEST_CASE(scan_for_wallet_transactions, TestChain100Setup)
163163
BOOST_CHECK_EQUAL(result.last_failed_block, oldTip->GetBlockHash());
164164
BOOST_CHECK_EQUAL(result.last_scanned_block, newTip->GetBlockHash());
165165
BOOST_CHECK_EQUAL(*result.last_scanned_height, newTip->nHeight);
166-
BOOST_CHECK_EQUAL(GetBalance(wallet).m_mine_immature, 50 * COIN);
166+
BOOST_CHECK_EQUAL(GetBalance(wallet).m_mine_immature, 200 * COIN);
167167
}
168168

169169
// Prune the remaining block file.
@@ -248,7 +248,7 @@ BOOST_FIXTURE_TEST_CASE(importmulti_rescan, TestChain100Setup)
248248
"timestamp %d. There was an error reading a block from time %d, which is after or within %d "
249249
"seconds of key creation, and could contain transactions pertaining to the key. As a result, "
250250
"transactions and coins using this key may not appear in the wallet. This error could be caused "
251-
"by pruning or data corruption (see bitcoind log for details) and could be dealt with by "
251+
"by pruning or data corruption (see BGLd log for details) and could be dealt with by "
252252
"downloading and rescanning the relevant blocks (see -reindex option and rescanblockchain "
253253
"RPC).\"}},{\"success\":true}]",
254254
0, oldTip->GetBlockTimeMax(), TIMESTAMP_WINDOW));
@@ -389,7 +389,7 @@ BOOST_FIXTURE_TEST_CASE(coin_mark_dirty_immature_credit, TestChain100Setup)
389389
// credit amount is calculated.
390390
wtx.MarkDirty();
391391
AddKey(wallet, coinbaseKey);
392-
BOOST_CHECK_EQUAL(CachedTxGetImmatureCredit(wallet, wtx, ISMINE_SPENDABLE), 50*COIN);
392+
BOOST_CHECK_EQUAL(CachedTxGetImmatureCredit(wallet, wtx, ISMINE_SPENDABLE), 200*COIN);
393393
}
394394

395395
static int64_t AddTx(ChainstateManager& chainman, CWallet& wallet, uint32_t lockTime, int64_t mockTime, int64_t blockTime)
@@ -635,7 +635,7 @@ BOOST_FIXTURE_TEST_CASE(ListCoinsTest, ListCoinsTestingSetup)
635635
BOOST_CHECK_EQUAL(list.begin()->second.size(), 1U);
636636

637637
// Check initial balance from one mature coinbase transaction.
638-
BOOST_CHECK_EQUAL(50 * COIN, WITH_LOCK(wallet->cs_wallet, return AvailableCoins(*wallet).GetTotalAmount()));
638+
BOOST_CHECK_EQUAL(200 * COIN, WITH_LOCK(wallet->cs_wallet, return AvailableCoins(*wallet).GetTotalAmount()));
639639

640640
// Add a transaction creating a change address, and confirm ListCoins still
641641
// returns the coin associated with the change address underneath the

0 commit comments

Comments
 (0)