diff options
| author | Matt Corallo <[email protected]> | 2017-12-24 12:13:13 -0500 |
|---|---|---|
| committer | Matt Corallo <[email protected]> | 2017-12-26 11:56:00 -0500 |
| commit | 97d2b09c124e6e5803f7fd4503348d9710d1260f (patch) | |
| tree | 03f9de627168be7e5ae8a95b6d345b754496a517 /src/wallet/wallet.cpp | |
| parent | Block ActivateBestChain to empty validationinterface queue (diff) | |
| download | discoin-97d2b09c124e6e5803f7fd4503348d9710d1260f.tar.xz discoin-97d2b09c124e6e5803f7fd4503348d9710d1260f.zip | |
Add helper to wait for validation interface queue to catch up
Diffstat (limited to 'src/wallet/wallet.cpp')
| -rw-r--r-- | src/wallet/wallet.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index dafd708d0..cf9bb2909 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -1292,12 +1292,7 @@ void CWallet::BlockUntilSyncedToCurrentChain() { // ...otherwise put a callback in the validation interface queue and wait // for the queue to drain enough to execute it (indicating we are caught up // at least with the time we entered this function). - - std::promise<void> promise; - CallFunctionInValidationInterfaceQueue([&promise] { - promise.set_value(); - }); - promise.get_future().wait(); + SyncWithValidationInterfaceQueue(); } |