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
6c4da533
Unverified
Commit
6c4da533
authored
Jan 25, 2022
by
Mark Tyneway
Committed by
GitHub
Jan 25, 2022
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2070 from ethereum-optimism/fix/nonce-2
l2geth: fix nonce issue
parents
d448986a
300f79bf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
six-actors-attend.md
.changeset/six-actors-attend.md
+5
-0
state_transition.go
l2geth/core/state_transition.go
+5
-6
No files found.
.changeset/six-actors-attend.md
0 → 100644
View file @
6c4da533
---
'
@eth-optimism/l2geth'
:
patch
---
Fix nonce issue
l2geth/core/state_transition.go
View file @
6c4da533
...
@@ -208,14 +208,13 @@ func (st *StateTransition) buyGas() error {
...
@@ -208,14 +208,13 @@ func (st *StateTransition) buyGas() error {
func
(
st
*
StateTransition
)
preCheck
()
error
{
func
(
st
*
StateTransition
)
preCheck
()
error
{
// Make sure this transaction's nonce is correct.
// Make sure this transaction's nonce is correct.
if
st
.
msg
.
CheckNonce
()
{
if
st
.
msg
.
CheckNonce
()
{
if
rcfg
.
UsingOVM
{
if
st
.
msg
.
QueueOrigin
()
==
types
.
QueueOriginL1ToL2
{
return
st
.
buyGas
()
}
}
nonce
:=
st
.
state
.
GetNonce
(
st
.
msg
.
From
())
nonce
:=
st
.
state
.
GetNonce
(
st
.
msg
.
From
())
if
nonce
<
st
.
msg
.
Nonce
()
{
if
nonce
<
st
.
msg
.
Nonce
()
{
if
rcfg
.
UsingOVM
{
// The nonce never increments for L1ToL2 txs
if
st
.
msg
.
QueueOrigin
()
==
types
.
QueueOriginL1ToL2
{
return
st
.
buyGas
()
}
}
return
ErrNonceTooHigh
return
ErrNonceTooHigh
}
else
if
nonce
>
st
.
msg
.
Nonce
()
{
}
else
if
nonce
>
st
.
msg
.
Nonce
()
{
return
ErrNonceTooLow
return
ErrNonceTooLow
...
...
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