-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
Add starting account number to genesis file #1217
Comments
We should set this in InitChain |
The relevant comment from #1077 I believe is:
Do we really need to do this? |
This would make sense if we were var-int encoding account numbers. We're not (AFAIK), so in the current system there isn't a need to do it. I am actually in favor of var-int encoding these though, as the trade-off point where var-int encoding costs more than normal encoding is |
Going to close this cause we have moved from accounts to transactions for the genesis file per @alessio Please reopen if you feel I am wrong and direct all 🔥-> @jackzampolin |
We require this in order to have replay protection under forking with the same chain id. |
Non-malicious hard forks should not have the same chain-id. |
Ah your right. Though if we go with a proposal like #1653 this matters more, as it may be your main identifier. I also think that its preferrable to reduce the amount of changes one needs to make their local signing devices. |
If we do this we need to have a genesis check to ensure that no two account numbers are the same - this previously caused a headache of a bug |
Can we do this @sunnya97? Seems pretty trivial. |
Closing as stale and not important. |
So you can start at something other than 0. Also doesn't have to do a nil check every time. Requested in #1077
The text was updated successfully, but these errors were encountered: