Commit b95dc228 authored by Annie Ke's avatar Annie Ke Committed by GitHub

chore: log errors on monotonicity fixes (#553)

* chore: log errors on monotonicity fixes

* add changeset
parent 7e9ca1eb
---
"@eth-optimism/batch-submitter": patch
---
log errors for monotonicity violations
...@@ -496,7 +496,7 @@ export class TransactionBatchSubmitter extends BatchSubmitter { ...@@ -496,7 +496,7 @@ export class TransactionBatchSubmitter extends BatchSubmitter {
ele.timestamp < earliestTimestamp || ele.timestamp < earliestTimestamp ||
ele.blockNumber < earliestBlockNumber ele.blockNumber < earliestBlockNumber
) { ) {
this.log.warn('Fixing timestamp/blockNumber too small', { this.log.error('Fixing timestamp/blockNumber too small', {
oldTimestamp: ele.timestamp, oldTimestamp: ele.timestamp,
newTimestamp: earliestTimestamp, newTimestamp: earliestTimestamp,
oldBlockNumber: ele.blockNumber, oldBlockNumber: ele.blockNumber,
...@@ -514,7 +514,7 @@ export class TransactionBatchSubmitter extends BatchSubmitter { ...@@ -514,7 +514,7 @@ export class TransactionBatchSubmitter extends BatchSubmitter {
ele.timestamp > latestTimestamp || ele.timestamp > latestTimestamp ||
ele.blockNumber > latestBlockNumber ele.blockNumber > latestBlockNumber
) { ) {
this.log.warn('Fixing timestamp/blockNumber too large.', { this.log.error('Fixing timestamp/blockNumber too large.', {
oldTimestamp: ele.timestamp, oldTimestamp: ele.timestamp,
newTimestamp: latestTimestamp, newTimestamp: latestTimestamp,
oldBlockNumber: ele.blockNumber, oldBlockNumber: ele.blockNumber,
......
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