From 37674ce77ec07e6f99911b0e7d5d286fb49c5ca8 Mon Sep 17 00:00:00 2001 From: lordhelmut Date: Thu, 31 Jul 2014 14:27:15 -0700 Subject: [PATCH 1/2] getBestBlockHash is now added to API calls per the README --- app/controllers/status.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/controllers/status.js b/app/controllers/status.js index c64eb6a..322135f 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'); } From 915f97b3506fb057e0dfa62e09b9aa526e64e7ba Mon Sep 17 00:00:00 2001 From: lordhelmut Date: Thu, 31 Jul 2014 14:53:03 -0700 Subject: [PATCH 2/2] Documentation updates for BITCOIN_P2P_HOST --- README.md | 1 + config/config.js | 2 ++ 2 files changed, 3 insertions(+) diff --git a/README.md b/README.md index a1a4ff0..4fcd003 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/config/config.js b/config/config.js index 48d359a..179f0de 100644 --- a/config/config.js +++ b/config/config.js @@ -98,6 +98,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\ @@ -111,6 +112,7 @@ bitcoindConf.pass?'Yes(hidden)':'No', bitcoindConf.protocol, bitcoindConf.host, bitcoindConf.port, +bitcoindConf.p2pHost, bitcoindConf.p2pPort, dataDir+(network==='testnet'?'*':''), (network==='testnet'?'* (/testnet3 is added automatically)':'')