interfaces: Add waitForNotifications() to call SyncWithValidationInterfaceQueue()

Co-Authored-By: stickies-v <stickies-v@protonmail.com>
This commit is contained in:
Ava Chow
2026-02-20 14:23:32 -08:00
parent ce6898f9a8
commit 52992ebe1c
2 changed files with 10 additions and 0 deletions

View File

@@ -785,6 +785,10 @@ public:
if (!old_tip.IsNull() && old_tip == WITH_LOCK(::cs_main, return chainman().ActiveChain().Tip()->GetBlockHash())) return;
validation_signals().SyncWithValidationInterfaceQueue();
}
void waitForNotifications() override
{
validation_signals().SyncWithValidationInterfaceQueue();
}
std::unique_ptr<Handler> handleRpc(const CRPCCommand& command) override
{
return std::make_unique<RpcHandlerImpl>(command);