@leofcoin/chain 1.8.20 → 1.8.21
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
|
@@ -6367,7 +6367,10 @@ class Chain extends VersionControl {
|
|
|
6367
6367
|
}
|
|
6368
6368
|
let lastBlock;
|
|
6369
6369
|
try {
|
|
6370
|
-
|
|
6370
|
+
console.log('requesting last block from peer...');
|
|
6371
|
+
console.log(await this.lastBlock);
|
|
6372
|
+
console.log(new LastBlockMessage(await this.#makeRequest(peer, 'lastBlock')));
|
|
6373
|
+
lastBlock = new LastBlockMessage(await this.#makeRequest(peer, 'lastBlock')).decoded;
|
|
6371
6374
|
}
|
|
6372
6375
|
catch (error) {
|
|
6373
6376
|
const peerName = peer?.peerId || peer?.id || peer?.address || peerId || 'unknown';
|
package/exports/chain.js
CHANGED
|
@@ -2508,7 +2508,10 @@ class Chain extends VersionControl {
|
|
|
2508
2508
|
}
|
|
2509
2509
|
let lastBlock;
|
|
2510
2510
|
try {
|
|
2511
|
-
|
|
2511
|
+
console.log('requesting last block from peer...');
|
|
2512
|
+
console.log(await this.lastBlock);
|
|
2513
|
+
console.log(new LastBlockMessage(await this.#makeRequest(peer, 'lastBlock')));
|
|
2514
|
+
lastBlock = new LastBlockMessage(await this.#makeRequest(peer, 'lastBlock')).decoded;
|
|
2512
2515
|
}
|
|
2513
2516
|
catch (error) {
|
|
2514
2517
|
const peerName = peer?.peerId || peer?.id || peer?.address || peerId || 'unknown';
|