Skip to content

Commit 57a6751

Browse files
committed
fix deadlock in FindRetentionBound
1 parent 9cf4cb7 commit 57a6751

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/blockchain_arbitrum.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ func (bc *BlockChain) FindRetentionBound() uint64 {
9292
//
9393
a := timeBound // a prunable block, if possible
9494
b := heightBound // not prunable
95-
for a+1 < b {
95+
for a+2 < b {
9696
mid := a/2 + b/2 // a < mid < b
9797
age := current.Time() - bc.GetBlockByNumber(mid).Time()
9898
if age <= minimumAge {

0 commit comments

Comments
 (0)