mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 14:46:42 +00:00
core/types: fix rebase issue
This commit is contained in:
parent
08b6d495a9
commit
fc4e4b3a5b
1 changed files with 3 additions and 3 deletions
|
|
@ -106,12 +106,12 @@ func (b *Bloom) UnmarshalText(input []byte) error {
|
||||||
func CreateBloom(receipt *Receipt) Bloom {
|
func CreateBloom(receipt *Receipt) Bloom {
|
||||||
var (
|
var (
|
||||||
bin Bloom
|
bin Bloom
|
||||||
buf = make([]byte, 6)
|
buf [6]byte
|
||||||
)
|
)
|
||||||
for _, log := range receipt.Logs {
|
for _, log := range receipt.Logs {
|
||||||
bin.AddWithBuffer(log.Address.Bytes(), buf)
|
bin.AddWithBuffer(log.Address.Bytes(), &buf)
|
||||||
for _, b := range log.Topics {
|
for _, b := range log.Topics {
|
||||||
bin.AddWithBuffer(b[:], buf)
|
bin.AddWithBuffer(b[:], &buf)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return bin
|
return bin
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue