Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file added .changelog/6500.internal.md
Empty file.
4 changes: 4 additions & 0 deletions runtime/src/consensus/tendermint/verifier/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,10 @@ impl Verifier {
instance: &mut Instance,
height: u64,
) -> Result<ConsensusState, Error> {
if height == HEIGHT_LATEST {
return self.latest_consensus_state(cache, instance);
}

// Obtain an authoritative state root, either from the current block if it is already
// finalized or from the metadata transaction of the previous block.
let state_root = match self.verify_to_target(height, cache, instance) {
Expand Down
Loading