Commit Graph

34 Commits

Author SHA1 Message Date
Jack Grigg 10b44b6392 Use bitcore-lib-zcash 2016-08-28 14:53:21 +12:00
Braydon Fuller 814576953c bitcoind: relative spawn.datadir handling
Will expand the datadir into an absolute path based on the location
of the configuration file. This is to avoid unexpected behavior in regards
to the location of configuration files.
2016-06-01 11:33:06 -04:00
Braydon Fuller bce64d86e3 scaffold: upgrade message formatting 2016-05-23 13:06:32 -04:00
Braydon Fuller cd9bbc8661 scaffold: expanded v2 config checks 2016-05-23 11:30:57 -04:00
Braydon Fuller 7be7a7dce5 scaffold: update error message to be more accurate 2016-05-09 14:28:17 -04:00
Braydon Fuller ea792b692f scaffold: remove outdated logging of db service sync status 2016-04-27 12:00:47 -04:00
Braydon Fuller 92bae5f09a general: code cleanup, refactoring and formatting 2016-04-27 11:36:26 -04:00
Braydon Fuller 3e2492e6d4 scaffold: detect incompatible config 2016-04-20 11:55:45 -04:00
Braydon Fuller 18310268a5 node: log intro with config path 2016-04-08 11:59:26 -04:00
Braydon Fuller 0f24dd5f49 config: update configuration options for exec path
- config options for bitcoind to specify exec path of bitcoind
- config options to connect to multiple bitcoind processes
- systemd and upstart preferred methods to daemonize
2016-04-08 11:59:26 -04:00
Braydon Fuller e046f7294e Changes to be able to run with only a configuration file.
- Adds parameter to cli methods to be able to specify the location of services modules. This is useful for packages that wrap bitcore-node to be able to pass along a node_modules directory with services.
- Adds another parameter for including additional services in the default settings.
- Will use the `process.env.HOME + '/.bitcore` as the default configuration location.
- There are now two `getDefaultConfig`, one that will instatiate a `~/.bitcore` directory with a default if it doesn't exist, and `getBaseDefaultConfig` that will return a basic configuration without additional services enabled.
- Changes logic to use the global install if a local node_modules version is not available, this would previously assume that it was a local install because of the existence of a configuration file.
2015-10-20 12:33:53 -04:00
Braydon Fuller 1dec93edd4 bitcore -> bitcore-lib 2015-10-17 00:56:29 -04:00
Chris Kleeschulte 7b50f5ff3d Switched to using a flag instead of using a replacement. 2015-09-14 13:15:55 -04:00
Chris Kleeschulte 51355c51f1 Multiple sigints sent to the node process
- Added a simple replacement function after the first sigint is handled.
- Added unit tests for the exitHandler, requiring it to be exposed from the module.
2015-09-11 16:27:24 -04:00
Chris Kleeschulte 60a133f36c Multiple SIGINT signals sent to node process while in shutdown cycle.
- Overrode the sigint listener if in the shutdown cycle. This prevents control being returned to the pty before the node process is fully halted.
2015-09-11 12:39:33 -04:00
Braydon Fuller 60af86777f Start/Stop Improvements
- A Node will shutdown if there is an error starting a service as it would lead to cascading errors.
- `node.start()` needs to be called, and nolonger is called automatically when the instance is created.
- A service will only be added to node.services after it's started
- Stopping services that are not started will gracefully continue.
- Logging sync status of db will only apply if the service is started.
- Debug log about a service without a route will always include the service name
2015-09-08 10:17:57 -04:00
Chris Kleeschulte 94c345134e Daemon
- Added the daemon option to the cli start command
- Added the initialization routine to spawn the child process
- Added unit tests
2015-09-04 17:36:53 -04:00
Braydon Fuller 52e80039d8 CLI fixes for installing and removing services. 2015-09-02 18:39:19 -04:00
Braydon Fuller f2fb4a1379 Fixed object typo in start scaffold. 2015-09-01 13:37:14 -04:00
Braydon Fuller 396d6ac08a Avoid logging the same result twice. 2015-09-01 13:29:02 -04:00
Braydon Fuller 96fa0920a4 Add unit tests for start. 2015-09-01 12:47:15 -04:00
Patrick Nagurny 4ae6377548 fixes 2015-08-31 15:15:55 -04:00
Patrick Nagurny 895e46dcac pass config to services 2015-08-31 13:37:11 -04:00
Patrick Nagurny a68cf4ecf8 Web service and other changes in preparation for insight-api 2015-08-31 12:54:28 -04:00
Braydon Fuller 7551f487f8 Rename modules to services. 2015-08-31 11:31:28 -04:00
Braydon Fuller 16eef1279c Combine chain with db module. 2015-08-31 11:25:30 -04:00
Braydon Fuller 56ebf42403 Move Modules from DB to Node 2015-08-27 19:02:33 -04:00
Braydon Fuller bbc421a31e Migrate chainlib functionality into bitcore-node. 2015-08-26 17:24:10 -04:00
Braydon Fuller da537b293b CLI Fixes
- Globally installed cli script will load local version
- Modules can add a "bitcoreNode" to package.json to specify a specific module to load
2015-08-26 13:19:02 -04:00
Braydon Fuller 81b2d2f2a3 Added tests for start command. 2015-08-25 13:57:54 -04:00
Braydon Fuller 348598747b Include more options and fallback to default config with start command 2015-08-24 18:57:50 -04:00
Braydon Fuller be525b055d Replace ~/.bitcoin with process.env.HOME 2015-08-24 18:53:37 -04:00
Braydon Fuller 69056db529 Move start to scaffold start and pass the bitcore-node configuration. 2015-08-24 18:51:07 -04:00
Braydon Fuller 00e4eac14a Layout test cases and files for cli commands. 2015-08-24 18:51:07 -04:00