mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-16 18:00:46 +00:00
core/types: reduce allocs in CreateBloom (#35234)
This commit is contained in:
parent
0a47739f11
commit
b4f749af11
1 changed files with 3 additions and 3 deletions
|
|
@ -110,9 +110,9 @@ func CreateBloom(receipt *Receipt) Bloom {
|
||||||
buf [6]byte
|
buf [6]byte
|
||||||
)
|
)
|
||||||
for _, log := range receipt.Logs {
|
for _, log := range receipt.Logs {
|
||||||
bin.AddWithBuffer(log.Address.Bytes(), &buf)
|
bin.AddWithBuffer(log.Address[:], &buf)
|
||||||
for _, b := range log.Topics {
|
for k := range log.Topics {
|
||||||
bin.AddWithBuffer(b[:], &buf)
|
bin.AddWithBuffer(log.Topics[k][:], &buf)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return bin
|
return bin
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue