changed res.blocks to res.block
This commit is contained in:
mikeriss
2021-10-25 14:21:01 +02:00
committed by GitHub
parent 9fe77e49a2
commit 3a42e20cf1

View File

@@ -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);