|
|
|
@ -63,7 +63,7 @@ CCriticalSection cs_main;
@@ -63,7 +63,7 @@ CCriticalSection cs_main;
|
|
|
|
|
BlockMap mapBlockIndex; |
|
|
|
|
CChain chainActive; |
|
|
|
|
CBlockIndex *pindexBestHeader = NULL; |
|
|
|
|
int64_t nTimeBestReceived = 0; |
|
|
|
|
int64_t nTimeBestReceived = 0; // Used only to inform the wallet of when we last received a block
|
|
|
|
|
CWaitableCriticalSection csBestBlock; |
|
|
|
|
CConditionVariable cvBlockChange; |
|
|
|
|
int nScriptCheckThreads = 0; |
|
|
|
@ -2690,7 +2690,6 @@ void static UpdateTip(CBlockIndex *pindexNew, const CChainParams& chainParams) {
@@ -2690,7 +2690,6 @@ void static UpdateTip(CBlockIndex *pindexNew, const CChainParams& chainParams) {
|
|
|
|
|
chainActive.SetTip(pindexNew); |
|
|
|
|
|
|
|
|
|
// New best block
|
|
|
|
|
nTimeBestReceived = GetTime(); |
|
|
|
|
mempool.AddTransactionsUpdated(1); |
|
|
|
|
|
|
|
|
|
cvBlockChange.notify_all(); |
|
|
|
@ -4736,6 +4735,8 @@ void PeerLogicValidation::UpdatedBlockTip(const CBlockIndex *pindexNew, const CB
@@ -4736,6 +4735,8 @@ void PeerLogicValidation::UpdatedBlockTip(const CBlockIndex *pindexNew, const CB
|
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
nTimeBestReceived = GetTime(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void PeerLogicValidation::BlockChecked(const CBlock& block, const CValidationState& state) { |
|
|
|
|