aboutsummaryrefslogtreecommitdiffstats
path: root/core/types/bloom9.go
diff options
context:
space:
mode:
Diffstat (limited to 'core/types/bloom9.go')
-rw-r--r--core/types/bloom9.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/types/bloom9.go b/core/types/bloom9.go
index af90679ce..0d37cb19f 100644
--- a/core/types/bloom9.go
+++ b/core/types/bloom9.go
@@ -4,8 +4,8 @@ import (
"math/big"
"github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/crypto"
"github.com/ethereum/go-ethereum/core/state"
+ "github.com/ethereum/go-ethereum/crypto"
)
func CreateBloom(receipts Receipts) Bloom {
@@ -20,10 +20,10 @@ func CreateBloom(receipts Receipts) Bloom {
func LogsBloom(logs state.Logs) *big.Int {
bin := new(big.Int)
for _, log := range logs {
- data := make([]common.Hash, len(log.Topics()))
- bin.Or(bin, bloom9(log.Address().Bytes()))
+ data := make([]common.Hash, len(log.Topics))
+ bin.Or(bin, bloom9(log.Address.Bytes()))
- for i, topic := range log.Topics() {
+ for i, topic := range log.Topics {
data[i] = topic
}