MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / waitForNotificationsIfTipChanged

Method waitForNotificationsIfTipChanged

src/node/interfaces.cpp:796–800  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

794 return std::make_unique<NotificationsHandlerImpl>(validation_signals(), std::move(notifications));
795 }
796 void waitForNotificationsIfTipChanged(const uint256& old_tip) override
797 {
798 if (!old_tip.IsNull() && old_tip == WITH_LOCK(::cs_main, return chainman().ActiveChain().Tip()->GetBlockHash())) return;
799 validation_signals().SyncWithValidationInterfaceQueue();
800 }
801 void waitForNotifications() override
802 {
803 validation_signals().SyncWithValidationInterfaceQueue();

Callers 3

TestUnloadWalletFunction · 0.80
WalletBalanceFunction · 0.80

Calls 4

IsNullMethod · 0.45
GetBlockHashMethod · 0.45
TipMethod · 0.45

Tested by 1

TestUnloadWalletFunction · 0.64