paritytech/smoldot

Unexpected amount of results of `state_getKeysPaged` JSON RPC request (staking.validators)

wirednkod opened this issue · 0 comments

When trying to request the validators list from both light client and polkadotJS the responses' length is different (light client: 2, while polkadotJS; 996).

In order to replicate the following method can be called (unfortunately it is truncated in the logs):

{"id":8,"jsonrpc":"2.0","method":"state_getKeysPaged","params":["0x5f3e4907f716ac89b6347d15ececedca88dcde934c658227ee1dfafcd6e16903",1000,"0x5f3e4907f716ac89b6347d15ececedca88dcde934c658227ee1dfafcd6e16903"]}

PolkadotJS Apps:
Screenshot 2022-10-29 at 3 15 19 PM

Light Client Apps:
Screenshot 2022-10-29 at 3 14 37 PM

Logs from the replication are attached: state_getKeysPaged.txt

Initiated by this issue on Polkadot Staking Dashboard. Based on it, this seems to impact eraStakers, validators, bondedPools and poolMembers entries requests.