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
34ee5ab9
Commit
34ee5ab9
authored
Mar 03, 2015
by
obscuren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bloom expanded by 4
parent
fa910966
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
bloom9.go
core/types/bloom9.go
+4
-3
No files found.
core/types/bloom9.go
View file @
34ee5ab9
...
...
@@ -14,7 +14,7 @@ func CreateBloom(receipts Receipts) []byte {
bin
.
Or
(
bin
,
LogsBloom
(
receipt
.
logs
))
}
return
ethutil
.
LeftPadBytes
(
bin
.
Bytes
(),
64
)
return
ethutil
.
LeftPadBytes
(
bin
.
Bytes
(),
256
)
}
func
LogsBloom
(
logs
state
.
Logs
)
*
big
.
Int
{
...
...
@@ -37,9 +37,10 @@ func LogsBloom(logs state.Logs) *big.Int {
func
bloom9
(
b
[]
byte
)
*
big
.
Int
{
r
:=
new
(
big
.
Int
)
for
_
,
i
:=
range
[]
int
{
0
,
2
,
4
}
{
for
i
:=
0
;
i
<
16
;
i
+=
2
{
t
:=
big
.
NewInt
(
1
)
b
:=
uint
(
b
[
i
+
1
])
+
256
*
(
uint
(
b
[
i
])
&
1
)
b
:=
uint
(
b
[
i
+
1
])
+
1024
*
(
uint
(
b
[
i
])
&
1
)
r
.
Or
(
r
,
t
.
Lsh
(
t
,
b
))
}
...
...
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