|
|
|
@ -28,7 +28,7 @@ router.get('/:hash', async function(req, res, next) {
@@ -28,7 +28,7 @@ router.get('/:hash', async function(req, res, next) {
|
|
|
|
|
const block = blockInstance.toJSON(); |
|
|
|
|
block.confirmations = lastBlock.maxheight - block.height + 1; |
|
|
|
|
block.time = block.time.toUTCString(); |
|
|
|
|
block.difficulty = block.difficulty.toFixed(8); |
|
|
|
|
block.difficulty = parseFloat(block.difficulty).toFixed(8); |
|
|
|
|
block.hashrate = block.hashrate.toLocaleString() + " H/s"; |
|
|
|
|
res.render('block', { |
|
|
|
|
block, |
|
|
|
|