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

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

Open
moodyjon opened this issue Aug 31, 2022 · 1 comment
Labels
area: herald area: scribe type: improvement Existing (or partially existing) functionality needs to be changed

Comments

@moodyjon
Copy link
Contributor

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 moodyjon added type: improvement Existing (or partially existing) functionality needs to be changed area: herald area: scribe labels Jan 3, 2023
@moodyjon
Copy link
Contributor Author

moodyjon commented Jan 3, 2023

Herald.go implemented an optional --chain argument this way:
https://github.com/moodyjon/herald.go/blob/e070e8a51ead553f31680e99d6cacd56bfcf3a2c/server/server.go#L275

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: herald area: scribe type: improvement Existing (or partially existing) functionality needs to be changed
Projects
None yet
Development

No branches or pull requests

1 participant