Skip to content

Commit ab7ee23

Browse files
committed
Increase MovedFundsSweepLookBackBlocks from 30 to 50 days
A production failure left 363.54 BTC stuck because a MovingFundsCompleted event was ~38 days old (273,886 blocks), exceeding the 216,000-block (30-day) lookback. Bump the constant to 360,000 blocks (~50 days) to provide 32% headroom beyond the observed failure.
1 parent 4c83762 commit ab7ee23

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pkg/tbtcpg/moved_funds_sweep.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ var ErrNoPendingMovedFundsSweepRequests = fmt.Errorf(
2525

2626
// MovedFundsSweepLookBackBlocks is the look-back period in blocks used
2727
// when searching for submitted moving funds-related events. It's equal to
28-
// 30 days assuming 12 seconds per block.
29-
const MovedFundsSweepLookBackBlocks = uint64(216000)
28+
// 50 days assuming 12 seconds per block.
29+
const MovedFundsSweepLookBackBlocks = uint64(360000)
3030

3131
// MovedFundsSweepTask is a task that may produce a moved funds sweep proposal.
3232
type MovedFundsSweepTask struct {

0 commit comments

Comments
 (0)