@leofcoin/chain 1.7.155 → 1.7.156
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 +1 -1
- package/exports/chain.js +1 -1
- package/package.json +1 -1
package/exports/browser/chain.js
CHANGED
|
@@ -6157,7 +6157,7 @@ class Chain extends VersionControl {
|
|
|
6157
6157
|
debug(`created block: ${hash} @${block.index}`);
|
|
6158
6158
|
// Publish canonical encoded form via codec interface
|
|
6159
6159
|
console.log(`[chain] 📤 Publishing block #${block.index} | hash: ${hash} | encoded bytes: ${blockMessage.encoded.length}`);
|
|
6160
|
-
globalThis.peernet.publish('add-block', blockMessage.
|
|
6160
|
+
globalThis.peernet.publish('add-block', blockMessage.decoded);
|
|
6161
6161
|
globalThis.pubsub.publish('add-block', blockMessage.decoded);
|
|
6162
6162
|
}
|
|
6163
6163
|
catch (error) {
|
package/exports/chain.js
CHANGED
|
@@ -2298,7 +2298,7 @@ class Chain extends VersionControl {
|
|
|
2298
2298
|
debug(`created block: ${hash} @${block.index}`);
|
|
2299
2299
|
// Publish canonical encoded form via codec interface
|
|
2300
2300
|
console.log(`[chain] 📤 Publishing block #${block.index} | hash: ${hash} | encoded bytes: ${blockMessage.encoded.length}`);
|
|
2301
|
-
globalThis.peernet.publish('add-block', blockMessage.
|
|
2301
|
+
globalThis.peernet.publish('add-block', blockMessage.decoded);
|
|
2302
2302
|
globalThis.pubsub.publish('add-block', blockMessage.decoded);
|
|
2303
2303
|
}
|
|
2304
2304
|
catch (error) {
|