@leofcoin/chain 1.8.9 → 1.8.12
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 +3 -3
- package/exports/chain.js +3 -3
- package/package.json +2 -2
package/exports/browser/chain.js
CHANGED
|
@@ -6622,8 +6622,8 @@ class Chain extends VersionControl {
|
|
|
6622
6622
|
debug(`created block: ${hash} @${block.index}`);
|
|
6623
6623
|
// Publish canonical encoded form via codec interface
|
|
6624
6624
|
console.log(`[chain] 📤 Publishing block #${block.index} | hash: ${hash} | encoded bytes: ${blockMessage.encoded.length}`);
|
|
6625
|
-
globalThis.peernet.publish('add-block', blockMessage.
|
|
6626
|
-
globalThis.pubsub.publish('add-block', blockMessage.
|
|
6625
|
+
globalThis.peernet.publish('add-block', blockMessage.encoded);
|
|
6626
|
+
globalThis.pubsub.publish('add-block', blockMessage.encoded);
|
|
6627
6627
|
}
|
|
6628
6628
|
catch (error) {
|
|
6629
6629
|
console.log(error);
|
|
@@ -6657,7 +6657,7 @@ class Chain extends VersionControl {
|
|
|
6657
6657
|
const transactionMessage = await new TransactionMessage({ ...transaction });
|
|
6658
6658
|
const event = await super.sendTransaction(transactionMessage);
|
|
6659
6659
|
this.#sendTransaction(transactionMessage.encoded);
|
|
6660
|
-
globalThis.peernet.publish('send-transaction', transactionMessage.
|
|
6660
|
+
globalThis.peernet.publish('send-transaction', transactionMessage.encoded);
|
|
6661
6661
|
return event;
|
|
6662
6662
|
}
|
|
6663
6663
|
async addContract(transaction, contractMessage) {
|
package/exports/chain.js
CHANGED
|
@@ -2762,8 +2762,8 @@ class Chain extends VersionControl {
|
|
|
2762
2762
|
debug(`created block: ${hash} @${block.index}`);
|
|
2763
2763
|
// Publish canonical encoded form via codec interface
|
|
2764
2764
|
console.log(`[chain] 📤 Publishing block #${block.index} | hash: ${hash} | encoded bytes: ${blockMessage.encoded.length}`);
|
|
2765
|
-
globalThis.peernet.publish('add-block', blockMessage.
|
|
2766
|
-
globalThis.pubsub.publish('add-block', blockMessage.
|
|
2765
|
+
globalThis.peernet.publish('add-block', blockMessage.encoded);
|
|
2766
|
+
globalThis.pubsub.publish('add-block', blockMessage.encoded);
|
|
2767
2767
|
}
|
|
2768
2768
|
catch (error) {
|
|
2769
2769
|
console.log(error);
|
|
@@ -2797,7 +2797,7 @@ class Chain extends VersionControl {
|
|
|
2797
2797
|
const transactionMessage = await new TransactionMessage({ ...transaction });
|
|
2798
2798
|
const event = await super.sendTransaction(transactionMessage);
|
|
2799
2799
|
this.#sendTransaction(transactionMessage.encoded);
|
|
2800
|
-
globalThis.peernet.publish('send-transaction', transactionMessage.
|
|
2800
|
+
globalThis.peernet.publish('send-transaction', transactionMessage.encoded);
|
|
2801
2801
|
return event;
|
|
2802
2802
|
}
|
|
2803
2803
|
async addContract(transaction, contractMessage) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leofcoin/chain",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.12",
|
|
4
4
|
"description": "Official javascript implementation",
|
|
5
5
|
"private": false,
|
|
6
6
|
"exports": {
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"@leofcoin/messages": "^1.4.40",
|
|
70
70
|
"@leofcoin/multi-wallet": "^3.1.8",
|
|
71
71
|
"@leofcoin/networks": "^1.1.25",
|
|
72
|
-
"@leofcoin/peernet": "^1.2.
|
|
72
|
+
"@leofcoin/peernet": "^1.2.11",
|
|
73
73
|
"@leofcoin/storage": "^3.5.38",
|
|
74
74
|
"@leofcoin/utils": "^1.1.40",
|
|
75
75
|
"@leofcoin/workers": "^1.5.27",
|