MCPcopy Create free account
hub / github.com/ElementsProject/elements / BlockUntilSyncedToCurrentChain

Method BlockUntilSyncedToCurrentChain

src/wallet/wallet.cpp:1360–1368  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1358}
1359
1360void 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.

Callers 15

listaddressgroupingsFunction · 0.45
dumpwalletFunction · 0.45
importmultiFunction · 0.45
importdescriptorsFunction · 0.45
backupwalletFunction · 0.45
getreceivedbyaddressFunction · 0.45
getreceivedbylabelFunction · 0.45
getbalanceFunction · 0.45
getunconfirmedbalanceFunction · 0.45
lockunspentFunction · 0.45
getbalancesFunction · 0.45
listunspentFunction · 0.45

Tested by

no test coverage detected