mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-04 10:12:28 +02:00
make BlockUntilSyncedToCurrentChain() const
The method checks the chain tip for the best block, and calls SyncWithValidationInterfaceQueue() (a standalone function) if necessary.
This commit is contained in:
@@ -270,7 +270,7 @@ void BaseIndex::ChainStateFlushed(const CBlockLocator& locator)
|
||||
Commit();
|
||||
}
|
||||
|
||||
bool BaseIndex::BlockUntilSyncedToCurrentChain()
|
||||
bool BaseIndex::BlockUntilSyncedToCurrentChain() const
|
||||
{
|
||||
AssertLockNotHeld(cs_main);
|
||||
|
||||
|
||||
@@ -97,7 +97,7 @@ public:
|
||||
/// sync once and only needs to process blocks in the ValidationInterface
|
||||
/// queue. If the index is catching up from far behind, this method does
|
||||
/// not block and immediately returns false.
|
||||
bool BlockUntilSyncedToCurrentChain();
|
||||
bool BlockUntilSyncedToCurrentChain() const;
|
||||
|
||||
void Interrupt();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user