@leofcoin/chain 1.7.33 → 1.7.34
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.
- package/exports/browser/chain.js +2 -2
- package/exports/chain.js +2 -2
- package/package.json +1 -1
package/exports/browser/chain.js
CHANGED
|
@@ -4434,9 +4434,9 @@ class Chain extends VersionControl {
|
|
|
4434
4434
|
if (Object.keys(lastBlock).length > 0) {
|
|
4435
4435
|
if (!this.lastBlock || higherThenCurrentLocal) {
|
|
4436
4436
|
this.knownBlocks = await this.#makeRequest(peer, 'knownBlocks');
|
|
4437
|
-
const
|
|
4437
|
+
const stateInfo = await this.#makeRequest(peer, 'stateInfo');
|
|
4438
4438
|
await this.syncChain(lastBlock);
|
|
4439
|
-
this
|
|
4439
|
+
this.machine.states.info = stateInfo;
|
|
4440
4440
|
}
|
|
4441
4441
|
}
|
|
4442
4442
|
if (this.wantList.length > 0) {
|
package/exports/chain.js
CHANGED
|
@@ -1535,9 +1535,9 @@ class Chain extends VersionControl {
|
|
|
1535
1535
|
if (Object.keys(lastBlock).length > 0) {
|
|
1536
1536
|
if (!this.lastBlock || higherThenCurrentLocal) {
|
|
1537
1537
|
this.knownBlocks = await this.#makeRequest(peer, 'knownBlocks');
|
|
1538
|
-
const
|
|
1538
|
+
const stateInfo = await this.#makeRequest(peer, 'stateInfo');
|
|
1539
1539
|
await this.syncChain(lastBlock);
|
|
1540
|
-
this
|
|
1540
|
+
this.machine.states.info = stateInfo;
|
|
1541
1541
|
}
|
|
1542
1542
|
}
|
|
1543
1543
|
if (this.wantList.length > 0) {
|