Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

blockstream store to disk #339

Open
wants to merge 180 commits into
base: main
Choose a base branch
from

Conversation

grooviegermanikus
Copy link
Collaborator

@grooviegermanikus grooviegermanikus commented Feb 26, 2024

Tool to dump some blocks on disk for later replay (e.g. for performance test)

RUST_LOG=info,grpc_dump_blocks=debug,geyser_grpc_connector=debug,solana_lite_rpc_cluster_endpoints::grpc_store_to_disk=debug cargo run --bin grpc_dump_blocks -- --grpc-addr https://api.testnet.rpcpool.com/ --grpc-x-token secrettoken --duration 3 --dump-directory /opt/solana/blocks_on_disk

Usage: grpc_dump_blocks [OPTIONS] --dump-directory <DUMP_DIRECTORY> --duration --grpc-addr <GRPC_ADDR>
Options:
--dump-directory <DUMP_DIRECTORY>
Directory to dump blocks; must exist contain the marker file '.solana-blocks-dump'
--duration
Seconds to run the dumper
--grpc-addr <GRPC_ADDR>
Address of the gRPC server
--grpc-x-token <GRPC_X_TOKEN>
Optional token for gRPC server

2024-02-26T14:42:23.665229Z INFO solana_lite_rpc_cluster_endpoints::grpc_store_to_disk: Wrote block 254984281 with 918423 bytes to disk: /opt/solana/blocks_on_disk/blocks-000254984xxx/block-000254984281-confirmed-1708958543653.dat

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants