This section covers bloom filters, a key data structure used to create the logsBloom in both the block header and transaction receipts.
See the "Bloom Filter" section in the EVM Deep Dives Part 6 article for more details.
To run the code associated with this section first ensure the ETH_RPC_URL env var is set then run main.go
export ETH_RPC_URL=https://eth-mainnet.alchemyapi.io/v2/[API_KEY]
go run bloom/main.go
Example - Block 15001871
This code section run through the bloom filters contained in Block 15001871. The following print statements have been added to take you from block header to the specific bits that are flipped within the bloom filter.