Skip to content

Commit a31257e

Browse files
committed
disable migratewallet rpc for v29
1 parent 8806605 commit a31257e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/wallet/rpc/wallet.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -781,6 +781,7 @@ RPCHelpMan simulaterawtransaction()
781781
static RPCHelpMan migratewallet()
782782
{
783783
return RPCHelpMan{"migratewallet",
784+
"\nDISABLED\n"
784785
"\nMigrate the wallet to a descriptor wallet.\n"
785786
"A new wallet backup will need to be made.\n"
786787
"\nThe migration process will create a backup of the wallet before migrating. This backup\n"
@@ -819,6 +820,9 @@ static RPCHelpMan migratewallet()
819820
wallet_name = request.params[0].get_str();
820821
}
821822

823+
throw JSONRPCError(RPC_WALLET_ERROR,
824+
"migratewallet is disabled in this version.");
825+
822826
SecureString wallet_pass;
823827
wallet_pass.reserve(100);
824828
if (!request.params[1].isNull()) {

0 commit comments

Comments
 (0)