diff options
author | obscuren <geffobscura@gmail.com> | 2014-11-14 21:17:54 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-11-14 21:17:54 +0800 |
commit | 56aa24002de357c24a9644a49d5702c8d4663909 (patch) | |
tree | 7791c7cbe4e66137cf85a405cf32751a7916ce70 /chain/bloom9.go | |
parent | 711be7009ef5b9ad77f37a4ccd0dffcc9286e1f8 (diff) | |
download | dexon-56aa24002de357c24a9644a49d5702c8d4663909.tar dexon-56aa24002de357c24a9644a49d5702c8d4663909.tar.gz dexon-56aa24002de357c24a9644a49d5702c8d4663909.tar.bz2 dexon-56aa24002de357c24a9644a49d5702c8d4663909.tar.lz dexon-56aa24002de357c24a9644a49d5702c8d4663909.tar.xz dexon-56aa24002de357c24a9644a49d5702c8d4663909.tar.zst dexon-56aa24002de357c24a9644a49d5702c8d4663909.zip |
Clean up
Diffstat (limited to 'chain/bloom9.go')
-rw-r--r-- | chain/bloom9.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/chain/bloom9.go b/chain/bloom9.go index bf270127e..c610bd101 100644 --- a/chain/bloom9.go +++ b/chain/bloom9.go @@ -8,16 +8,16 @@ import ( "github.com/ethereum/go-ethereum/state" ) -func CreateBloom(block *Block) []byte { +func CreateBloom(receipts Receipts) []byte { bin := new(big.Int) - for _, receipt := range block.Receipts() { - bin.Or(bin, LogsBloom(receipt.logs)) + for _, receipt := range receipts { + bin.Or(bin, logsBloom(receipt.logs)) } return ethutil.LeftPadBytes(bin.Bytes(), 64) } -func LogsBloom(logs state.Logs) *big.Int { +func logsBloom(logs state.Logs) *big.Int { bin := new(big.Int) for _, log := range logs { data := [][]byte{log.Address} |