diff options
author | Sjors Provoost <sjors@sprovoost.nl> | 2024-08-26 18:16:08 +0200 |
---|---|---|
committer | Sjors Provoost <sjors@sprovoost.nl> | 2024-09-17 09:24:01 +0200 |
commit | 7eccdaf16081d6f624c4dc21df75b0474e049d2b (patch) | |
tree | 1cce3e012cfc53bad36a8594af27cf43a0860e5e /src/init.cpp | |
parent | ebb8215f23644f901c46fd4977b7d4b08fae5104 (diff) |
node: Track last block that received a blockTip notification
Also signal m_tip_block_cv when StopRPC is called, for
consistency with g_best_block_cv. This is handled in
StopRPC instead of OnRPCStopped() because the latter
is deleted in a later commit.
Co-authored-by: TheCharlatan <seb.kung@gmail.com>
Co-authored-by: Ryan Ofsky <ryan@ofsky.org>
Diffstat (limited to 'src/init.cpp')
-rw-r--r-- | src/init.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/init.cpp b/src/init.cpp index d6c80d8f84..65575f26fc 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -284,7 +284,7 @@ void Shutdown(NodeContext& node) StopHTTPRPC(); StopREST(); - StopRPC(); + StopRPC(&node); StopHTTPServer(); for (const auto& client : node.chain_clients) { client->flush(); |