A scanner for findora. This tool will generate all data and cache into db.
- PostgreSQL
Before use scanner, you should set environment variable DATABASE_URL
correctly. The format of it is postgres://<Owner>:<Password>@<Host>/<DatabaseName>
.
Set environment variable RUST_LOG=scanner=info
to show logs.
INTERVAL=10
is the interval of scanning blocks. If not set, the default is 15.
scanner-cli load -s https://prod-mainnet.prod.findora.org:26657/ --height <int>
scanner-cli scan -s https://prod-mainnet.prod.findora.org:26657/ --start <int> --end <int>
scanner-cli subscribe -s https://prod-mainnet.prod.findora.org:26657/
start height is loaded from database, or specified by --start <int>