File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -88,6 +88,16 @@ Configuration
88
88
the selected network. This change takes only effect if the selected network
89
89
is not mainnet.
90
90
91
+ Wallet
92
+ ------
93
+
94
+ - When in pruned mode, a rescan that was triggered by an ` importwallet ` ,
95
+ ` importpubkey ` , ` importaddress ` , or ` importprivkey ` RPC will only fail when
96
+ blocks have been pruned. Previously it would fail when ` -prune ` has been set.
97
+ This change allows to set ` -prune ` to a high value (e.g. the disk size) and
98
+ the calls to any of the import RPCs would fail when the first block is
99
+ pruned.
100
+
91
101
Credits
92
102
=======
93
103
Original file line number Diff line number Diff line change @@ -586,7 +586,7 @@ UniValue importwallet(const JSONRPCRequest& request)
586
586
// Exit early and print an error.
587
587
// If a block is pruned after this check, we will import the key(s),
588
588
// but fail the rescan with a generic error.
589
- throw JSONRPCError (RPC_WALLET_ERROR, " Importing wallets is disabled in pruned mode " );
589
+ throw JSONRPCError (RPC_WALLET_ERROR, " Importing wallets is disabled when blocks are pruned " );
590
590
}
591
591
592
592
WalletRescanReserver reserver (pwallet);
You can’t perform that action at this time.
0 commit comments