Skip to content

Commit abb6b71

Browse files
authored
chore: fix some function names in comment (#3156)
Signed-off-by: tsinglua <tsinglua@outlook.com>
1 parent 7c829ca commit abb6b71

3 files changed

Lines changed: 7 additions & 6 deletions

File tree

pkg/sequencers/single/sequencer_test.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1235,11 +1235,12 @@ func TestSequencer_GetNextBatch_GasFilterError(t *testing.T) {
12351235
assert.Equal(t, 2, len(resp.Batch.Transactions))
12361236
}
12371237

1238-
// TestSequencer_GetNextBatch_GasFilteringPreservesUnprocessedTxs tests that when FilterTxs
1239-
// returns RemainingTxs (valid DA txs that didn't fit due to gas limits), the sequencer correctly
1240-
// preserves any transactions that weren't even processed yet due to maxBytes limits.
1238+
// TestSequencer_CatchUp_DetectsOldEpoch tests that when the DA head is significantly ahead
1239+
// of the sequencer's current position (more than 1 epoch), the sequencer correctly enters
1240+
// catch-up mode and processes forced inclusion transactions from old epochs.
12411241
//
1242-
// This test uses maxBytes to limit how many txs are fetched, triggering the unprocessed txs scenario.
1242+
// This test simulates a scenario where the sequencer has missed 5 epochs and verifies
1243+
// that it prioritizes forced inclusion transactions over mempool transactions during catch-up.
12431244
func TestSequencer_CatchUp_DetectsOldEpoch(t *testing.T) {
12441245
ctx := context.Background()
12451246
logger := zerolog.New(zerolog.NewTestWriter(t))

test/e2e/evm_test_common.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ func getNodeP2PAddress(t testing.TB, sut *SystemUnderTest, nodeHome string, rpcP
303303
return p2pAddress
304304
}
305305

306-
// setupSequencerNode initializes and starts the sequencer node with proper configuration.
306+
// SetupSequencerNode initializes and starts the sequencer node with proper configuration.
307307
// This function handles:
308308
// - Node initialization with aggregator mode enabled
309309
// - Sequencer-specific configuration (block time, DA layer connection)

test/e2e/failover_e2e_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -927,7 +927,7 @@ func (c *raftClusterNodes) killAll() {
927927
}
928928
}
929929

930-
// allNodes returns snapshot of nodes map
930+
// AllNodes returns snapshot of nodes map
931931
func (c *raftClusterNodes) AllNodes() map[string]*nodeDetails {
932932
c.mx.Lock()
933933
defer c.mx.Unlock()

0 commit comments

Comments
 (0)