Skip to content

Commit

Permalink
Fix apply_receipt_in_chunk for state-viewer.
Browse files Browse the repository at this point in the history
  • Loading branch information
robin-near committed Dec 12, 2024
1 parent 266088a commit f26b12e
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions tools/state-viewer/src/apply_chunk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -388,14 +388,7 @@ fn apply_receipt_in_chunk(
id: &CryptoHash,
storage: StorageSource,
) -> anyhow::Result<Vec<ApplyChunkResult>> {
if chain_store.get_receipt(id)?.is_none() {
// TODO: handle local/delayed receipts
return Err(anyhow!("receipt with ID {} not known. Is it a local or delayed receipt?", id));
}

println!(
"Receipt is known but doesn't seem to have been applied. Searching in chunks that haven't been applied..."
);
println!("Receipt is not indexed; searching in chunks that haven't been applied...");

let head = chain_store.head()?.height;
let protocol_version = chain_store.head_header()?.latest_protocol_version();
Expand Down

0 comments on commit f26b12e

Please sign in to comment.