@dignetwork/dig-sdk 0.0.1-alpha.122 → 0.0.1-alpha.123
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -243,7 +243,7 @@ class DataStore {
|
|
|
243
243
|
await peer.waitForCoinToBeSpent((0, datalayer_driver_1.getCoinId)(previousStore.latestStore.coin), createdAtHeight, createdAtHash);
|
|
244
244
|
// Sync store and get updated details
|
|
245
245
|
console.log("Monitor:", `Syncing store for storeId: ${storeId}`);
|
|
246
|
-
const { latestStore, latestHeight } = await peer.syncStore(previousStore.latestStore,
|
|
246
|
+
const { latestStore, latestHeight } = await peer.syncStore(previousStore.latestStore, createdAtHeight, createdAtHash, false);
|
|
247
247
|
const latestHash = await peer.getHeaderHash(latestHeight);
|
|
248
248
|
// Serialize and cache the updated store info
|
|
249
249
|
const serializedLatestStore = new DataStoreSerializer_1.DataStoreSerializer(latestStore, latestHeight, latestHash).serialize();
|