diff --git a/browser/index.html b/browser/index.html
index 8c440bfb..9f794b91 100644
--- a/browser/index.html
+++ b/browser/index.html
@@ -79,7 +79,8 @@ connecting to the actual bitcoin P2P network via a websocket->tcp proxy.
Enjoy. (See the bcoin repo for
more bitcoin magic).
- Last 20 Blocks/TXs:
+
Chain State:
+
Last 20 Blocks/TXs:
@@ -103,6 +104,7 @@ more bitcoin magic).
var floating = document.getElementById('floating');
var send = document.getElementById('send');
var newaddr = document.getElementById('newaddr');
+ var chainState = document.getElementById('state');
var items = [];
var scrollback = 0;
var logger, node, options;
@@ -219,6 +221,11 @@ more bitcoin magic).
};
items.push(el);
+
+ chainState.innerHTML = ''
+ + 'tx=' + node.chain.db.state.tx
+ + ' coin=' + node.chain.db.state.coin
+ + ' value=' + utils.btc(node.chain.db.state.value);
}
function formatWallet(wallet) {