فهرست منبع

wait if td is the same

yutianwu 4 سال پیش
والد
کامیت
77f19d435d
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      consensus/parlia/parlia.go

+ 1 - 1
consensus/parlia/parlia.go

@@ -895,7 +895,7 @@ func (p *Parlia) shouldWaitForCurrentBlockProcess(chain consensus.ChainHeaderRea
 		return false
 		return false
 	}
 	}
 
 
-	if header.ParentHash == highestVerifiedHeader.ParentHash && header.Difficulty.Cmp(highestVerifiedHeader.Difficulty) < 0 {
+	if header.ParentHash == highestVerifiedHeader.ParentHash && header.Difficulty.Cmp(highestVerifiedHeader.Difficulty) <= 0 {
 		return true
 		return true
 	}
 	}
 	return false
 	return false