Browse Source

fixing amt for sendmanyTx

pull/78/head
DenioD 4 years ago
parent
commit
4147d1a36a
  1. 11
      src/websockets.cpp

11
src/websockets.cpp

@ -814,10 +814,13 @@ void AppDataServer::processSendManyTx(QJsonObject sendmanyTx, MainWindow* mainwi
// Sort z addresses first
return a.first > b.first;
});
int totalSendManyItems = sendmanyTx.size();
for (int i=0; i < totalSendManyItems; i++) {
tx.fromAddr = bals[0].first;
tx.toAddrs = { ToFields{ sendmanyTx["to"].toString() % QString::number(i+1), amt , sendmanyTx["memo"].toString() % QString::number(i+1)} }; //send to more then one
int totalSendManyItems = sendmanyTx.size();
for (int i=0; i < totalSendManyItems; i++) {
amt = CAmount::fromDecimalString(sendmanyTx["amount"].toString() % QString::number(i+1));
tx.fromAddr = bals[0].first;
tx.toAddrs = { ToFields{ sendmanyTx["to"].toString() % QString::number(i+1), amt, sendmanyTx["memo"].toString() % QString::number(i+1)} }; //send to more then one
}
// TODO: Respect the autoshield change setting

Loading…
Cancel
Save