rpc: fix pruneblockchain.

This commit is contained in:
Christopher Jeffrey 2017-05-15 03:23:33 -07:00
parent 612f6a987c
commit d9c7d7e874
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -1012,7 +1012,7 @@ RPC.prototype.pruneBlockchain = co(function* pruneBlockchain(args, help) {
throw new RPCError(errs.MISC_ERROR, 'Chain is too short for pruning.');
try {
yield this.chain.retroPrune();
yield this.chain.prune();
} catch (e) {
throw new RPCError(errs.DATABASE_ERROR, e.message);
}