hub icon indicating copy to clipboard operation
hub copied to clipboard

Should herald support --chain argument, or should the chain (aka env.coin) be inferred from DBState?

Open moodyjon opened this issue 2 years ago • 1 comments

In most cases the DB (--db_dir=X) will have been populated by scribe, and so it's the scribe --chain=Y argument that's determinative.

(venv) swdev1@Jonathans-Mac-mini hub % herald --help
usage: herald [-h] --db_dir DB_DIR [--reorg_limit REORG_LIMIT] [--chain {mainnet,regtest,testnet}] [--max_query_workers MAX_QUERY_WORKERS] [--cache_all_tx_hashes] [--cache_all_claim_txos]
..snip...
optional arguments:
  -h, --help            show this help message and exit
  --db_dir DB_DIR       Path of the directory containing lbry-rocksdb.
  --reorg_limit REORG_LIMIT
                        Max reorg depth
  --chain {mainnet,regtest,testnet}
                        Which chain to use, default is mainnet, others are used for testing
...snip...

moodyjon avatar Aug 31 '22 19:08 moodyjon