Merge pull request #28 from carnesen/master
Various. Should I be using branches?
This commit is contained in:
commit
43f6558d72
25
README.md
25
README.md
@ -50,24 +50,7 @@ bitcoind must be running and must have finished downloading the blockchain **bef
|
|||||||
|
|
||||||
## Configuration
|
## Configuration
|
||||||
|
|
||||||
All configuration is specified in the [config](config/) folder, particularly the [config.js](config/config.js) file. There you can specify your application name and database name. Certain configuration values are pulled from environment variables if they are defined:
|
`bitcore-node` is configured using [yaml](http://en.wikipedia.org/wiki/YAML) files. The application defaults are in the [config](config/) folder.
|
||||||
|
|
||||||
```
|
|
||||||
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
|
|
||||||
BITCOIND_DATADIR # bitcoind datadir. 'testnet3' will be appended automatically if testnet is used. NEED to finish with '/'. e.g: `/vol/data/`
|
|
||||||
BLOCKCHAIN_API_NETWORK [= 'livenet' | 'testnet']
|
|
||||||
BLOCKCHAIN_API_PORT # blockchain api port
|
|
||||||
BLOCKCHAIN_API_DB # Path where to store bitcore-node's internal DB. (defaults to $HOME/.bitcore-node)
|
|
||||||
BLOCKCHAIN_API_SAFE_CONFIRMATIONS=6 # Nr. of confirmation needed to start caching transaction information
|
|
||||||
BLOCKCHAIN_API_IGNORE_CACHE # True to ignore cache of spents in transaction, with more than BLOCKCHAIN_API_SAFE_CONFIRMATIONS confirmations. This is useful for tracking double spents for old transactions.
|
|
||||||
LOGGER_LEVEL # defaults to 'info', can be 'debug','verbose','error', etc.
|
|
||||||
ENABLE_HTTPS # if "true" it will server using SSL/HTTPS
|
|
||||||
```
|
|
||||||
|
|
||||||
Make sure that bitcoind is configured to [accept incoming connections using 'rpcallowip'](https://en.bitcoin.it/wiki/Running_Bitcoin).
|
Make sure that bitcoind is configured to [accept incoming connections using 'rpcallowip'](https://en.bitcoin.it/wiki/Running_Bitcoin).
|
||||||
|
|
||||||
@ -121,13 +104,13 @@ This can be changed at config/config.js. As of June 2014, storing the livenet bl
|
|||||||
|
|
||||||
## Development
|
## Development
|
||||||
|
|
||||||
To run `bitcore-node` locally for development with grunt:
|
To run `bitcore-node` locally for development with gulp:
|
||||||
|
|
||||||
```$ NODE_ENV=development grunt```
|
```$ NODE_ENV=development gulp```
|
||||||
|
|
||||||
To run the tests
|
To run the tests
|
||||||
|
|
||||||
```$ grunt test```
|
```$ gulp test```
|
||||||
|
|
||||||
|
|
||||||
## Caching schema
|
## Caching schema
|
||||||
|
|||||||
@ -18,7 +18,7 @@ function BitcoreHTTP(node, opts) {
|
|||||||
$.checkArgument(node);
|
$.checkArgument(node);
|
||||||
opts = opts || {};
|
opts = opts || {};
|
||||||
this.node = node;
|
this.node = node;
|
||||||
this.port = opts.port || 8000;
|
this.port = opts.port || 8080;
|
||||||
this.logging = opts.logging || false;
|
this.logging = opts.logging || false;
|
||||||
this.setupExpress();
|
this.setupExpress();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -40,7 +40,7 @@
|
|||||||
"bitcore"
|
"bitcore"
|
||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "node node_modules/grunt-cli/bin/grunt"
|
"start": "node index.js"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"async": "0.9.0",
|
"async": "0.9.0",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user