Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
张蕾
Geth-Modification
Commits
b211742e
Unverified
Commit
b211742e
authored
Jan 09, 2020
by
Péter Szilágyi
Committed by
GitHub
Jan 09, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "eth: refactor creation of EthAPIBackend (#20476)" (#20536)
This reverts commit
a1bc0e3c
.
parent
0218d700
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
backend.go
eth/backend.go
+2
-2
No files found.
eth/backend.go
View file @
b211742e
...
...
@@ -213,12 +213,12 @@ func New(ctx *node.ServiceContext, config *Config) (*Ethereum, error) {
eth
.
miner
=
miner
.
New
(
eth
,
&
config
.
Miner
,
chainConfig
,
eth
.
EventMux
(),
eth
.
engine
,
eth
.
isLocalBlock
)
eth
.
miner
.
SetExtra
(
makeExtraData
(
config
.
Miner
.
ExtraData
))
eth
.
APIBackend
=
&
EthAPIBackend
{
ctx
.
ExtRPCEnabled
(),
eth
,
nil
}
gpoParams
:=
config
.
GPO
if
gpoParams
.
Default
==
nil
{
gpoParams
.
Default
=
config
.
Miner
.
GasPrice
}
eth
.
APIBackend
=
&
EthAPIBackend
{
ctx
.
ExtRPCEnabled
(),
eth
,
gasprice
.
NewOracle
(
eth
.
APIBackend
,
gpoParams
)}
eth
.
APIBackend
.
gpo
=
gasprice
.
NewOracle
(
eth
.
APIBackend
,
gpoParams
)
return
eth
,
nil
}
...
...
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