diff options
author | obscuren <geffobscura@gmail.com> | 2014-08-07 21:11:54 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-08-07 21:11:54 +0800 |
commit | 7272577fe651a20618cf428475e2e57976c9599d (patch) | |
tree | b2255ddc9a361df1ba7c47652d551dba6a23089e /ethpipe/config.go | |
parent | da50c751480da32036f41ccbeb1f292694ca0286 (diff) | |
download | go-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.go | 5 |
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) } |