question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error while decoding validator updates due to slashing

See original GitHub issue

As 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:closed
  • Created a year ago
  • Reactions:1
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
webmaster128commented, Jun 20, 2022

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

1reaction
y-pakorncommented, Jun 16, 2022

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found