Changed to DnsReg
This commit is contained in:
parent
7272577fe6
commit
d6b0ab3028
@ -15,9 +15,9 @@ func (self *Config) Get(name string) *Object {
|
|||||||
switch name {
|
switch name {
|
||||||
case "NameReg":
|
case "NameReg":
|
||||||
addr = []byte{0}
|
addr = []byte{0}
|
||||||
case "DomainReg":
|
case "DnsReg":
|
||||||
objectAddr := configCtrl.GetStorage(ethutil.BigD([]byte{0}))
|
objectAddr := configCtrl.GetStorage(ethutil.BigD([]byte{0}))
|
||||||
domainAddr := (&Object{self.pipe.World().safeGet(objectAddr.Bytes())}).StorageString("DomainReg").Bytes()
|
domainAddr := (&Object{self.pipe.World().safeGet(objectAddr.Bytes())}).StorageString("DnsReg").Bytes()
|
||||||
|
|
||||||
return &Object{self.pipe.World().safeGet(domainAddr)}
|
return &Object{self.pipe.World().safeGet(domainAddr)}
|
||||||
default:
|
default:
|
||||||
|
@ -75,7 +75,7 @@ func (self *PEthereum) LookupDomain(domain string) string {
|
|||||||
domain = string(ethcrypto.Sha3Bin([]byte(domain)))
|
domain = string(ethcrypto.Sha3Bin([]byte(domain)))
|
||||||
}
|
}
|
||||||
|
|
||||||
return strings.Trim(world.Config().Get("DomainReg").StorageString(domain).Str(), "\x00")
|
return strings.Trim(world.Config().Get("DnsReg").StorageString(domain).Str(), "\x00")
|
||||||
}
|
}
|
||||||
|
|
||||||
func (lib *PEthereum) GetBlock(hexHash string) *PBlock {
|
func (lib *PEthereum) GetBlock(hexHash string) *PBlock {
|
||||||
|
Loading…
Reference in New Issue
Block a user