Skip to content

Commit 2c4566e

Browse files
authored
Merge pull request #24 from node-real/fix-test-sequencer-stopped
test: impl SequencerStopped
2 parents c8b9d74 + c0c0851 commit 2c4566e

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

op-e2e/actions/l2_verifier.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,10 @@ func (s *l2VerifierBackend) StopSequencer(ctx context.Context) (common.Hash, err
121121
return common.Hash{}, errors.New("stopping the L2Verifier sequencer is not supported")
122122
}
123123

124+
func (s *l2VerifierBackend) SequencerStopped(ctx context.Context) bool {
125+
return true
126+
}
127+
124128
func (s *L2Verifier) L2Finalized() eth.L2BlockRef {
125129
return s.derivation.Finalized()
126130
}

op-node/node/server_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,3 +227,7 @@ func (c *mockDriverClient) StartSequencer(ctx context.Context, blockHash common.
227227
func (c *mockDriverClient) StopSequencer(ctx context.Context) (common.Hash, error) {
228228
return c.Mock.MethodCalled("StopSequencer").Get(0).(common.Hash), nil
229229
}
230+
231+
func (c *mockDriverClient) SequencerStopped(ctx context.Context) bool {
232+
return c.Mock.MethodCalled("SequencerStopped").Get(0).(bool)
233+
}

0 commit comments

Comments
 (0)