diff options
author | Karl-Johan Alm <karljohan-alm@garage.co.jp> | 2020-03-02 15:57:25 +0900 |
---|---|---|
committer | Karl-Johan Alm <karljohan-alm@garage.co.jp> | 2020-03-02 17:26:30 +0900 |
commit | dc2d0650fdb69d27fe1b0092555b7841d542a635 (patch) | |
tree | d7d5de77c40f5118148187cbc723205b35bd0b1d /src/wallet/wallet.cpp | |
parent | 54a7ef612a3b69984d521432f8a694a682c76090 (diff) | |
download | bitcoin-dc2d0650fdb69d27fe1b0092555b7841d542a635.tar.xz |
make BlockUntilSyncedToCurrentChain() const
The method checks the chain tip for the best block, and calls SyncWithValidationInterfaceQueue() (a standalone function) if necessary.
Diffstat (limited to 'src/wallet/wallet.cpp')
-rw-r--r-- | src/wallet/wallet.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index 5a97f62b71..ed7601dbbc 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -1150,7 +1150,7 @@ void CWallet::UpdatedBlockTip() } -void CWallet::BlockUntilSyncedToCurrentChain() { +void CWallet::BlockUntilSyncedToCurrentChain() const { AssertLockNotHeld(cs_wallet); // Skip the queue-draining stuff if we know we're caught up with // ::ChainActive().Tip(), otherwise put a callback in the validation interface queue and wait |