Commit 20b85a30 authored by Matthew Slipper's avatar Matthew Slipper Committed by GitHub

op-node: Fix log message when bq does not match safe head (#3687)

The L2 head was being logged rather than the safe head's L1 origin.
parent f27283ff
......@@ -148,7 +148,7 @@ func (bq *BatchQueue) deriveNextBatch(ctx context.Context, outOfData bool, l2Saf
epoch := bq.l1Blocks[0]
if l2SafeHead.L1Origin != epoch.ID() {
return nil, NewResetError(fmt.Errorf("buffered L1 chain epoch %s in batch queue does not match safe head %s", epoch, l2SafeHead))
return nil, NewResetError(fmt.Errorf("buffered L1 chain epoch %s in batch queue does not match safe head origin %s", epoch, l2SafeHead.L1Origin))
}
// Find the first-seen batch that matches all validity conditions.
......
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