Error while decoding validator updates due to slashing
See original GitHub issueAs seen in the results for Cosmos block 10883046, when a validator is slashed the validator_updates
entry does not have a power
attribute. The decoder for this should be changed to make this property optional, as it is currently required and cannot be parsed.
Full error:
Error: Value must not be undefined
at assertSet (.../node_modules/@cosmjs/tendermint-rpc/build/tendermint34/encodings.js:13:15)
at assertNotEmpty (.../node_modules/@cosmjs/tendermint-rpc/build/tendermint34/encodings.js:107:5)
at decodeValidatorUpdate (.../node_modules/@cosmjs/tendermint-rpc/build/tendermint34/adaptor/responses.js:122:79)
at Array.map (<anonymous>)
at decodeBlockResults (.../node_modules/@cosmjs/tendermint-rpc/build/tendermint34/adaptor/responses.js:130:58)
at decodeBlockResults (.../node_modules/@cosmjs/tendermint-rpc/build/tendermint34/adaptor/responses.js:384:16)
at Tendermint34Client.doCall (.../node_modules/@cosmjs/tendermint-rpc/build/tendermint34/tendermint34client.js:306:16)
Related to #1142.
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:7 (6 by maintainers)
Top Results From Across the Web
Error Explanations for The W3C Markup Validation Service
This error may appear when the validator receives an empty document. Please make sure that the document you are uploading is not empty,...
Read more >Python: Ignore 'Incorrect padding' error when base64 decoding
Update 2: It is possible that the encoding has been done in an url-safe manner. ... If you can see none of minus,...
Read more >Errors and How to Resolve Them - Polkadot Wiki
Here's how to find out the detailed error description through Polkadot-JS Apps. A typical failed transactions looks something like this: Error ...
Read more >ADR 14: Proportional Slashing - Cosmos SDK Documentation
In Proof of Stake-based chains, centralization of consensus power amongst a small set of validators can cause harm to the network due to...
Read more >Understanding the "illegal base64 character" error (Java ...
This error happens when the string that you are trying to transform contains a character not recognized by the basic Base 64 Alphabet...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
There is this data dump from protobuf generated Go code with omitempty: https://github.com/tendermint/tendermint/blob/v0.35.6/abci/types/types.pb.go#L2656
Good catch! Tendermint proto also not stated this field as non-nullable. https://github.com/tendermint/tendermint/blob/master/proto/tendermint/abci/types.proto#L421