Skip to content

Commit

Permalink
feat: regen store createion height if its missing
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelTaylor3D committed Sep 24, 2024
1 parent 2d9438c commit 989e6c8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/blockchain/DataStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -414,12 +414,13 @@ export class DataStore {
}
}

public async cacheStoreCreationHeight(
storeId: string
): Promise<{ createdAtHeight: number; createdAtHash: Buffer }> {
public async cacheStoreCreationHeight(): Promise<{
createdAtHeight: number;
createdAtHash: Buffer;
}> {
const peer = await FullNodePeer.connect();
const createdAtHeight = await peer.getStoreCreationHeight(
Buffer.from(storeId, "hex"),
Buffer.from(this.storeId, "hex"),
null,
Buffer.from(MAIN_NET_GENISES_CHALLENGE, "hex")
);
Expand Down

0 comments on commit 989e6c8

Please sign in to comment.