From d9c7d7e8749a3e310bb7932260c7f0f4a4e21f9c Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Mon, 15 May 2017 03:23:33 -0700 Subject: [PATCH] rpc: fix pruneblockchain. --- lib/http/rpc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }