Skip to content

Commit

Permalink
use pointers to batch
Browse files Browse the repository at this point in the history
  • Loading branch information
gupadhyaya committed Aug 2, 2024
1 parent 0166b82 commit c195453
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sequencing.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ type SequencerOutput interface {
// GetNextBatch returns the next batch of transactions from sequencer to rollup
// lastBatch is the last batch of transactions received from the sequencer
// returns the next batch of transactions and an error if any from the sequencer
GetNextBatch(ctx context.Context, lastBatch Batch) (Batch, error)
GetNextBatch(ctx context.Context, lastBatch *Batch) (*Batch, error)
}

// BatchVerifier provides a method for verifying a batch of transactions received from the sequencer
type BatchVerifier interface {
// VerifyBatch verifies a batch of transactions received from the sequencer
VerifyBatch(ctx context.Context, batch Batch) (bool, error)
VerifyBatch(ctx context.Context, batch *Batch) (bool, error)
}

// RollupId is a unique identifier for a rollup chain
Expand Down

0 comments on commit c195453

Please sign in to comment.