Keep your Mina block data up to date!
This tool is intended to support indexing of the Mina blockchain via the mina-indexer, but can be used by anyone who wants to download Mina blocks from a GCP bucket via gsutil
.
Note: you must have
gsutil
installed!
Clone the repo
git clone [email protected]:Granola-Tream/iggy.git
To make your life simpler, you may want to create an alias
alias iggy="RUST_LOG=info $IGGY_HOME/target/release/mina-indexer-block-util"
Simple
RUST_LOG=info cargo run --release --bin mina-indexer-block-util -- all -b /path/to/blocks/dir
For more options, see
cargo run --bin mina-indexer-block-util -- all --help
To get all blocks starting from length 2
and going to 101
and see Info
level logs, do
RUST_LOG=info cargo run --release --bin mina-indexer-block-util -- contiguous -b /path/to/blocks/dir
For more options, see
cargo run --bin mina-indexer-block-util -- contiguous --help
To get up-to-date with mainnet
blocks from the o1-labs mina_network_block_data
bucket and see Info
level logs, do
RUST_LOG=info cargo run --release --bin mina-indexer-block-util -- new-only -b /path/to/blocks/dir
For more options, see
cargo run --bin mina-indexer-block-util -- new-only --help
This is intended to be run after obtaining a nearly up-to-date collection of Mina blocks. To perpetually stay synced with the o1-labs GCP bucket and see Info
level logs, do
RUST_LOG=info cargo run --release --bin mina-indexer-block-util -- loop -b /path/to/blocks/dir
For more options, see
cargo run --bin mina-indexer-block-util -- new-only --help