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
610adfd8
Commit
610adfd8
authored
Jun 12, 2015
by
zsfelfoldi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed xeth.gpo = nil bug
parent
3c7b64ce
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
xeth.go
xeth/xeth.go
+4
-1
No files found.
xeth/xeth.go
View file @
610adfd8
...
...
@@ -42,6 +42,9 @@ const (
func
DefaultGas
()
*
big
.
Int
{
return
new
(
big
.
Int
)
.
Set
(
defaultGas
)
}
func
(
self
*
XEth
)
DefaultGasPrice
()
*
big
.
Int
{
if
self
.
gpo
==
nil
{
self
.
gpo
=
eth
.
NewGasPriceOracle
(
self
.
backend
)
}
return
self
.
gpo
.
SuggestPrice
()
}
...
...
@@ -96,7 +99,6 @@ func New(ethereum *eth.Ethereum, frontend Frontend) *XEth {
transactionQueue
:
make
(
map
[
int
]
*
hashQueue
),
messages
:
make
(
map
[
int
]
*
whisperFilter
),
agent
:
miner
.
NewRemoteAgent
(),
gpo
:
eth
.
NewGasPriceOracle
(
ethereum
),
}
if
ethereum
.
Whisper
()
!=
nil
{
xeth
.
whisper
=
NewWhisper
(
ethereum
.
Whisper
())
...
...
@@ -233,6 +235,7 @@ func (self *XEth) WithState(statedb *state.StateDB) *XEth {
xeth
:=
&
XEth
{
backend
:
self
.
backend
,
frontend
:
self
.
frontend
,
gpo
:
self
.
gpo
,
}
xeth
.
state
=
NewState
(
xeth
,
statedb
)
...
...
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