Questions tagged [state]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
3 votes
2 answers
29 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
  • 363
2 votes
1 answer
76 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
  • 21
1 vote
1 answer
14 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
  • 349
0 votes
1 answer
59 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,692
0 votes
0 answers
20 views

Tracing calls to state

I'm having an issue with node state growing disproportionately depending on some initial settings. The difference rate is around 20 Mb/hour. Is there any way to trace system calls to at least pallets (...
user3372's user avatar
1 vote
1 answer
24 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
2 votes
2 answers
54 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
1 vote
1 answer
104 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
  • 171
2 votes
1 answer
87 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