2018-02-03 21:14:56 +05:00
|
|
|
extends layout
|
|
|
|
|
|
|
|
block content
|
|
|
|
h3 Block
|
|
|
|
|
|
|
|
table
|
2018-02-05 10:34:16 +05:00
|
|
|
each key in Object.keys(block)
|
2018-02-05 01:10:15 +05:00
|
|
|
if (key === 'nextblockhash')
|
|
|
|
tr
|
|
|
|
td.capitalize #{key}
|
|
|
|
td
|
2018-02-11 03:36:42 +05:00
|
|
|
a(href=`/block/${block.nextblockhash}/`) #{block.nextblockhash}
|
2018-02-05 01:10:15 +05:00
|
|
|
-continue
|
|
|
|
if (key === 'previousblockhash')
|
|
|
|
tr
|
|
|
|
td.capitalize #{key}
|
|
|
|
td
|
2018-02-11 03:36:42 +05:00
|
|
|
a(href=`/block/${block.previousblockhash}/`) #{block.previousblockhash}
|
2018-02-05 01:10:15 +05:00
|
|
|
-continue
|
2018-02-03 21:14:56 +05:00
|
|
|
if (key === 'Transactions')
|
|
|
|
-continue
|
|
|
|
tr
|
|
|
|
td.capitalize #{key}
|
|
|
|
td #{block[key]}
|
|
|
|
|
|
|
|
h3 Transactions
|
|
|
|
each tx in block.Transactions
|
|
|
|
div
|
2018-02-11 03:36:42 +05:00
|
|
|
a(href=`/transaction/${tx.txid}/`) #{tx.txid}
|
2018-02-03 21:14:56 +05:00
|
|
|
|