diff --git a/README.md b/README.md index 7d81e386..ef75b629 100644 --- a/README.md +++ b/README.md @@ -79,6 +79,7 @@ All configuration is specified in the [config](config/) folder, particularly the ``` BITCOIND_HOST # RPC bitcoind host BITCOIND_PORT # RPC bitcoind Port +BITCOIND_P2P_HOST # P2P bitcoind Host (will default to BITCOIND_HOST, if specified) BITCOIND_P2P_PORT # P2P bitcoind Port BITCOIND_USER # RPC username BITCOIND_PASS # RPC password diff --git a/app/controllers/status.js b/app/controllers/status.js index c64eb6aa..322135fb 100644 --- a/app/controllers/status.js +++ b/app/controllers/status.js @@ -40,6 +40,9 @@ exports.show = function(req, res) { case 'getLastBlockHash': statusObject.getLastBlockHash(returnJsonp); break; + case 'getBestBlockHash': + statusObject.getBestBlockHash(returnJsonp); + break; default: res.status(400).send('Bad Request'); } diff --git a/config/config.js b/config/config.js index c6bd673e..dfe1bc48 100644 --- a/config/config.js +++ b/config/config.js @@ -97,6 +97,7 @@ console.log( \t\tRPC Protocol: %s\tBITCOIND_PROTO\n\ \t\tRPC Host: %s\tBITCOIND_HOST\n\ \t\tRPC Port: %s\tBITCOIND_PORT\n\ +\t\tP2P Host: %s\tBITCOIND_P2P_HOST\n\ \t\tP2P Port: %s\tBITCOIND_P2P_PORT\n\ \t\tData Dir: %s\tBITCOIND_DATADIR\n\ \t\t%s\n\ @@ -110,6 +111,7 @@ console.log( bitcoindConf.protocol, bitcoindConf.host, bitcoindConf.port, + bitcoindConf.p2pHost, bitcoindConf.p2pPort, dataDir + (network === 'testnet' ? '*' : ''), (network === 'testnet' ? '* (/testnet3 is added automatically)' : '') );