Adds warning message for when a transaction with a non-default mixin value is created

This commit is contained in:
Sander Ferdinand 2018-03-31 17:26:32 +02:00
parent 47dc499413
commit abe0ae9304

View file

@ -612,15 +612,16 @@ ApplicationWindow {
// here we show confirmation popup; // here we show confirmation popup;
transactionConfirmationPopup.title = qsTr("Please confirm transaction:\n") + translationManager.emptyString; transactionConfirmationPopup.title = qsTr("Please confirm transaction:\n") + translationManager.emptyString;
transactionConfirmationPopup.text = ""; transactionConfirmationPopup.text = "";
transactionConfirmationPopup.text += transactionConfirmationPopup.text += (address === "" ? "" : (qsTr("Address: ") + address));
(address === "" ? "" : (qsTr("\n\nAddress: ") + address)) transactionConfirmationPopup.text += (paymentId === "" ? "" : (qsTr("\nPayment ID: ") + paymentId));
+ (paymentId === "" ? "" : (qsTr("\nPayment ID: ") + paymentId)) transactionConfirmationPopup.text += qsTr("\n\nAmount: ") + walletManager.displayAmount(transaction.amount);
+ qsTr("\n\nAmount: ") + walletManager.displayAmount(transaction.amount) transactionConfirmationPopup.text += qsTr("\nFee: ") + walletManager.displayAmount(transaction.fee);
+ qsTr("\nFee: ") + walletManager.displayAmount(transaction.fee) transactionConfirmationPopup.text += qsTr("\nRingsize: ") + (mixinCount + 1);
+ qsTr("\n\nRingsize: ") + (mixinCount + 1) if(mixinCount !== 6){
+ qsTr("\n\Number of transactions: ") + transaction.txCount transactionConfirmationPopup.text += qsTr("\n\nWARNING: non default ring size, which may harm your privacy. Default of 7 is recommended.");
+ (transactionDescription === "" ? "" : (qsTr("\n\nDescription: ") + transactionDescription)) }
transactionConfirmationPopup.text += qsTr("\n\nNumber of transactions: ") + transaction.txCount
transactionConfirmationPopup.text += (transactionDescription === "" ? "" : (qsTr("Description: ") + transactionDescription))
for (var i = 0; i < transaction.subaddrIndices.length; ++i){ for (var i = 0; i < transaction.subaddrIndices.length; ++i){
transactionConfirmationPopup.text += qsTr("\nSpending address index: ") + transaction.subaddrIndices[i]; transactionConfirmationPopup.text += qsTr("\nSpending address index: ") + transaction.subaddrIndices[i];
} }