Skip to content

Commit

Permalink
refactor: change monotonicity band-aid code to log warnings not errors
Browse files Browse the repository at this point in the history
  • Loading branch information
snario committed Jun 10, 2021
1 parent cc74271 commit 32fd64b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit 32fd64b

Please sign in to comment.