-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
feat: p2p: allow overriding bootstrap nodes with environmemnt variable #12292
feat: p2p: allow overriding bootstrap nodes with environmemnt variable #12292
Conversation
Is there a good reason to make new env vars for the different network types? Wouldn't a single |
Hi @rvagg I was assuming a developer could run different networks on the same machine(not necessarily at the same time), maybe devnet with LOTUS_P2P_BOOTSTRAPPERS_DEVNET then calibnet, in this case if it's a shared variable, they will always need to change the value whenever they switch the network. Does that make sense? |
Not really, this seems like the kind of env var you'd want to localise to the instance itself, not set in the global environment, so it gets targeted to whatever instance you're running. We also don't have a precedent of doing this, I don't believe there's ever been a need ( Unless you have a specific workflow in mind how you'd consume this that would make it particularly awkward to switch for the different network types? |
@rvagg changed to using a single |
Related Issues
ChainSafe/forest#4576
ChainSafe/forest#4580
ChainSafe/forest#4581
#12289
Proposed Changes
Allow overriding bootstrap nodes at runtime with network specific environment variables
Additional Info
Checklist
Before you mark the PR ready for review, please make sure that:
<PR type>: <area>: <change being made>
fix: mempool: Introduce a cache for valid signatures
PR type
: fix, feat, build, chore, ci, docs, perf, refactor, revert, style, testarea
, e.g. api, chain, state, mempool, multisig, networking, paych, proving, sealing, wallet, deps[skip changelog]
to the PR titleskip/changelog
to the PR