0

Looking at newHeads and the docs say:

Fires a notification each time a new header is appended to the chain, including chain reorganizations. Users can use the bloom filter to determine if the block contains logs that are interested to them.

The response body includes logsBloom; does that filter include all addresses in the block or just addresses included in logs from smart contracts?

2 Answers 2

0

logsBloom is part of the Bloom Filter generated from the events fired in the block.

The bitarray logsBloom is used to determine if is possible that an event were triggered in the block, so information is stored directly, it is just that some bits are turned on when an event is triggered.

0

Blooms do not work with eth transactions (purely sending eth), eth transactions do not emit logs so do not exist in the bloom filter.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.