aboutsummaryrefslogtreecommitdiffstats
path: root/chain/bloom9.go
diff options
context:
space:
mode:
Diffstat (limited to 'chain/bloom9.go')
-rw-r--r--chain/bloom9.go8
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}