changed res.blocks to res.block
This commit is contained in:
mikeriss authored and GitHub committed 2021-10-25 09:21:01 -03:00
1 parent 9fe77e49a2
commit 3a42e20cf1
1 file changed
+4 -4
+4 -4
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);