diff --git a/lib/http/rpc.js b/lib/http/rpc.js index b23e3b8c..4a8dd17b 100644 --- a/lib/http/rpc.js +++ b/lib/http/rpc.js @@ -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); }