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

Commit

Permalink
fix(proposer): fix an issue in ProposeOp (#728)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtaikocha authored Apr 18, 2024
1 parent 1003687 commit 24a8e1d
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 @@ -278,7 +278,7 @@ func (p *Proposer) ProposeOp(ctx context.Context) error {
// Check if it's time to propose unfiltered pool content.
var (
filterPoolContent = time.Now().Before(p.lastProposedAt.Add(p.MinProposingInternal))
txListsBytes = make([][]byte, p.MaxProposedTxListsPerEpoch)
txListsBytes = make([][]byte, 0)
)

// Wait until L2 execution engine is synced at first.
Expand Down Expand Up @@ -314,7 +314,7 @@ func (p *Proposer) ProposeOp(ctx context.Context) error {
return fmt.Errorf("failed to encode transactions: %w", err)
}

txListsBytes[i] = txListBytes
txListsBytes = append(txListsBytes, txListBytes)
}

for i, err := range p.ProposeTxLists(ctx, txListsBytes) {
Expand Down

0 comments on commit 24a8e1d

Please sign in to comment.