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 848ca76 commit 4b37a0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions proposer/proposer.go
Original file line number Diff line number Diff line change
Expand Up @@ -299,14 +299,14 @@ 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)))] {
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)
log.Info("Proposer current pending nonce", "nonce", nonce)

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

0 comments on commit 4b37a0d

Please sign in to comment.