File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ CCriticalSection cs_main;
6363BlockMap mapBlockIndex;
6464CChain chainActive;
6565CBlockIndex *pindexBestHeader = NULL ;
66- int64_t nTimeBestReceived = 0 ;
66+ int64_t nTimeBestReceived = 0 ; // Used only to inform the wallet of when we last received a block
6767CWaitableCriticalSection csBestBlock;
6868CConditionVariable cvBlockChange;
6969int nScriptCheckThreads = 0 ;
@@ -2690,7 +2690,6 @@ void static UpdateTip(CBlockIndex *pindexNew, const CChainParams& chainParams) {
26902690 chainActive.SetTip (pindexNew);
26912691
26922692 // New best block
2693- nTimeBestReceived = GetTime ();
26942693 mempool.AddTransactionsUpdated (1 );
26952694
26962695 cvBlockChange.notify_all ();
@@ -4736,6 +4735,8 @@ void PeerLogicValidation::UpdatedBlockTip(const CBlockIndex *pindexNew, const CB
47364735 }
47374736 });
47384737 }
4738+
4739+ nTimeBestReceived = GetTime ();
47394740}
47404741
47414742void PeerLogicValidation::BlockChecked (const CBlock& block, const CValidationState& state) {
You can’t perform that action at this time.
0 commit comments