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

Standardize coinparam HDCoinType allocation #419

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

Varunram
Copy link
Contributor

In the future, we can refer to SLIP-044 for main net coin number and then allocate the appropriate number for regtest and testnet coins. The number 10000 was chosen hoping that there wouldn't be more than 10000 coins in existence. This can be increased if desired.

WARNING: If you're already running lit, this will not work with your regtest and mainnet coins. This does not change the behaviour of Vertcoin Mainnet in any way, so those funds are safe.

ref: #340

@delbonis
Copy link
Collaborator

Changing these values is why I'm in favor of eagerly evaluating HD keys for each channel. So you create a "channel root key" when you create a new channel and that's kept with the channel for the life of it, and there's (almost) absolutely no way to have keys break outside of changing the root key itself.

@delbonis
Copy link
Collaborator

Also, does this update the REGTEST_COINTYPE value in testlib.py?

@Varunram
Copy link
Contributor Author

I think the channel root key is a nice idea, dunno about the downsides, so need to ask others about it. Regarding REGTEST_COINTYPE, good catch, will update.

@delbonis delbonis added the consistency Not a significant change/enhancement but clean up of confusion label Nov 7, 2018
@Varunram
Copy link
Contributor Author

Varunram commented Dec 5, 2018

retest this please

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
consistency Not a significant change/enhancement but clean up of confusion
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants