Questions tagged [state]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
7 votes
1 answer
126 views

What's the fastest way to sync a node only keeping full state for the last N blocks?

I need to only keep state for the last few blocks, but I don't want to wait for the full sync of the node, is there a way to do that faster than by using --sync=full? Because it seems like all the ...
Vlad Markushin's user avatar
3 votes
2 answers
35 views

How to check if a `StorageMap` changed after the last access?

I am currently trying to iterate over a storage map over multiple blocks. For this I need to ensure that the StorageMap was not modified. My plan is to derive a hash from the current StorageMap and ...
Chralt's user avatar
  • 523
4 votes
1 answer
176 views

State Pruning: Archive-Canonical vs Archive-Finalized

Currently in substrate there is a possibility to set state pruning to "archive-canonical" or "number". In docs it states, that these values will cause to: archive-canonical - Keep ...
mnems's user avatar
  • 41
1 vote
1 answer
17 views

Custom Metadata Command Returnning Incorrect Data

I have written a command that exports the metadata at the CLI which /should/ duplicate the results of state_getMetadata. Full Source Code: https://github.com/LibertyDSNP/frequency/blob/main/node/cli/...
Wil W's user avatar
  • 433
0 votes
1 answer
66 views

Is there a way to verify existence of some state on a sibling parachain?

Given a relay chain block, is there some way to construct a proving system for any connected parachain's state at that relay block? I imaging there could be some information persisted on the relay ...
Nuke's user avatar
  • 1,822
1 vote
1 answer
27 views

Prevent state from being rolled back during an error (transactional)

We're writing a proxy extrinsic that dispatches a child call and consumes a 'free call'. We want to return the error of the child call to the user, but we want to consume a free call regardless. Since ...
Jake Hemmerle's user avatar
3 votes
2 answers
76 views

What's the size of the current state trie?

Approximately, what is the size of the state trie (in example on Polkadot for a recent block)? For example how many nodes are in the trie? Even better would be the total bytes of node partial keys, ...
Quentin Mcgaw's user avatar
3 votes
1 answer
156 views

Export state of a running chain and run it as alice

Hello everyone, I'm trying to spin up a test chain(with imported real chain data) with alice(so I can start it from genesis and start producing blocks with --alice flag) and after dumping the state of ...
flipchan's user avatar
  • 319
2 votes
1 answer
103 views

Where the GRANDPA round state stored at?

I'm writing a tool to build a fork-off chain. But the new chain can not get finalized. I've skipped the Babe/Grandpa/Session's storage. I also check the chain state, that no historical storage under ...
AurevoirXavier's user avatar