Skip to main content
11 events
when toggle format what by license comment
Sep 5, 2022 at 15:40 vote accept aurexav
Sep 5, 2022 at 15:40 comment added aurexav Yes! That's the point! The key 0x3a6772616e6470615f617574686f726974696573 is what I am look for! It takes me a lot of time. Skipping override that key makes my fork-off chain runnable.
Sep 5, 2022 at 15:33 comment added André Let us continue this discussion in chat.
Sep 5, 2022 at 15:26 comment added André I have edited my original answer. Let me know if that solves it
Sep 5, 2022 at 15:25 history edited André CC BY-SA 4.0
added 649 characters in body
Sep 5, 2022 at 15:17 comment added aurexav Ah, sorry. The state_getStoragePaged one is fine. The ./node export-state > dump.json one has this issue.
Sep 5, 2022 at 14:55 comment added André Can you do the same thing using ./node --chain genesis.json --tmp and check if the problem is still there? If it's not then the issue is that you are reusing a database which contains the old local GRANDPA data (i.e. not runtime state data).
Sep 5, 2022 at 14:49 comment added aurexav But the interesting thing is I dumpped all the data (skip Babe/Grandpa/Session). And insert them into a brand new genesis for (k, v) in dump { genesis[k] = v; }. Then ./node --chain genesis.json. Babe/Grandpa/Session is empty, that's good. But when I call grandpa_roundState. What?! The old validator set shows up.
Sep 5, 2022 at 14:36 comment added André These keys are not stored in regular state storage since they are not part of the runtime state. You'll need to write some code that uses the API I linked above to remove the data from the local storage database. Alternatively you could: dump the state as you're doing, and then import it into a blank/new database. This should make sure that no existing "off-chain" GRANDPA state exists on the local database.
Sep 5, 2022 at 14:20 comment added aurexav I use state_getStoragePaged recursively fetch all data. And put them ({ k: v }) into a JSON file. How do I remove those keys? Is there a way to get the keys' value? Then I could index/locate them in the JSON.
Sep 5, 2022 at 12:53 history answered André CC BY-SA 4.0