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

fix(proposer): fix an issue in ProposeOp #728

Merged
merged 1 commit into from
Apr 18, 2024
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
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
Loading