Joystream / Joystream/joystream

Possible substrate staking pallet bug: empty validator info query results

Open
#5,140 4 comments 0 reactions 0 assignees View on GitHub
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).
![ownstakebug-pioneer](https://github.com/Joystream/joystream/assets/31551045/635d9464-76dc-4194-a8db-92e20e217788)
![ownstakebug-pjs](https://github.com/Joystream/joystream/assets/31551045/d0ceabab-3c0e-4bc1-9776-28338d84f5c7)

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.

![ledger](https://github.com/Joystream/joystream/assets/31551045/275ba8b5-1821-4b8d-b299-07bdeea8af7f)

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:
![jssde-details](https://github.com/Joystream/joystream/assets/31551045/116eb815-55fd-4cb1-a7d1-72f57a2b041a)

(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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.