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)
| 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 | |
| 108 | pub struct AppConfig<S: KVStore> { |