Skip to content

Commit

Permalink
Merge pull request #24 from node-real/fix-test-sequencer-stopped
Browse files Browse the repository at this point in the history
test: impl SequencerStopped
  • Loading branch information
s7v7nislands authored May 11, 2023
2 parents c8b9d74 + c0c0851 commit 2c4566e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions op-e2e/actions/l2_verifier.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,10 @@ func (s *l2VerifierBackend) StopSequencer(ctx context.Context) (common.Hash, err
return common.Hash{}, errors.New("stopping the L2Verifier sequencer is not supported")
}

func (s *l2VerifierBackend) SequencerStopped(ctx context.Context) bool {
return true
}

func (s *L2Verifier) L2Finalized() eth.L2BlockRef {
return s.derivation.Finalized()
}
Expand Down
4 changes: 4 additions & 0 deletions op-node/node/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,3 +227,7 @@ func (c *mockDriverClient) StartSequencer(ctx context.Context, blockHash common.
func (c *mockDriverClient) StopSequencer(ctx context.Context) (common.Hash, error) {
return c.Mock.MethodCalled("StopSequencer").Get(0).(common.Hash), nil
}

func (c *mockDriverClient) SequencerStopped(ctx context.Context) bool {
return c.Mock.MethodCalled("SequencerStopped").Get(0).(bool)
}

0 comments on commit 2c4566e

Please sign in to comment.