Double opt in for custom fees
This commit is contained in:
@@ -327,8 +327,12 @@ void RPC::fillTxJsonParams(json& params, Tx tx) {
|
||||
// Add sender
|
||||
params.push_back(tx.fromAddr.toStdString());
|
||||
params.push_back(allRecepients);
|
||||
params.push_back(1); // minconf
|
||||
params.push_back(QString::number(tx.fee, 'f', 8).toDouble());
|
||||
|
||||
// Add fees if custom fees are allowed.
|
||||
if (Settings::getInstance()->getAllowCustomFees()) {
|
||||
params.push_back(1); // minconf
|
||||
params.push_back(QString::number(tx.fee, 'f', 8).toDouble());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user