Skip to content

Commit

Permalink
fix: use key as bundle summary in state-sync runtime (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
troykessler authored Oct 19, 2023
1 parent 58bc12c commit da043cc
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions integrations/tendermint-ssync/src/runtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,7 @@ export default class TendermintSSync implements IRuntime {
}

async summarizeDataBundle(_: Validator, bundle: DataItem[]): Promise<string> {
// TODO: maybe app hash or snapshot hash?
return `${bundle.at(-1)?.value?.snapshot?.height ?? '0'}/${
bundle.at(-1)?.value?.chunkIndex
}`;
return bundle.at(-1)?.key ?? '';
}

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

0 comments on commit da043cc

Please sign in to comment.