bloom

command
v0.0.0-...-531619f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 28, 2022 License: MIT Imports: 13 Imported by: 0

README

BLOOM FILTERS

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.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL