File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -95,6 +95,9 @@ Value importprivkey(const Array& params, bool fHelp)
95
95
+ HelpExampleRpc (" importprivkey" , " \" mykey\" , \" testing\" , false" )
96
96
);
97
97
98
+ if (fPruneMode )
99
+ throw JSONRPCError (RPC_WALLET_ERROR, " Importing keys is disabled in pruned mode" );
100
+
98
101
LOCK2 (cs_main, pwalletMain->cs_wallet );
99
102
100
103
EnsureWalletIsUnlocked ();
@@ -167,6 +170,9 @@ Value importaddress(const Array& params, bool fHelp)
167
170
+ HelpExampleRpc (" importaddress" , " \" myaddress\" , \" testing\" , false" )
168
171
);
169
172
173
+ if (fPruneMode )
174
+ throw JSONRPCError (RPC_WALLET_ERROR, " Importing addresses is disabled in pruned mode" );
175
+
170
176
LOCK2 (cs_main, pwalletMain->cs_wallet );
171
177
172
178
CScript script;
@@ -237,6 +243,9 @@ Value importwallet(const Array& params, bool fHelp)
237
243
+ HelpExampleRpc (" importwallet" , " \" test\" " )
238
244
);
239
245
246
+ if (fPruneMode )
247
+ throw JSONRPCError (RPC_WALLET_ERROR, " Importing wallets is disabled in pruned mode" );
248
+
240
249
LOCK2 (cs_main, pwalletMain->cs_wallet );
241
250
242
251
EnsureWalletIsUnlocked ();
You can’t perform that action at this time.
0 commit comments