Commit 3fc87053 authored by Joshua Gutow's avatar Joshua Gutow Committed by GitHub

op-node: Fix reset RPC (#3248)

I forgot to initialize the forceReset channel which means that the
RPC isn't able to signal to the state loop that it needs to reset.
Co-authored-by: default avatarmergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
parent 3af9c7a9
......@@ -119,8 +119,9 @@ func defaultSystemConfig(t *testing.T) SystemConfig {
},
// Submitter PrivKey is set in system start for rollup nodes where sequencer = true
RPC: node.RPCConfig{
ListenAddr: "127.0.0.1",
ListenPort: 9093,
ListenAddr: "127.0.0.1",
ListenPort: 9093,
EnableAdmin: true,
},
},
},
......
......@@ -91,6 +91,7 @@ func NewState(driverCfg *Config, log log.Logger, snapshotLog log.Logger, config
derivation: derivationPipeline,
idleDerivation: false,
syncStatusReq: make(chan chan SyncStatus, 10),
forceReset: make(chan chan struct{}, 10),
Config: config,
DriverConfig: driverCfg,
done: make(chan struct{}),
......
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