Skip to content

Commit 47ee58b

Browse files
committed
fast-exist FindRetentionBound
1 parent f490228 commit 47ee58b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

core/blockchain_arbitrum.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@ func (bc *BlockChain) FindRetentionBound() uint64 {
7373
minimumSpan := bc.cacheConfig.TriesInMemory
7474
minimumAge := uint64(bc.cacheConfig.TrieRetention.Seconds())
7575

76+
if minimumAge == 0 {
77+
return minimumSpan
78+
}
79+
7680
saturatingCast := func(value int64) uint64 {
7781
if value < 0 {
7882
return 0

0 commit comments

Comments
 (0)