Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/wallet.cpp
Show First 20 Lines • Show All 1,411 Lines • ▼ Show 20 Lines | void CWallet::BlockDisconnected(const CBlock &block) { | ||||
} | } | ||||
} | } | ||||
void CWallet::UpdatedBlockTip() { | void CWallet::UpdatedBlockTip() { | ||||
m_best_block_time = GetTime(); | m_best_block_time = GetTime(); | ||||
} | } | ||||
void CWallet::BlockUntilSyncedToCurrentChain() { | void CWallet::BlockUntilSyncedToCurrentChain() { | ||||
AssertLockNotHeld(cs_main); | |||||
AssertLockNotHeld(cs_wallet); | AssertLockNotHeld(cs_wallet); | ||||
{ | { | ||||
// Skip the queue-draining stuff if we know we're caught up with | // Skip the queue-draining stuff if we know we're caught up with | ||||
// ::ChainActive().Tip()... | // ::ChainActive().Tip()... | ||||
// We could also take cs_wallet here, and call m_last_block_processed | // We could also take cs_wallet here, and call m_last_block_processed | ||||
// protected by cs_wallet instead of cs_main, but as long as we need | // protected by cs_wallet instead of cs_main, but as long as we need | ||||
// cs_main here anyway, it's easier to just call it cs_main-protected. | // cs_main here anyway, it's easier to just call it cs_main-protected. | ||||
▲ Show 20 Lines • Show All 3,569 Lines • Show Last 20 Lines |