Skip to content

Commit e27f95c

Browse files
committed
fix: text message for HD wallets (both descriptors and non-descriptors)
1 parent 4f6be3d commit e27f95c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/wallet/rpc/encrypt.cpp

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

255-
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).";
255+
if (pwallet->IsHDEnabled()) {
256+
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.";
257+
}
258+
return "wallet encrypted; The keypool has been flushed. You need to make a new backup.";
256259
},
257260
};
258261
}

0 commit comments

Comments
 (0)