aboutsummaryrefslogtreecommitdiffstats
path: root/ethpipe/config.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-08-07 21:11:54 +0800
committerobscuren <geffobscura@gmail.com>2014-08-07 21:11:54 +0800
commit7272577fe651a20618cf428475e2e57976c9599d (patch)
treeb2255ddc9a361df1ba7c47652d551dba6a23089e /ethpipe/config.go
parentda50c751480da32036f41ccbeb1f292694ca0286 (diff)
downloadgo-tangerine-7272577fe651a20618cf428475e2e57976c9599d.tar
go-tangerine-7272577fe651a20618cf428475e2e57976c9599d.tar.gz
go-tangerine-7272577fe651a20618cf428475e2e57976c9599d.tar.bz2
go-tangerine-7272577fe651a20618cf428475e2e57976c9599d.tar.lz
go-tangerine-7272577fe651a20618cf428475e2e57976c9599d.tar.xz
go-tangerine-7272577fe651a20618cf428475e2e57976c9599d.tar.zst
go-tangerine-7272577fe651a20618cf428475e2e57976c9599d.zip
Added dns lookup
Diffstat (limited to 'ethpipe/config.go')
-rw-r--r--ethpipe/config.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/ethpipe/config.go b/ethpipe/config.go
index 5e57416d7..66708b26e 100644
--- a/ethpipe/config.go
+++ b/ethpipe/config.go
@@ -15,6 +15,11 @@ func (self *Config) Get(name string) *Object {
switch name {
case "NameReg":
addr = []byte{0}
+ case "DomainReg":
+ objectAddr := configCtrl.GetStorage(ethutil.BigD([]byte{0}))
+ domainAddr := (&Object{self.pipe.World().safeGet(objectAddr.Bytes())}).StorageString("DomainReg").Bytes()
+
+ return &Object{self.pipe.World().safeGet(domainAddr)}
default:
addr = ethutil.RightPadBytes([]byte(name), 32)
}