diff --git a/.changeset/shaggy-dogs-attend.md b/.changeset/shaggy-dogs-attend.md new file mode 100644 index 000000000000..66480b391ab0 --- /dev/null +++ b/.changeset/shaggy-dogs-attend.md @@ -0,0 +1,5 @@ +--- +'@eth-optimism/batch-submitter': patch +--- + +Change monotonicity band-aid code to log warnings not errors diff --git a/packages/batch-submitter/src/batch-submitter/tx-batch-submitter.ts b/packages/batch-submitter/src/batch-submitter/tx-batch-submitter.ts index bdcc59db48ed..7515b1028b62 100644 --- a/packages/batch-submitter/src/batch-submitter/tx-batch-submitter.ts +++ b/packages/batch-submitter/src/batch-submitter/tx-batch-submitter.ts @@ -469,7 +469,7 @@ export class TransactionBatchSubmitter extends BatchSubmitter { ] = await this.chainContract.getQueueElement(nextQueueIndex) if (timestamp < ele.timestamp || blockNumber < ele.blockNumber) { - this.logger.error('Fixing skipped deposit', { + this.logger.warn('Fixing skipped deposit', { badTimestamp: ele.timestamp, skippedQueueTimestamp: timestamp, badBlockNumber: ele.blockNumber, @@ -563,7 +563,7 @@ export class TransactionBatchSubmitter extends BatchSubmitter { ele.timestamp < earliestTimestamp || ele.blockNumber < earliestBlockNumber ) { - this.logger.error('Fixing timestamp/blockNumber too small', { + this.logger.warn('Fixing timestamp/blockNumber too small', { oldTimestamp: ele.timestamp, newTimestamp: earliestTimestamp, oldBlockNumber: ele.blockNumber, @@ -581,7 +581,7 @@ export class TransactionBatchSubmitter extends BatchSubmitter { ele.timestamp > latestTimestamp || ele.blockNumber > latestBlockNumber ) { - this.logger.error('Fixing timestamp/blockNumber too large.', { + this.logger.warn('Fixing timestamp/blockNumber too large.', { oldTimestamp: ele.timestamp, newTimestamp: latestTimestamp, oldBlockNumber: ele.blockNumber,