Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
d6b0ab30
Commit
d6b0ab30
authored
Aug 07, 2014
by
obscuren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed to DnsReg
parent
7272577f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
config.go
ethpipe/config.go
+2
-2
pub.go
ethpub/pub.go
+1
-1
No files found.
ethpipe/config.go
View file @
d6b0ab30
...
@@ -15,9 +15,9 @@ func (self *Config) Get(name string) *Object {
...
@@ -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
"D
omain
Reg"
:
case
"D
ns
Reg"
:
objectAddr
:=
configCtrl
.
GetStorage
(
ethutil
.
BigD
([]
byte
{
0
}))
objectAddr
:=
configCtrl
.
GetStorage
(
ethutil
.
BigD
([]
byte
{
0
}))
domainAddr
:=
(
&
Object
{
self
.
pipe
.
World
()
.
safeGet
(
objectAddr
.
Bytes
())})
.
StorageString
(
"D
omain
Reg"
)
.
Bytes
()
domainAddr
:=
(
&
Object
{
self
.
pipe
.
World
()
.
safeGet
(
objectAddr
.
Bytes
())})
.
StorageString
(
"D
ns
Reg"
)
.
Bytes
()
return
&
Object
{
self
.
pipe
.
World
()
.
safeGet
(
domainAddr
)}
return
&
Object
{
self
.
pipe
.
World
()
.
safeGet
(
domainAddr
)}
default
:
default
:
...
...
ethpub/pub.go
View file @
d6b0ab30
...
@@ -75,7 +75,7 @@ func (self *PEthereum) LookupDomain(domain string) string {
...
@@ -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
(
"D
omain
Reg"
)
.
StorageString
(
domain
)
.
Str
(),
"
\x00
"
)
return
strings
.
Trim
(
world
.
Config
()
.
Get
(
"D
ns
Reg"
)
.
StorageString
(
domain
)
.
Str
(),
"
\x00
"
)
}
}
func
(
lib
*
PEthereum
)
GetBlock
(
hexHash
string
)
*
PBlock
{
func
(
lib
*
PEthereum
)
GetBlock
(
hexHash
string
)
*
PBlock
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment