Joystream / Joystream/joystream
Possible substrate staking pallet bug: empty validator info query results
- Dominant language
- Rust
- Stars
- 1.4k
- Forks
- 116
- PR merge metrics
- No merged PRs in 30d
Description
I noticed a 'hole' querying validator info that may indicate a bug in substrate itself or for example [modifications to Joystream/substrate](https://github.com/search?q=repo%3AJoystream%2Fjoystream+ledger+OR+bonded&type=commits).
The first symptom is the missing `own stake` both in [p-js](https://polkadot.js.org/apps/?rpc=wss://rpc.joyutils.org#/staking/targets) and [pioneer](https://pioneerapp.xyz/#/validators).


On further inspection following chain queries return empty information as well:
- `staking.bonded`
- `staking.ledger`
In following screenshot for each query the first entry is for `j4Rc8VUXGYAx7FNbVZBFU72rQw3GaCuG2AkrUQWnWTh5SpemP` the second (correct): `j4ShWRXxTG4K5Q5H7KXmdWN8HnaaLwppqM7GdiSwAy3eTLsJt`. Both `staking.payee` and `staking.validators` return correct output for the first address (24) and are omitted here regarding the second (26) for brevity.

Please confirm that this problem persists and consult upstream if necessary. (cc @rossbulat )
Finally correct account information for 24 from the p-js details pane:

(feel free to change title based on findings)
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.