Skip to content

Commit 4bb706e

Browse files
committed
fix shouldProcessBlock
1 parent a7a85ec commit 4bb706e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

consensus/spos/bls/v2/subroundBlock.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -663,7 +663,7 @@ func (sr *subroundBlock) CanProcessReceivedHeader(headerLeader string) bool {
663663
}
664664

665665
func (sr *subroundBlock) shouldProcessBlock(headerLeader string) bool {
666-
if sr.IsNodeSelf(headerLeader) {
666+
if sr.IsNodeSelf(headerLeader) && sr.ShouldConsiderSelfKeyInConsensus() {
667667
return false
668668
}
669669
if sr.IsJobDone(headerLeader, sr.Current()) {

0 commit comments

Comments
 (0)