Skip to content

Commit 1ed753f

Browse files
committed
Fix wallet_tests.cpp, missing fInMempool flag set.
1 parent 815667d commit 1ed753f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/wallet/test/wallet_tests.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
#include "wallet/wallet.h"
1212

1313
#include <set>
14-
#include <stdint.h>
1514
#include <utility>
1615
#include <vector>
1716

@@ -334,6 +333,7 @@ CBlockIndex* SimpleFakeMine(CWalletTx& wtx, CBlockIndex* pprev = nullptr)
334333
BOOST_CHECK(chainActive.Contains(fakeIndex));
335334
wtx.SetMerkleBranch(fakeIndex->GetBlockHash(), 0);
336335
removeTxFromMempool(wtx);
336+
wtx.fInMempool = false;
337337
return fakeIndex;
338338
}
339339

@@ -436,6 +436,7 @@ BOOST_AUTO_TEST_CASE(cached_balances_tests)
436436

437437
// GetUnconfirmedBalance requires tx in mempool.
438438
fakeMempoolInsertion(wtxCredit.tx);
439+
wtxCredit.fInMempool = true;
439440
BOOST_CHECK_EQUAL(wallet.GetUnconfirmedBalance(), nCredit);
440441

441442
// 2) Confirm tx and verify

0 commit comments

Comments
 (0)