aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-08-05 17:31:39 +0800
committerobscuren <geffobscura@gmail.com>2014-08-05 17:31:39 +0800
commit4edf7cfb0543555921a79f572c749615c4997ea7 (patch)
treec67924b2c2e5596dd6b9b6dd8603b1faec18b472
parent3c78e418fbe70cfb574302f00962cf7fac50f69e (diff)
downloadgo-tangerine-4edf7cfb0543555921a79f572c749615c4997ea7.tar.gz
go-tangerine-4edf7cfb0543555921a79f572c749615c4997ea7.tar.zst
go-tangerine-4edf7cfb0543555921a79f572c749615c4997ea7.zip
config => Config
-rw-r--r--ethpipe/config.go6
-rw-r--r--ethpipe/world.go6
2 files changed, 6 insertions, 6 deletions
diff --git a/ethpipe/config.go b/ethpipe/config.go
index 588fc8d97..5e57416d7 100644
--- a/ethpipe/config.go
+++ b/ethpipe/config.go
@@ -4,11 +4,11 @@ import "github.com/ethereum/eth-go/ethutil"
var cnfCtr = ethutil.Hex2Bytes("661005d2720d855f1d9976f88bb10c1a3398c77f")
-type config struct {
+type Config struct {
pipe *Pipe
}
-func (self *config) Get(name string) *Object {
+func (self *Config) 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 *config) Exist() bool {
+func (self *Config) Exist() bool {
return self.pipe.World().Get(cnfCtr) != nil
}
diff --git a/ethpipe/world.go b/ethpipe/world.go
index 2c6b0b4b9..72e116d09 100644
--- a/ethpipe/world.go
+++ b/ethpipe/world.go
@@ -8,12 +8,12 @@ import (
type World struct {
pipe *Pipe
- cfg *config
+ cfg *Config
}
func NewWorld(pipe *Pipe) *World {
world := &World{pipe, nil}
- world.cfg = &config{pipe}
+ world.cfg = &Config{pipe}
return world
}
@@ -55,6 +55,6 @@ func (self *World) Peers() *list.List {
return self.pipe.obj.Peers()
}
-func (self *World) Config() *config {
+func (self *World) Config() *Config {
return self.cfg
}