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
3c78e418
Commit
3c78e418
authored
Aug 05, 2014
by
obscuren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
world => World
parent
e71b198e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
13 deletions
+13
-13
pipe.go
ethpipe/pipe.go
+1
-1
world.go
ethpipe/world.go
+12
-12
No files found.
ethpipe/pipe.go
View file @
3c78e418
...
...
@@ -21,7 +21,7 @@ type Pipe struct {
obj
ethchain
.
EthManager
stateManager
*
ethchain
.
StateManager
blockChain
*
ethchain
.
BlockChain
world
*
w
orld
world
*
W
orld
Vm
VmVars
}
...
...
ethpipe/world.go
View file @
3c78e418
...
...
@@ -6,31 +6,31 @@ import (
"github.com/ethereum/eth-go/ethstate"
)
type
w
orld
struct
{
type
W
orld
struct
{
pipe
*
Pipe
cfg
*
config
}
func
NewWorld
(
pipe
*
Pipe
)
*
w
orld
{
world
:=
&
w
orld
{
pipe
,
nil
}
func
NewWorld
(
pipe
*
Pipe
)
*
W
orld
{
world
:=
&
W
orld
{
pipe
,
nil
}
world
.
cfg
=
&
config
{
pipe
}
return
world
}
func
(
self
*
Pipe
)
World
()
*
w
orld
{
func
(
self
*
Pipe
)
World
()
*
W
orld
{
return
self
.
world
}
func
(
self
*
w
orld
)
State
()
*
ethstate
.
State
{
func
(
self
*
W
orld
)
State
()
*
ethstate
.
State
{
return
self
.
pipe
.
stateManager
.
CurrentState
()
}
func
(
self
*
w
orld
)
Get
(
addr
[]
byte
)
*
Object
{
func
(
self
*
W
orld
)
Get
(
addr
[]
byte
)
*
Object
{
return
&
Object
{
self
.
State
()
.
GetStateObject
(
addr
)}
}
func
(
self
*
w
orld
)
safeGet
(
addr
[]
byte
)
*
ethstate
.
StateObject
{
func
(
self
*
W
orld
)
safeGet
(
addr
[]
byte
)
*
ethstate
.
StateObject
{
object
:=
self
.
State
()
.
GetStateObject
(
addr
)
if
object
==
nil
{
object
=
ethstate
.
NewStateObject
(
addr
)
...
...
@@ -39,22 +39,22 @@ func (self *world) safeGet(addr []byte) *ethstate.StateObject {
return
object
}
func
(
self
*
w
orld
)
Coinbase
()
*
ethstate
.
StateObject
{
func
(
self
*
W
orld
)
Coinbase
()
*
ethstate
.
StateObject
{
return
nil
}
func
(
self
*
w
orld
)
IsMining
()
bool
{
func
(
self
*
W
orld
)
IsMining
()
bool
{
return
self
.
pipe
.
obj
.
IsMining
()
}
func
(
self
*
w
orld
)
IsListening
()
bool
{
func
(
self
*
W
orld
)
IsListening
()
bool
{
return
self
.
pipe
.
obj
.
IsListening
()
}
func
(
self
*
w
orld
)
Peers
()
*
list
.
List
{
func
(
self
*
W
orld
)
Peers
()
*
list
.
List
{
return
self
.
pipe
.
obj
.
Peers
()
}
func
(
self
*
w
orld
)
Config
()
*
config
{
func
(
self
*
W
orld
)
Config
()
*
config
{
return
self
.
cfg
}
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