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
4edf7cfb
Commit
4edf7cfb
authored
Aug 05, 2014
by
obscuren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
config => Config
parent
3c78e418
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
config.go
ethpipe/config.go
+3
-3
world.go
ethpipe/world.go
+3
-3
No files found.
ethpipe/config.go
View file @
4edf7cfb
...
...
@@ -4,11 +4,11 @@ import "github.com/ethereum/eth-go/ethutil"
var
cnfCtr
=
ethutil
.
Hex2Bytes
(
"661005d2720d855f1d9976f88bb10c1a3398c77f"
)
type
c
onfig
struct
{
type
C
onfig
struct
{
pipe
*
Pipe
}
func
(
self
*
c
onfig
)
Get
(
name
string
)
*
Object
{
func
(
self
*
C
onfig
)
Get
(
name
string
)
*
Object
{
configCtrl
:=
self
.
pipe
.
World
()
.
safeGet
(
cnfCtr
)
var
addr
[]
byte
...
...
@@ -24,6 +24,6 @@ func (self *config) Get(name string) *Object {
return
&
Object
{
self
.
pipe
.
World
()
.
safeGet
(
objectAddr
.
Bytes
())}
}
func
(
self
*
c
onfig
)
Exist
()
bool
{
func
(
self
*
C
onfig
)
Exist
()
bool
{
return
self
.
pipe
.
World
()
.
Get
(
cnfCtr
)
!=
nil
}
ethpipe/world.go
View file @
4edf7cfb
...
...
@@ -8,12 +8,12 @@ import (
type
World
struct
{
pipe
*
Pipe
cfg
*
c
onfig
cfg
*
C
onfig
}
func
NewWorld
(
pipe
*
Pipe
)
*
World
{
world
:=
&
World
{
pipe
,
nil
}
world
.
cfg
=
&
c
onfig
{
pipe
}
world
.
cfg
=
&
C
onfig
{
pipe
}
return
world
}
...
...
@@ -55,6 +55,6 @@ func (self *World) Peers() *list.List {
return
self
.
pipe
.
obj
.
Peers
()
}
func
(
self
*
World
)
Config
()
*
c
onfig
{
func
(
self
*
World
)
Config
()
*
C
onfig
{
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