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

Commit

Permalink
feat(proposer): update proposing retry policy (#366)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtaikocha authored Aug 17, 2023
1 parent b6cd4db commit e0adf17
Showing 1 changed file with 5 additions and 1 deletion.
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

0 comments on commit e0adf17

Please sign in to comment.