MCPcopy Create free account
hub / github.com/ChainSafe/Delorean-Protocol / state_height

Method state_height

fendermint/app/src/app.rs:103–105  ·  view source on GitHub ↗

The state is effective at the *next* block, that is, the effects of block N are visible in the header of block N+1, so the height of the state itself as a "post-state" is one higher than the block which we executed to create it.

(&self)

Source from the content-addressed store, hash-verified

101 /// The state is effective at the *next* block, that is, the effects of block N are visible in the header of block N+1,
102 /// so the height of the state itself as a "post-state" is one higher than the block which we executed to create it.
103 pub fn state_height(&self) -> BlockHeight {
104 self.block_height + 1
105 }
106}
107
108pub struct AppConfig<S: KVStore> {

Callers 1

set_committed_stateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected