-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Delay validator set changes by 1 block in the SDK to reflect changes in Tendermint #1789
Comments
yeah bucky and I were talking about this - Ideally we need some kind of a response from abci that a validator has actually entered the tendermint validator set - OR alternatively - if this "1-block" is some kind of a genesis constant (I don't think it is though) - we could could just read it in - which could help code comprehension. What do you think? Not totally adverse to just hard-coding it with a comment, I just think it's not ideal (prone to slip-ups also if this changes in Tendermint at some point in the future too) |
I think it won't change until Tendermint v2, so it's something hard-coded. Tendermint <> SDK <> App, and I think we can assume that SDK developers can deal with these quirks for general app developers. And if not, we can introduce new measures down the line. For launch lets just hard-code it. |
This needs to also change slashing logic since "contributing stake" is now offset by one block - if you unbond at block |
Subset of #2142 (or maybe a duplicate, but leaving both for now). |
As Jae and I discussed a while ago these changes do not affect staking in any real way - only slashing |
We need to modify |
In the medium term I think it makes sense to have these to entirely aligned to avoid confusion - it's only prelaunch that I'm not concerned about - there are a few very fundamental changes which are required to be made for staking to fully align with tendermint - but it barely affects the functionality. Yeah I'll think about the best way to move |
* add encode and decode tests * give file permisssion to docker user * fix ci permissions for tests Co-authored-by: billy rennekamp <billy.rennekamp@gmail.com>
Corresponding PR on Tendermint: tendermint/tendermint#1815
We need this for launch, as lite requires it.
Please sync with me for any issues or questions, and Ethan for timeline for merging on the tendermint side.
The text was updated successfully, but these errors were encountered: