This commit is contained in:
Christopher Jeffrey 2016-03-11 23:09:07 -08:00
parent fb6787e5ed
commit ac266fc295
2 changed files with 5 additions and 3 deletions

View File

@ -6,7 +6,9 @@ var assert = utils.assert;
var node = bcoin.fullnode({
debug: true,
passphrase: 'node'
passphrase: 'node',
prune: process.argv.indexOf('--prune') !== -1,
useCheckpoints: process.argv.indexOf('--checkpoints') !== -1
});
node.on('error', function(err) {

View File

@ -44,8 +44,8 @@ Fullnode.prototype._init = function _init() {
this.chain = new bcoin.chain(this, {
preload: false,
fsync: false,
prune: false,
useCheckpoints: false
prune: this.options.prune,
useCheckpoints: this.options.useCheckpoints
});
// Mempool needs access to blockdb.