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
b2b44b27
Unverified
Commit
b2b44b27
authored
Aug 09, 2021
by
Mark Tyneway
Committed by
GitHub
Aug 09, 2021
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1326 from ethereum-optimism/l2geth/miner-fixes
l2geth: small changes to miner codepath
parents
35102ee2
616b7a28
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
cuddly-sloths-fly.md
.changeset/cuddly-sloths-fly.md
+5
-0
worker.go
l2geth/miner/worker.go
+2
-2
No files found.
.changeset/cuddly-sloths-fly.md
0 → 100644
View file @
b2b44b27
---
'
@eth-optimism/l2geth'
:
patch
---
Small fixes to miner codepath
l2geth/miner/worker.go
View file @
b2b44b27
...
...
@@ -895,7 +895,7 @@ func (w *worker) commitNewTx(tx *types.Transaction) error {
}
header
:=
&
types
.
Header
{
ParentHash
:
parent
.
Hash
(),
Number
:
n
um
.
Add
(
num
,
common
.
Big1
),
Number
:
n
ew
(
big
.
Int
)
.
Add
(
num
,
common
.
Big1
),
GasLimit
:
w
.
config
.
GasFloor
,
Extra
:
w
.
extra
,
Time
:
tx
.
L1Timestamp
(),
...
...
@@ -915,7 +915,7 @@ func (w *worker) commitNewTx(tx *types.Transaction) error {
if
w
.
commitTransactions
(
txs
,
w
.
coinbase
,
nil
)
{
return
errors
.
New
(
"Cannot commit transaction in miner"
)
}
return
w
.
commit
(
[]
*
types
.
Header
{}
,
w
.
fullTaskHook
,
true
,
tstart
)
return
w
.
commit
(
nil
,
w
.
fullTaskHook
,
true
,
tstart
)
}
// commitNewWork generates several new sealing tasks based on the parent block.
...
...
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