Skip to content

Commit 6148681

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

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/wallet/rpc/wallet.cpp

Lines changed: 6 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,10 @@ 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+
826+
/* ELEMENTS v29: disable migratewallet
822827
SecureString wallet_pass;
823828
wallet_pass.reserve(100);
824829
if (!request.params[1].isNull()) {
@@ -842,6 +847,7 @@ static RPCHelpMan migratewallet()
842847
r.pushKV("backup_path", res->backup_path.utf8string());
843848
844849
return r;
850+
*/
845851
},
846852
};
847853
}

0 commit comments

Comments
 (0)