Commit de1ea955 authored by inphi's avatar inphi

nits

parent 68106135
...@@ -35,11 +35,11 @@ func (q QueueOrigin) String() string { ...@@ -35,11 +35,11 @@ func (q QueueOrigin) String() string {
func (q QueueOrigin) MarshalJSON() ([]byte, error) { func (q QueueOrigin) MarshalJSON() ([]byte, error) {
switch q { switch q {
case QueueOriginSequencer: case QueueOriginSequencer:
return []byte("\"sequencer\""), nil return []byte(`"sequencer"`), nil
case QueueOriginL1ToL2: case QueueOriginL1ToL2:
return []byte("\"l1\""), nil return []byte(`"l1"`), nil
default: default:
return []byte("\"\""), nil return []byte(`""`), nil
} }
} }
......
...@@ -165,6 +165,7 @@ func NewSyncService(ctx context.Context, cfg Config, txpool *core.TxPool, bc *co ...@@ -165,6 +165,7 @@ func NewSyncService(ctx context.Context, cfg Config, txpool *core.TxPool, bc *co
// a remote server that indexes the layer one contracts. Place this // a remote server that indexes the layer one contracts. Place this
// code behind this if statement so that this can run without the // code behind this if statement so that this can run without the
// requirement of the remote server being up. // requirement of the remote server being up.
// If we're syncing from the Queue, then we can skip all this and rely on L2 published transactions
if service.enable && service.backend != BackendQueue { if service.enable && service.backend != BackendQueue {
// Ensure that the rollup client can connect to a remote server // Ensure that the rollup client can connect to a remote server
// before starting. Retry until it can connect. // before starting. Retry until it can connect.
......
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