Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
c520100d
Unverified
Commit
c520100d
authored
Jun 11, 2021
by
Karl Floersch
Committed by
GitHub
Jun 11, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: monotonicity auto healer (#1070)
* fix: monotonicity auto healer * add: changeset
parent
85362d44
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
13 deletions
+11
-13
slimy-snails-roll.md
.changeset/slimy-snails-roll.md
+5
-0
tx-batch-submitter.ts
...batch-submitter/src/batch-submitter/tx-batch-submitter.ts
+6
-13
No files found.
.changeset/slimy-snails-roll.md
0 → 100644
View file @
c520100d
---
'
@eth-optimism/batch-submitter'
:
patch
---
Fix a bug in fixMonotonicity auto healer
packages/batch-submitter/src/batch-submitter/tx-batch-submitter.ts
View file @
c520100d
...
@@ -573,12 +573,8 @@ export class TransactionBatchSubmitter extends BatchSubmitter {
...
@@ -573,12 +573,8 @@ export class TransactionBatchSubmitter extends BatchSubmitter {
oldBlockNumber
:
ele
.
blockNumber
,
oldBlockNumber
:
ele
.
blockNumber
,
newBlockNumber
:
earliestBlockNumber
,
newBlockNumber
:
earliestBlockNumber
,
})
})
fixedBatch
.
push
({
ele
.
timestamp
=
earliestTimestamp
...
ele
,
ele
.
blockNumber
=
earliestBlockNumber
timestamp
:
earliestTimestamp
,
blockNumber
:
earliestBlockNumber
,
})
continue
}
}
// Fix the element if its timestammp/blockNumber is too large
// Fix the element if its timestammp/blockNumber is too large
if
(
if
(
...
@@ -591,14 +587,11 @@ export class TransactionBatchSubmitter extends BatchSubmitter {
...
@@ -591,14 +587,11 @@ export class TransactionBatchSubmitter extends BatchSubmitter {
oldBlockNumber
:
ele
.
blockNumber
,
oldBlockNumber
:
ele
.
blockNumber
,
newBlockNumber
:
latestBlockNumber
,
newBlockNumber
:
latestBlockNumber
,
})
})
fixedBatch
.
push
({
ele
.
timestamp
=
latestTimestamp
...
ele
,
ele
.
blockNumber
=
latestBlockNumber
timestamp
:
latestTimestamp
,
blockNumber
:
latestBlockNumber
,
})
continue
}
}
// No fixes needed!
earliestTimestamp
=
ele
.
timestamp
earliestBlockNumber
=
ele
.
blockNumber
fixedBatch
.
push
(
ele
)
fixedBatch
.
push
(
ele
)
}
}
return
fixedBatch
return
fixedBatch
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment