Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: panic in SendCheckpointToBTC #138

Merged
merged 5 commits into from
Dec 11, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions submitter/relayer/relayer.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,10 @@ func (rl *Relayer) MaybeResubmitSecondCheckpointTx(ckpt *ckpttypes.RawCheckpoint
rl.logger.Debugf("The checkpoint for epoch %v was sent more than %v seconds ago but not included on BTC",
ckptEpoch, rl.config.ResendIntervalSeconds)

if rl.lastSubmittedCheckpoint.Tx1 == nil || rl.lastSubmittedCheckpoint.Tx2 == nil {
return fmt.Errorf("tx1 and tx2 in rl.lastSubmittedCheckpoint is nil, tx1 %v, tx2 %v", rl.lastSubmittedCheckpoint.Tx1, rl.lastSubmittedCheckpoint.Tx2)
}

bumpedFee := rl.calculateBumpedFee(rl.lastSubmittedCheckpoint)

// make sure the bumped fee is effective
Expand Down