Don't put new chains in wallet if we don't own them. #2725
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation
The long chain faucet test fails (
os error 16
for me) unless we explicitly forget the opened chains.It looks like we can't use a faucet with a wallet with 1000 chains in it fails. (I suspect the same would apply to the node service.) This is something we should look into as well.
Proposal
Make the
open-chain
CLI command not add new chains to the wallet if we don't own them.Keeping this as a draft for now:
Test Plan
I removed the
forget_chain
from the test and it still passes now.Release Plan
devnet
branch, thentestnet
branch, thenLinks