From fa7e311e169349bfcf1dab8b980724e8ddf4e749 Mon Sep 17 00:00:00 2001 From: MarcoFalke Date: Wed, 15 May 2019 14:10:41 -0400 Subject: [doc] rpcwallet: Only fail rescan when blocks have been pruned --- src/wallet/rpcdump.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/wallet/rpcdump.cpp b/src/wallet/rpcdump.cpp index 495590e6f9..ccbf5a2fd7 100644 --- a/src/wallet/rpcdump.cpp +++ b/src/wallet/rpcdump.cpp @@ -586,7 +586,7 @@ UniValue importwallet(const JSONRPCRequest& request) // Exit early and print an error. // If a block is pruned after this check, we will import the key(s), // but fail the rescan with a generic error. - throw JSONRPCError(RPC_WALLET_ERROR, "Importing wallets is disabled in pruned mode"); + throw JSONRPCError(RPC_WALLET_ERROR, "Importing wallets is disabled when blocks are pruned"); } WalletRescanReserver reserver(pwallet); -- cgit v1.2.3