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
d11d4ad7
Unverified
Commit
d11d4ad7
authored
Jan 26, 2023
by
mergify[bot]
Committed by
GitHub
Jan 26, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4791 from ethereum-optimism/sc/l2g-nonce-too-high
feat(l2g): properly return NonceTooHigh
parents
83823b0e
4729bc7b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
thin-toes-remember.md
.changeset/thin-toes-remember.md
+5
-0
tx_pool.go
l2geth/core/tx_pool.go
+3
-1
No files found.
.changeset/thin-toes-remember.md
0 → 100644
View file @
d11d4ad7
---
'
@eth-optimism/l2geth'
:
patch
---
Has l2geth return a NonceToHigh response if the txn nonce is greater than the expected nonce.
l2geth/core/tx_pool.go
View file @
d11d4ad7
...
@@ -555,8 +555,10 @@ func (pool *TxPool) validateTx(tx *types.Transaction, local bool) error {
...
@@ -555,8 +555,10 @@ func (pool *TxPool) validateTx(tx *types.Transaction, local bool) error {
}
}
// Ensure the transaction adheres to nonce ordering
// Ensure the transaction adheres to nonce ordering
if
rcfg
.
UsingOVM
{
if
rcfg
.
UsingOVM
{
if
pool
.
currentState
.
GetNonce
(
from
)
!=
tx
.
Nonce
()
{
if
pool
.
currentState
.
GetNonce
(
from
)
>
tx
.
Nonce
()
{
return
ErrNonceTooLow
return
ErrNonceTooLow
}
else
if
pool
.
currentState
.
GetNonce
(
from
)
<
tx
.
Nonce
()
{
return
ErrNonceTooHigh
}
}
}
else
{
}
else
{
if
pool
.
currentState
.
GetNonce
(
from
)
>
tx
.
Nonce
()
{
if
pool
.
currentState
.
GetNonce
(
from
)
>
tx
.
Nonce
()
{
...
...
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