mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
mempool weather added
This commit is contained in:
@@ -21,13 +21,13 @@
|
|||||||
} = mempoolJS();
|
} = mempoolJS();
|
||||||
const blocksTipHeight = await blocks.getBlocksTipHeight();
|
const blocksTipHeight = await blocks.getBlocksTipHeight();
|
||||||
that.height = blocksTipHeight;
|
that.height = blocksTipHeight;
|
||||||
console.log(blocksTipHeight);
|
|
||||||
};
|
};
|
||||||
tip();
|
tip();
|
||||||
setInterval(tip, 10000);
|
setInterval(tip, 10000);
|
||||||
}
|
}
|
||||||
}">
|
}">
|
||||||
<span class="inline-flex items-center rounded-md bg-amber-100 px-2.5 py-0.5 text-sm font-medium text-amber-800">
|
<span
|
||||||
|
class="inline-flex items-center rounded-md bg-amber-100 px-2.5 py-0.5 text-sm font-medium text-amber-800">
|
||||||
<i class="-ml-0.5 mr-1.5 h-2 w-2 text-amber-400"></i>
|
<i class="-ml-0.5 mr-1.5 h-2 w-2 text-amber-400"></i>
|
||||||
Blockhöhe <span class="font-bold text-2xl ml-4" x-text="height"></span>
|
Blockhöhe <span class="font-bold text-2xl ml-4" x-text="height"></span>
|
||||||
</span>
|
</span>
|
||||||
@@ -54,7 +54,6 @@
|
|||||||
ws.addEventListener('message', function incoming({data}) {
|
ws.addEventListener('message', function incoming({data}) {
|
||||||
const res = JSON.parse(data.toString());
|
const res = JSON.parse(data.toString());
|
||||||
if (res.block) {
|
if (res.block) {
|
||||||
console.log(res.block);
|
|
||||||
}
|
}
|
||||||
if (res.fees) {
|
if (res.fees) {
|
||||||
that.fastestFee = res.fees.fastestFee;
|
that.fastestFee = res.fees.fastestFee;
|
||||||
@@ -62,7 +61,6 @@
|
|||||||
that.hourFee = res.fees.hourFee;
|
that.hourFee = res.fees.hourFee;
|
||||||
that.economyFee = res.fees.economyFee;
|
that.economyFee = res.fees.economyFee;
|
||||||
that.minimumFee = res.fees.minimumFee;
|
that.minimumFee = res.fees.minimumFee;
|
||||||
console.log(res.fees);
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user