diff options
| author | Antoine Riard <[email protected]> | 2019-04-20 12:02:52 -0400 |
|---|---|---|
| committer | Antoine Riard <[email protected]> | 2019-11-05 12:59:16 -0500 |
| commit | 5aacc3eff15b9b5bdc951f1e274f00d581f63bce (patch) | |
| tree | cdfccd67221dfa0ea43311e5fb99f2b74140e4f6 /src/qt/test/wallettests.cpp | |
| parent | Pass block height in Chain::BlockConnected/Chain::BlockDisconnected (diff) | |
| download | discoin-5aacc3eff15b9b5bdc951f1e274f00d581f63bce.tar.xz discoin-5aacc3eff15b9b5bdc951f1e274f00d581f63bce.zip | |
Add m_last_block_processed_height field in CWallet
At BlockConnected/BlockDisconnected, we rely on height of block
itself to know current height of wallet
Diffstat (limited to 'src/qt/test/wallettests.cpp')
| -rw-r--r-- | src/qt/test/wallettests.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qt/test/wallettests.cpp b/src/qt/test/wallettests.cpp index 881653cda..6e009145a 100644 --- a/src/qt/test/wallettests.cpp +++ b/src/qt/test/wallettests.cpp @@ -139,10 +139,12 @@ void TestGUI(interfaces::Node& node) wallet->LoadWallet(firstRun); { auto spk_man = wallet->GetLegacyScriptPubKeyMan(); + auto locked_chain = wallet->chain().lock(); LOCK(wallet->cs_wallet); AssertLockHeld(spk_man->cs_wallet); wallet->SetAddressBook(GetDestinationForKey(test.coinbaseKey.GetPubKey(), wallet->m_default_address_type), "", "receive"); spk_man->AddKeyPubKey(test.coinbaseKey, test.coinbaseKey.GetPubKey()); + wallet->SetLastBlockProcessed(105, ::ChainActive().Tip()->GetBlockHash()); } { auto locked_chain = wallet->chain().lock(); |