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
a1bc0e3c
Commit
a1bc0e3c
authored
Jan 07, 2020
by
Jonathan Gimeno
Committed by
Felix Lange
Jan 07, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
eth: refactor creation of EthAPIBackend (#20476)
parent
a013f02d
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 @
a1bc0e3c
...
@@ -213,12 +213,12 @@ func New(ctx *node.ServiceContext, config *Config) (*Ethereum, error) {
...
@@ -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
=
miner
.
New
(
eth
,
&
config
.
Miner
,
chainConfig
,
eth
.
EventMux
(),
eth
.
engine
,
eth
.
isLocalBlock
)
eth
.
miner
.
SetExtra
(
makeExtraData
(
config
.
Miner
.
ExtraData
))
eth
.
miner
.
SetExtra
(
makeExtraData
(
config
.
Miner
.
ExtraData
))
eth
.
APIBackend
=
&
EthAPIBackend
{
ctx
.
ExtRPCEnabled
(),
eth
,
nil
}
gpoParams
:=
config
.
GPO
gpoParams
:=
config
.
GPO
if
gpoParams
.
Default
==
nil
{
if
gpoParams
.
Default
==
nil
{
gpoParams
.
Default
=
config
.
Miner
.
GasPrice
gpoParams
.
Default
=
config
.
Miner
.
GasPrice
}
}
eth
.
APIBackend
.
gpo
=
gasprice
.
NewOracle
(
eth
.
APIBackend
,
gpoParams
)
eth
.
APIBackend
=
&
EthAPIBackend
{
ctx
.
ExtRPCEnabled
(),
eth
,
gasprice
.
NewOracle
(
eth
.
APIBackend
,
gpoParams
)}
return
eth
,
nil
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