diff --git a/src/neo/Consensus/ConsensusService.cs b/src/neo/Consensus/ConsensusService.cs index e39eab19b2..6995310af4 100644 --- a/src/neo/Consensus/ConsensusService.cs +++ b/src/neo/Consensus/ConsensusService.cs @@ -319,11 +319,11 @@ private void OnConsensusPayload(ConsensusPayload payload) private void OnPersistCompleted(Block block) { Log($"persist block: height={block.Index} hash={block.Hash} tx={block.Transactions.Length}"); + knownHashes.Clear(); + InitializeConsensus(0); DateTime now = TimeProvider.Current.UtcNow; block_received_gap = now - block_received_time; block_received_time = now; - knownHashes.Clear(); - InitializeConsensus(0); } private void OnRecoveryMessageReceived(ConsensusPayload payload, RecoveryMessage message)