bitcoind: add checkstate for spentindex
This commit is contained in:
parent
cdfe572344
commit
c36b0777d4
@ -201,6 +201,13 @@ Bitcoin.prototype._loadSpawnConfiguration = function(node) {
|
|||||||
'necessary with reindex=1'
|
'necessary with reindex=1'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$.checkState(
|
||||||
|
spawnConfig.spentindex && spawnConfig.spentindex === 1,
|
||||||
|
'"spentindex" option is required in order to use spent info query features of bitcore-node. ' +
|
||||||
|
'Please add "spentindex=1" to your configuration and reindex an existing database if ' +
|
||||||
|
'necessary with reindex=1'
|
||||||
|
);
|
||||||
|
|
||||||
$.checkState(
|
$.checkState(
|
||||||
spawnConfig.server && spawnConfig.server === 1,
|
spawnConfig.server && spawnConfig.server === 1,
|
||||||
'"server" option is required to communicate to bitcoind from bitcore. ' +
|
'"server" option is required to communicate to bitcoind from bitcore. ' +
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user