| 1358 | } |
| 1359 | |
| 1360 | void CWallet::BlockUntilSyncedToCurrentChain() const { |
| 1361 | AssertLockNotHeld(cs_wallet); |
| 1362 | // Skip the queue-draining stuff if we know we're caught up with |
| 1363 | // chain().Tip(), otherwise put a callback in the validation interface queue and wait |
| 1364 | // for the queue to drain enough to execute it (indicating we are caught up |
| 1365 | // at least with the time we entered this function). |
| 1366 | uint256 last_block_hash = WITH_LOCK(cs_wallet, return m_last_block_processed); |
| 1367 | chain().waitForNotificationsIfTipChanged(last_block_hash); |
| 1368 | } |
| 1369 | |
| 1370 | // Note that this function doesn't distinguish between a 0-valued input, |
| 1371 | // and a not-"is mine" (according to the filter) input. |
no test coverage detected