rpc: fix pruneblockchain.
This commit is contained in:
parent
612f6a987c
commit
d9c7d7e874
@ -1012,7 +1012,7 @@ RPC.prototype.pruneBlockchain = co(function* pruneBlockchain(args, help) {
|
|||||||
throw new RPCError(errs.MISC_ERROR, 'Chain is too short for pruning.');
|
throw new RPCError(errs.MISC_ERROR, 'Chain is too short for pruning.');
|
||||||
|
|
||||||
try {
|
try {
|
||||||
yield this.chain.retroPrune();
|
yield this.chain.prune();
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
throw new RPCError(errs.DATABASE_ERROR, e.message);
|
throw new RPCError(errs.DATABASE_ERROR, e.message);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user