Commit 13661cf1 authored by protolambda's avatar protolambda Committed by GitHub

op-e2e: use util for RPC dial, and ensure op-node is on localhost RPC (#11209)

parent fe3f42be
...@@ -139,6 +139,11 @@ func DefaultSystemConfig(t testing.TB) SystemConfig { ...@@ -139,6 +139,11 @@ func DefaultSystemConfig(t testing.TB) SystemConfig {
SequencerConfDepth: 0, SequencerConfDepth: 0,
SequencerEnabled: false, SequencerEnabled: false,
}, },
RPC: rollupNode.RPCConfig{
ListenAddr: "127.0.0.1",
ListenPort: 0,
EnableAdmin: true,
},
L1EpochPollInterval: time.Second * 4, L1EpochPollInterval: time.Second * 4,
RuntimeConfigReloadInterval: time.Minute * 10, RuntimeConfigReloadInterval: time.Minute * 10,
ConfigPersistence: &rollupNode.DisabledConfigPersistence{}, ConfigPersistence: &rollupNode.DisabledConfigPersistence{},
......
...@@ -1420,9 +1420,7 @@ func StopStartBatcher(t *testing.T, deltaTimeOffset *hexutil.Uint64) { ...@@ -1420,9 +1420,7 @@ func StopStartBatcher(t *testing.T, deltaTimeOffset *hexutil.Uint64) {
require.NoError(t, err, "Error starting up system") require.NoError(t, err, "Error starting up system")
defer sys.Close() defer sys.Close()
rollupRPCClient, err := rpc.DialContext(context.Background(), sys.RollupNodes["verifier"].HTTPEndpoint()) rollupClient := sys.RollupClient("verifier")
require.NoError(t, err)
rollupClient := sources.NewRollupClient(client.NewBaseRPCClient(rollupRPCClient))
l2Seq := sys.Clients["sequencer"] l2Seq := sys.Clients["sequencer"]
l2Verif := sys.Clients["verifier"] l2Verif := sys.Clients["verifier"]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment