Skip to content

Commit

Permalink
chore: fetch snapshot in bundle summary
Browse files Browse the repository at this point in the history
  • Loading branch information
troykessler committed Jun 13, 2024
1 parent 261bff9 commit e8f08e0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions integrations/tendermint-ssync/src/runtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export default class TendermintSSync implements IRuntime {
return {
key,
value: {
snapshot,
snapshot: null,
block: null,
seenCommit: null,
state: null,
Expand Down Expand Up @@ -201,7 +201,8 @@ export default class TendermintSSync implements IRuntime {
}

const [height, chunkIndex] = dataItem.key.split('/').map((k) => +k);
return `${height}/${dataItem.value.snapshot.format}/${chunkIndex}/${dataItem.value.snapshot.chunks}`;
const snapshot = await this.getSnapshot(height);
return `${height}/${snapshot.format}/${chunkIndex}/${snapshot.chunks}`;
}

async nextKey(_: Validator, key: string): Promise<string> {
Expand Down

0 comments on commit e8f08e0

Please sign in to comment.