Merge pull request #145 from lordhelmut/api-fixes
Doc update and API fix for getBestBlockHash
This commit is contained in:
commit
1c6010ba99
@ -79,6 +79,7 @@ All configuration is specified in the [config](config/) folder, particularly the
|
|||||||
```
|
```
|
||||||
BITCOIND_HOST # RPC bitcoind host
|
BITCOIND_HOST # RPC bitcoind host
|
||||||
BITCOIND_PORT # RPC bitcoind Port
|
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_P2P_PORT # P2P bitcoind Port
|
||||||
BITCOIND_USER # RPC username
|
BITCOIND_USER # RPC username
|
||||||
BITCOIND_PASS # RPC password
|
BITCOIND_PASS # RPC password
|
||||||
|
|||||||
@ -40,6 +40,9 @@ exports.show = function(req, res) {
|
|||||||
case 'getLastBlockHash':
|
case 'getLastBlockHash':
|
||||||
statusObject.getLastBlockHash(returnJsonp);
|
statusObject.getLastBlockHash(returnJsonp);
|
||||||
break;
|
break;
|
||||||
|
case 'getBestBlockHash':
|
||||||
|
statusObject.getBestBlockHash(returnJsonp);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
res.status(400).send('Bad Request');
|
res.status(400).send('Bad Request');
|
||||||
}
|
}
|
||||||
|
|||||||
@ -97,6 +97,7 @@ console.log(
|
|||||||
\t\tRPC Protocol: %s\tBITCOIND_PROTO\n\
|
\t\tRPC Protocol: %s\tBITCOIND_PROTO\n\
|
||||||
\t\tRPC Host: %s\tBITCOIND_HOST\n\
|
\t\tRPC Host: %s\tBITCOIND_HOST\n\
|
||||||
\t\tRPC Port: %s\tBITCOIND_PORT\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\tP2P Port: %s\tBITCOIND_P2P_PORT\n\
|
||||||
\t\tData Dir: %s\tBITCOIND_DATADIR\n\
|
\t\tData Dir: %s\tBITCOIND_DATADIR\n\
|
||||||
\t\t%s\n\
|
\t\t%s\n\
|
||||||
@ -110,6 +111,7 @@ console.log(
|
|||||||
bitcoindConf.protocol,
|
bitcoindConf.protocol,
|
||||||
bitcoindConf.host,
|
bitcoindConf.host,
|
||||||
bitcoindConf.port,
|
bitcoindConf.port,
|
||||||
|
bitcoindConf.p2pHost,
|
||||||
bitcoindConf.p2pPort,
|
bitcoindConf.p2pPort,
|
||||||
dataDir + (network === 'testnet' ? '*' : ''), (network === 'testnet' ? '* (/testnet3 is added automatically)' : '')
|
dataDir + (network === 'testnet' ? '*' : ''), (network === 'testnet' ? '* (/testnet3 is added automatically)' : '')
|
||||||
);
|
);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user