Switch to SDK Fork to Address Distribution Bug #885
Merged
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.
Context and purpose of the change
Switches to a forked version of Cosmos SDK v0.47.4 in order to solve a Distribution bug with SDK v0.47.x.
This shows the full set of changes to the SDK (1 line change). Conceptually, we are allowing a 5 STRD margin of error on a distribution sanity-check.
In practice, this will only affect delegators to one specific validator, and this change should get removed after we can more properly test a permanent fix.
I've verified that only one validator is affected by this bug, and the 5 STRD should fully unblock this validator until the permanent fix is implemented.
Example Responses
This query should throw an error on the current Stride mainnet, as it surfaces the panic in the Distribution module.
strided q distribution validator-distribution-info stridevaloper1tlz6ksce084ndhwlq2usghamvh0dut9q4z2gxd
This is the specific error that's thrown on mainnet:
This is the response for the sample query AFTER this change (to the modified SDK) has been made