package xeth import "github.com/ethereum/go-ethereum/ethutil" var cnfCtr = ethutil.Hex2Bytes("661005d2720d855f1d9976f88bb10c1a3398c77f") type Config struct { pipe *XEth } func (self *Config) Get(name string) *Object { configCtrl := self.pipe.World().safeGet(cnfCtr) var addr []byte switch name { case "NameReg": addr = []byte{0} case "DnsReg": objectAddr := configCtrl.GetStorage(ethutil.BigD([]byte{0})) domainAddr := (&Object{self.pipe.World().safeGet(objectAddr.Bytes())}).StorageString("DnsReg").Bytes() return &Object{self.pipe.World().safeGet(domainAddr)} case "MergeMining": addr = []byte{4} default: addr = ethutil.RightPadBytes([]byte(name), 32) } objectAddr := configCtrl.GetStorage(ethutil.BigD(addr)) return &Object{self.pipe.World().safeGet(objectAddr.Bytes())} } func (self *Config) Exist() bool { return self.pipe.World().Get(cnfCtr) != nil } d='cgit'>
aboutsummaryrefslogtreecommitdiffstats
path: root/net/py-GeoIP2
Commit message (Expand)AuthorAgeFilesLines
* Update to 2.6.0olivier2017-10-312-4/+4
* Update to 2.5.0olivier2017-05-102-4/+4
* Update to 2.4.2olivier2016-12-162-4/+4
* Update to 2.4.0olivier2016-06-162-3/+4
* Remove ${PORTSDIR}/ from dependencies, categories m, n, o, and p.mat2016-04-011-2/+2
* Update my email for ports I maintainolivier2016-02-171-2/+2
* - Update to 2.2.0sunpoet2015-11-292-5/+6
* net/py-maxminddb: add portxmj2015-05-161-2/+2
* Don't define DISTNAME with USE_GITHUB.mat2015-05-162-4/+3