From 3a42e20cf110a2a80820c9c927a6e22818c3ec65 Mon Sep 17 00:00:00 2001 From: mikeriss Date: Mon, 25 Oct 2021 14:21:01 +0200 Subject: [PATCH] Typo (#31) changed res.blocks to res.block --- README-bitcoin.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README-bitcoin.md b/README-bitcoin.md index f8600c2f8..e0e0c6306 100644 --- a/README-bitcoin.md +++ b/README-bitcoin.md @@ -697,8 +697,8 @@ const init = async () => { ws.on("message", function incoming(data) { const res = JSON.parse(data.toString()); - if (res.blocks) { - console.log(res.blocks); + if (res.block) { + console.log(res.block); } if (res.mempoolInfo) { console.log(res.mempoolInfo); @@ -730,8 +730,8 @@ const init = async () => { ws.addEventListener('message', function incoming({data}) { const res = JSON.parse(data.toString()); - if (res.blocks) { - console.log(res.blocks); + if (res.block) { + console.log(res.block); } if (res.mempoolInfo) { console.log(res.mempoolInfo);