aboutsummaryrefslogtreecommitdiffstats
path: root/ethchain
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-10-27 18:44:28 +0800
committerobscuren <geffobscura@gmail.com>2014-10-27 18:44:28 +0800
commitd586dd902d1d850cb133583e8f6599e2a2973107 (patch)
treebb4ffda06fd7be26478b23302c398ff564fafbed /ethchain
parent272d58662c885ab1cef8930e96fb832ae5377d96 (diff)
downloadgo-tangerine-d586dd902d1d850cb133583e8f6599e2a2973107.tar
go-tangerine-d586dd902d1d850cb133583e8f6599e2a2973107.tar.gz
go-tangerine-d586dd902d1d850cb133583e8f6599e2a2973107.tar.bz2
go-tangerine-d586dd902d1d850cb133583e8f6599e2a2973107.tar.lz
go-tangerine-d586dd902d1d850cb133583e8f6599e2a2973107.tar.xz
go-tangerine-d586dd902d1d850cb133583e8f6599e2a2973107.tar.zst
go-tangerine-d586dd902d1d850cb133583e8f6599e2a2973107.zip
Fixed bloom
Diffstat (limited to 'ethchain')
-rw-r--r--ethchain/bloom9.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/ethchain/bloom9.go b/ethchain/bloom9.go
index eef0a9d3f..65be6c7a2 100644
--- a/ethchain/bloom9.go
+++ b/ethchain/bloom9.go
@@ -14,7 +14,7 @@ func CreateBloom(txs Transactions) uint64 {
func logsBloom(logs []vm.Log) uint64 {
var bin uint64
for _, log := range logs {
- data := []byte{log.Address}
+ data := [][]byte{log.Address}
for _, topic := range log.Topics {
data = append(data, topic.Bytes())
}
@@ -31,7 +31,7 @@ func logsBloom(logs []vm.Log) uint64 {
func bloom9(b []byte) uint64 {
var r uint64
for _, i := range []int{0, 2, 4} {
- r |= 1 << (b[i+1] + 256*(b[i]&1))
+ r |= 1 << (uint64(b[i+1]) + 256*(uint64(b[i])&1))
}
return r