@leofcoin/chain 1.7.147 → 1.7.148
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 +4 -1
- package/exports/chain.js +4 -1
- package/package.json +1 -1
package/exports/browser/chain.js
CHANGED
|
@@ -5907,7 +5907,10 @@ class Chain extends VersionControl {
|
|
|
5907
5907
|
if (lastBlock) {
|
|
5908
5908
|
if (!this.lastBlock || higherThenCurrentLocal) {
|
|
5909
5909
|
this.knownBlocks = await this.#makeRequest(peer, 'knownBlocks');
|
|
5910
|
-
|
|
5910
|
+
console.log({ knownBlocks: this.knownBlocks });
|
|
5911
|
+
for (const hash of this.knownBlocks) {
|
|
5912
|
+
this.wantList.push(hash);
|
|
5913
|
+
}
|
|
5911
5914
|
}
|
|
5912
5915
|
}
|
|
5913
5916
|
if (this.wantList.length > 0) {
|
package/exports/chain.js
CHANGED
|
@@ -2047,7 +2047,10 @@ class Chain extends VersionControl {
|
|
|
2047
2047
|
if (lastBlock) {
|
|
2048
2048
|
if (!this.lastBlock || higherThenCurrentLocal) {
|
|
2049
2049
|
this.knownBlocks = await this.#makeRequest(peer, 'knownBlocks');
|
|
2050
|
-
|
|
2050
|
+
console.log({ knownBlocks: this.knownBlocks });
|
|
2051
|
+
for (const hash of this.knownBlocks) {
|
|
2052
|
+
this.wantList.push(hash);
|
|
2053
|
+
}
|
|
2051
2054
|
}
|
|
2052
2055
|
}
|
|
2053
2056
|
if (this.wantList.length > 0) {
|