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

Commit

Permalink
fix a bug
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtaikocha committed May 3, 2024
1 parent c425f16 commit 4a3a530
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion proposer/proposer.go
Original file line number Diff line number Diff line change
Expand Up @@ -299,13 +299,15 @@ func (p *Proposer) ProposeOp(ctx context.Context) error {

g, gCtx := errgroup.WithContext(ctx)
// Propose all L2 transactions lists.
for _, txs := range txLists[:utils.Min(p.MaxProposedTxListsPerEpoch, uint64(len(txLists)-1))] {
for _, txs := range txLists[:utils.Min(p.MaxProposedTxListsPerEpoch, uint64(len(txLists)))-1] {
nonce, err := p.rpc.L1.PendingNonceAt(ctx, p.proposerAddress)
if err != nil {
log.Error("Failed to get proposer nonce", "error", err)
break
}

log.Debug("Proposer current pending nonce", "nonce", nonce)

g.Go(func() error {
txListBytes, err := rlp.EncodeToBytes(txs)
if err != nil {
Expand Down

0 comments on commit 4a3a530

Please sign in to comment.