fix conversion from CAmount to double
This commit is contained in:
@@ -188,9 +188,13 @@ void Controller::fillTxJsonParams(json& allRecepients, Tx tx)
|
||||
|
||||
}
|
||||
CAmount balanceAvailable = getModel()->getBalVerified();
|
||||
// CAmount balanceAvailable = getModel()->getBalVerified();
|
||||
//float balanceAsFloat = balanceAvailable; // Direkte Zuweisung, falls Operatorüberladung vorhanden ist
|
||||
|
||||
qDebug()<< "verfügbar : " << balanceAvailable.toDecimalString().toDouble();
|
||||
// qDebug()<< "verfügbar Double : " << balanceAsFloat;
|
||||
// Create more Notes if spendableNotesCount < 30 and enough funds are available
|
||||
if (spendableNotesCount < 30 && balanceAvailable.toDecimalhushString().toDouble() > (dust.size() * 0.0001)) {
|
||||
if (spendableNotesCount < 30 && balanceAvailable.toDecimalString().toDouble() > (dust.size() * 0.0001)) {
|
||||
// Create extra transaction
|
||||
for (size_t i = 0; i < dust.size(); ++i) {
|
||||
// Generate random memo
|
||||
|
||||
Reference in New Issue
Block a user