diff options
author | Carl Dong <contact@carldong.me> | 2021-08-18 14:36:28 -0400 |
---|---|---|
committer | Carl Dong <contact@carldong.me> | 2021-12-07 14:48:06 -0500 |
commit | 2414ebc18b8bebf79c47e58a4293d0fc6420a811 (patch) | |
tree | 2f12fa9c8c90fda63b430dcd0ad3860ab87675cf /src/node | |
parent | 8d466a8504bfb81ce8699d650aa72ec9cc8b0a54 (diff) |
init: Delay RPC block notif until warmup finished
See added code comment for more details.
Diffstat (limited to 'src/node')
-rw-r--r-- | src/node/chainstate.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/node/chainstate.cpp b/src/node/chainstate.cpp index c795c740e4..56d1073bab 100644 --- a/src/node/chainstate.cpp +++ b/src/node/chainstate.cpp @@ -5,7 +5,6 @@ #include <node/chainstate.h> #include <chainparams.h> // for CChainParams -#include <rpc/blockchain.h> // for RPCNotifyBlockChange #include <util/time.h> // for GetTime #include <node/blockstorage.h> // for CleanupBlockRevFiles, fHavePruned, fReindex #include <shutdown.h> // for ShutdownRequested @@ -144,7 +143,6 @@ std::optional<ChainstateLoadVerifyError> VerifyLoadedChainstate(ChainstateManage for (CChainState* chainstate : chainman.GetAll()) { if (!is_coinsview_empty(chainstate)) { const CBlockIndex* tip = chainstate->m_chain.Tip(); - RPCNotifyBlockChange(tip); if (tip && tip->nTime > GetTime() + MAX_FUTURE_BLOCK_TIME) { return ChainstateLoadVerifyError::ERROR_BLOCK_FROM_FUTURE; } |