@leofcoin/chain 1.7.21 → 1.7.23
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 +1 -1
package/exports/browser/chain.js
CHANGED
|
@@ -4776,7 +4776,7 @@ class State extends Contract {
|
|
|
4776
4776
|
request: 'knownBlocks'
|
|
4777
4777
|
});
|
|
4778
4778
|
let node = await globalThis.peernet.prepareMessage(data);
|
|
4779
|
-
let message = await peer.request(node);
|
|
4779
|
+
let message = await peer.request(node.encode());
|
|
4780
4780
|
message = await new globalThis.peernet.protos['peernet-response'](message);
|
|
4781
4781
|
this.knownBlocks = message.decoded.response;
|
|
4782
4782
|
}
|
|
@@ -5201,9 +5201,9 @@ class Chain extends VersionControl {
|
|
|
5201
5201
|
normalTransactions.push(transaction);
|
|
5202
5202
|
}
|
|
5203
5203
|
for (const transaction of priorityransactions.sort((a, b) => a.decoded.nonce - b.decoded.nonce)) {
|
|
5204
|
-
await this.#handleTransaction(transaction, []
|
|
5204
|
+
await this.#handleTransaction(transaction, []);
|
|
5205
5205
|
}
|
|
5206
|
-
await Promise.all(normalTransactions.map((transaction) => this.#handleTransaction(transaction, []
|
|
5206
|
+
await Promise.all(normalTransactions.map((transaction) => this.#handleTransaction(transaction, [])));
|
|
5207
5207
|
// for (let transaction of transactionsMessages) {
|
|
5208
5208
|
// // await transactionStore.put(transaction.hash, transaction.encoded)
|
|
5209
5209
|
// if (!contracts.includes(transaction.to)) {
|
package/exports/chain.js
CHANGED
|
@@ -1143,7 +1143,7 @@ class State extends Contract {
|
|
|
1143
1143
|
request: 'knownBlocks'
|
|
1144
1144
|
});
|
|
1145
1145
|
let node = await globalThis.peernet.prepareMessage(data);
|
|
1146
|
-
let message = await peer.request(node);
|
|
1146
|
+
let message = await peer.request(node.encode());
|
|
1147
1147
|
message = await new globalThis.peernet.protos['peernet-response'](message);
|
|
1148
1148
|
this.knownBlocks = message.decoded.response;
|
|
1149
1149
|
}
|
|
@@ -1568,9 +1568,9 @@ class Chain extends VersionControl {
|
|
|
1568
1568
|
normalTransactions.push(transaction);
|
|
1569
1569
|
}
|
|
1570
1570
|
for (const transaction of priorityransactions.sort((a, b) => a.decoded.nonce - b.decoded.nonce)) {
|
|
1571
|
-
await this.#handleTransaction(transaction, []
|
|
1571
|
+
await this.#handleTransaction(transaction, []);
|
|
1572
1572
|
}
|
|
1573
|
-
await Promise.all(normalTransactions.map((transaction) => this.#handleTransaction(transaction, []
|
|
1573
|
+
await Promise.all(normalTransactions.map((transaction) => this.#handleTransaction(transaction, [])));
|
|
1574
1574
|
// for (let transaction of transactionsMessages) {
|
|
1575
1575
|
// // await transactionStore.put(transaction.hash, transaction.encoded)
|
|
1576
1576
|
// if (!contracts.includes(transaction.to)) {
|