diff --git a/app/controllers/blocks.js b/app/controllers/blocks.js index 409679f2..def4e359 100644 --- a/app/controllers/blocks.js +++ b/app/controllers/blocks.js @@ -66,7 +66,12 @@ var getBlock = function(blockhash, cb) { isOrphan: 1, }; } - return cb(err, block.info); + + bdb.getPoolInfo(block.info.tx[0], function(info) { + block.info.poolInfo = info; + return cb(err, block.info); + }); + }); }; @@ -130,6 +135,7 @@ exports.list = function(req, res) { hash: b.hash, time: b.ts || info.time, txlength: info.tx.length, + poolInfo: info.poolInfo }); }); }, function(err, allblocks) { diff --git a/public/views/block.html b/public/views/block.html index e68ea072..41f012e2 100644 --- a/public/views/block.html +++ b/public/views/block.html @@ -55,7 +55,9 @@ Relayed by - {{block.poolInfo.poolName}} + + {{block.poolInfo.poolName}} + Merkle Root diff --git a/public/views/block_list.html b/public/views/block_list.html index 99d9ffd4..ea6d8419 100644 --- a/public/views/block_list.html +++ b/public/views/block_list.html @@ -35,6 +35,7 @@ Height Timestamp Transactions + Relayed by Size @@ -46,6 +47,7 @@ {{b.height}} {{b.time * 1000 | date:'medium'}} {{b.txlength}} + {{b.poolInfo.poolName}} {{b.size}} diff --git a/public/views/index.html b/public/views/index.html index 585e5fd7..96dbeaee 100644 --- a/public/views/index.html +++ b/public/views/index.html @@ -13,6 +13,7 @@ Height Age Transactions + Relayed by Size @@ -24,6 +25,7 @@ {{humanSince(b.time)}} {{b.txlength}} + {{b.poolInfo.poolName}} {{b.size}} bytes