We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9f4b0bc commit c4a2a02Copy full SHA for c4a2a02
consensus/spos/worker.go
@@ -864,11 +864,17 @@ func (wrk *Worker) Extend(subroundId int) {
864
time.Sleep(time.Millisecond)
865
}
866
867
+ log.Debug("current block is reverted")
868
+
869
+ header := wrk.consensusState.GetHeader()
870
+ isHeaderV3 := header.IsHeaderV3()
871
+ if isHeaderV3 {
872
+ return
873
+ }
874
875
wrk.scheduledProcessor.ForceStopScheduledExecutionBlocking()
- wrk.blockProcessor.RevertCurrentBlock(wrk.consensusState.GetHeader())
876
+ wrk.blockProcessor.RevertCurrentBlock(header)
877
wrk.removeConsensusHeaderFromPool()
-
- log.Debug("current block is reverted")
878
879
880
func (wrk *Worker) removeConsensusHeaderFromPool() {
0 commit comments