@leofcoin/endpoints 0.4.0 → 0.4.1
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/ws.js +4 -2
- package/package.json +1 -1
package/exports/ws.js
CHANGED
|
@@ -73,8 +73,10 @@ export default (chain, port, networkVersion, remote = false) => {
|
|
|
73
73
|
totalMintAmount: async ({ send }) => send(await chain.totalMintAmount),
|
|
74
74
|
totalTransferAmount: async ({ send }) => send(await chain.totalTransferAmount),
|
|
75
75
|
totalTransactions: async ({ send }) => send(await chain.totalTransactions),
|
|
76
|
-
totalBlocks: async ({ send }) => send(chain.totalBlocks),
|
|
77
|
-
totalSize: async ({ send }) => send((await transactionPoolStore.size()) +
|
|
76
|
+
totalBlocks: async ({ send }) => send(await chain.totalBlocks),
|
|
77
|
+
totalSize: async ({ send }) => send((await globalThis.transactionPoolStore.size()) +
|
|
78
|
+
(await globalThis.blockStore.size()) +
|
|
79
|
+
(await globalThis.accountsStore.size())),
|
|
78
80
|
lastBlock: async (ctx) => (ctx.body = await chain.lastBlock),
|
|
79
81
|
participating: async ({ send }) => send(await chain.participating),
|
|
80
82
|
poolTransactions: async ({ send }) => send(await globalThis.transactionPoolStore.get()),
|