@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.
@@ -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.encoded);
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.encoded);
2301
+ globalThis.peernet.publish('add-block', blockMessage.decoded);
2302
2302
  globalThis.pubsub.publish('add-block', blockMessage.decoded);
2303
2303
  }
2304
2304
  catch (error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leofcoin/chain",
3
- "version": "1.7.155",
3
+ "version": "1.7.156",
4
4
  "description": "Official javascript implementation",
5
5
  "private": false,
6
6
  "exports": {