@leofcoin/chain 1.7.32 → 1.7.33
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
|
@@ -4372,7 +4372,7 @@ class Chain extends VersionControl {
|
|
|
4372
4372
|
await globalThis.peernet.addRequestHandler('transactionPool', this.#transactionPoolHandler.bind(this));
|
|
4373
4373
|
await globalThis.peernet.addRequestHandler('version', this.#versionHandler.bind(this));
|
|
4374
4374
|
await globalThis.peernet.addRequestHandler('stateInfo', () => {
|
|
4375
|
-
return new globalThis.peernet.protos['peernet-response']({ response: this
|
|
4375
|
+
return new globalThis.peernet.protos['peernet-response']({ response: this.machine.states.info });
|
|
4376
4376
|
});
|
|
4377
4377
|
globalThis.peernet.subscribe('add-block', this.#addBlock.bind(this));
|
|
4378
4378
|
globalThis.peernet.subscribe('invalid-transaction', this.#invalidTransaction.bind(this));
|
package/exports/chain.js
CHANGED
|
@@ -1473,7 +1473,7 @@ class Chain extends VersionControl {
|
|
|
1473
1473
|
await globalThis.peernet.addRequestHandler('transactionPool', this.#transactionPoolHandler.bind(this));
|
|
1474
1474
|
await globalThis.peernet.addRequestHandler('version', this.#versionHandler.bind(this));
|
|
1475
1475
|
await globalThis.peernet.addRequestHandler('stateInfo', () => {
|
|
1476
|
-
return new globalThis.peernet.protos['peernet-response']({ response: this
|
|
1476
|
+
return new globalThis.peernet.protos['peernet-response']({ response: this.machine.states.info });
|
|
1477
1477
|
});
|
|
1478
1478
|
globalThis.peernet.subscribe('add-block', this.#addBlock.bind(this));
|
|
1479
1479
|
globalThis.peernet.subscribe('invalid-transaction', this.#invalidTransaction.bind(this));
|