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
02834981
Commit
02834981
authored
Aug 14, 2014
by
zelig
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' of github.com:ethereum/eth-go into develop
parents
e85f3972
fa881220
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
2 deletions
+17
-2
bloom.go
ethchain/bloom.go
+1
-1
pub.go
ethpub/pub.go
+16
-1
No files found.
ethchain/bloom.go
View file @
02834981
...
...
@@ -6,7 +6,7 @@ type BloomFilter struct {
func
NewBloomFilter
(
bin
[]
byte
)
*
BloomFilter
{
if
bin
==
nil
{
bin
=
make
([]
byte
,
25
5
)
bin
=
make
([]
byte
,
25
6
)
}
return
&
BloomFilter
{
...
...
ethpub/pub.go
View file @
02834981
...
...
@@ -4,6 +4,7 @@ import (
"bytes"
"encoding/json"
"math/big"
"strconv"
"strings"
"sync/atomic"
...
...
@@ -74,8 +75,22 @@ func (self *PEthereum) LookupDomain(domain string) string {
if
len
(
domain
)
>
32
{
domain
=
string
(
ethcrypto
.
Sha3Bin
([]
byte
(
domain
)))
}
data
:=
world
.
Config
()
.
Get
(
"DnsReg"
)
.
StorageString
(
domain
)
.
Bytes
()
// Left padded = A record, Right padded = CNAME
if
data
[
0
]
==
0
{
data
=
bytes
.
TrimLeft
(
data
,
"
\x00
"
)
var
ipSlice
[]
string
for
_
,
d
:=
range
data
{
ipSlice
=
append
(
ipSlice
,
strconv
.
Itoa
(
int
(
d
)))
}
return
strings
.
Join
(
ipSlice
,
"."
)
}
else
{
data
=
bytes
.
TrimRight
(
data
,
"
\x00
"
)
return
strings
.
Trim
(
world
.
Config
()
.
Get
(
"DnsReg"
)
.
StorageString
(
domain
)
.
Str
(),
"
\x00
"
)
return
string
(
data
)
}
}
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