Skip to content

Commit

Permalink
Call RPCNotifyBlockChange on RPC stopped
Browse files Browse the repository at this point in the history
  • Loading branch information
panleone committed Mar 27, 2024
1 parent af10755 commit d19d9fa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,8 @@ void OnRPCStarted()
void OnRPCStopped()
{
uiInterface.NotifyBlockTip.disconnect(RPCNotifyBlockChange);
//RPCNotifyBlockChange(0);
// TODO: remove unused parameter fInitialDownload
RPCNotifyBlockChange(false, nullptr);
g_best_block_cv.notify_all();
LogPrint(BCLog::RPC, "RPC stopped.\n");
}
Expand Down

0 comments on commit d19d9fa

Please sign in to comment.