diff options
Diffstat (limited to 'ethchain/bloom9.go')
-rw-r--r-- | ethchain/bloom9.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ethchain/bloom9.go b/ethchain/bloom9.go index 4028231a3..8fa7b6339 100644 --- a/ethchain/bloom9.go +++ b/ethchain/bloom9.go @@ -3,21 +3,21 @@ package ethchain import ( "math/big" + "github.com/ethereum/go-ethereum/ethstate" "github.com/ethereum/go-ethereum/ethutil" - "github.com/ethereum/go-ethereum/vm" ) func CreateBloom(block *Block) []byte { bin := new(big.Int) bin.Or(bin, bloom9(block.Coinbase)) - for _, tx := range block.Transactions() { - bin.Or(bin, LogsBloom(tx.logs)) + for _, receipt := range block.Receipts() { + bin.Or(bin, LogsBloom(receipt.logs)) } return bin.Bytes() } -func LogsBloom(logs []vm.Log) *big.Int { +func LogsBloom(logs ethstate.Logs) *big.Int { bin := new(big.Int) for _, log := range logs { data := [][]byte{log.Address} |