Skip to content
This repository has been archived by the owner on May 11, 2024. It is now read-only.

feat(proposer): update proposing retry configuration #366

Merged
merged 1 commit into from
Aug 17, 2023
Merged
Changes from all commits
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
6 changes: 5 additions & 1 deletion proposer/proposer.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ import (
var (
errNoNewTxs = errors.New("no new transactions")
maxSendProposeBlockTxRetry = 10
retryInterval = 12 * time.Second
)

// Proposer keep proposing new transactions from L2 execution engine's tx pool at a fixed interval.
Expand Down Expand Up @@ -413,7 +414,10 @@ func (p *Proposer) ProposeTxList(

return nil
},
backoff.WithMaxRetries(backoff.NewExponentialBackOff(), uint64(maxSendProposeBlockTxRetry)),
backoff.WithMaxRetries(
backoff.NewConstantBackOff(retryInterval),
uint64(maxSendProposeBlockTxRetry),
),
); err != nil {
return err
}
Expand Down