Skip to content

Commit 5b4db62

Browse files
committed
fix: text message for HD wallets (both descriptors and non-descriptors)
1 parent c05f943 commit 5b4db62

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/wallet/rpcwallet.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2085,7 +2085,10 @@ static RPCHelpMan encryptwallet()
20852085
throw JSONRPCError(RPC_WALLET_ENCRYPTION_FAILED, "Error: Failed to encrypt the wallet.");
20862086
}
20872087

2088-
return "wallet encrypted; The keypool has been flushed and a new HD seed was generated (if you are using HD). You need to make a new backup or write down the new seed (mnemonic).";
2088+
if (pwallet->IsHDEnabled()) {
2089+
return "wallet encrypted; If you will forget passphrase you will lose access to your funds. Be sure that you have backup of your seed or mnemonic.";
2090+
}
2091+
return "wallet encrypted; The keypool has been flushed. You need to make a new backup.";
20892092
},
20902093
};
20912094
}

0 commit comments

Comments
 (0)