From 5dfbd4ff68c68c0565311576cf7e04a3d5c8f8e5 Mon Sep 17 00:00:00 2001 From: Pieter Wuille Date: Wed, 19 Dec 2012 12:23:01 +0100 Subject: [PATCH] Convert fRescan argument to importprivkey to bool --- src/bitcoinrpc.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bitcoinrpc.cpp b/src/bitcoinrpc.cpp index bfb696da3d..41850d8bb8 100644 --- a/src/bitcoinrpc.cpp +++ b/src/bitcoinrpc.cpp @@ -1219,6 +1219,7 @@ Array RPCConvertValues(const std::string &strMethod, const std::vector 2) ConvertTo(params[2]); if (strMethod == "lockunspent" && n > 0) ConvertTo(params[0]); if (strMethod == "lockunspent" && n > 1) ConvertTo(params[1]); + if (strMethod == "importprivkey" && n > 2) ConvertTo(params[2]); return params; }