This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
Allow for childstate queries for multiple child keys #9203
Labels
J0-enhancement
An additional feature request.
Z2-medium
Can be fixed by a coder with good Rust knowledge but little knowledge of the codebase.
Current we have childstate queries for single keys,
This approach work quite well. However in places where we do use childstate (e.g. crowdloans) we actually want to get multiple entries. For instance, I have 4 accounts for contributed to a specific crowdloan and to retrieve the values need to do 4 individual requests. This is in the cases where I know that the specific accounts have contributed.
Now look at the case where I may want to check if some of my accounts contributed to a specific loan. To do this would need to make X indv. RPC calls (where X = number of available accounts). For an RPC-user perspective and from an Node overhead perspective, it would potentially be much more optimal to have a signature such as -
Which would allow us to query a specific childtrie to retrieve the values for more than one key in a single request.
The text was updated successfully, but these errors were encountered: