Move our custom fields to a BlockExtension sub object of the IEsploraApi.Block interface

This commit is contained in:
nymkappa committed 2022-02-04 12:51:45 +09:00
1 parent e5b5551d79
commit a49cc9a2fa
19 files changed
+124 -77

No files matched your search

+3 -1
View File
@@ -380,7 +380,9 @@ class WebsocketHandler {
mBlocks = mempoolBlocks.getMempoolBlocks();
}
block.matchRate = matchRate;
if (block.extra) {
block.extra.matchRate = matchRate;
}
this.wss.clients.forEach((client) => {
if (client.readyState !== WebSocket.OPEN) {