| 49 | } |
| 50 | |
| 51 | void WalletModelTransaction::reassignAmounts(const std::vector<CAmount>& outAmounts, int nChangePosRet) |
| 52 | { |
| 53 | const CTransaction* walletTransaction = wtx.get(); |
| 54 | int i = 0; |
| 55 | for (auto it = recipients.begin(); it != recipients.end(); ++it) |
| 56 | { |
| 57 | auto& rcp = (*it); |
| 58 | |
| 59 | { |
| 60 | if (i == nChangePosRet) |
| 61 | i++; |
| 62 | rcp.asset_amount = g_con_elementsmode ? outAmounts[i] : walletTransaction->vout[i].nValue.GetAmount(); |
| 63 | i++; |
| 64 | } |
| 65 | } |
| 66 | } |
| 67 | |
| 68 | CAmountMap WalletModelTransaction::getTotalTransactionAmount() const |
| 69 | { |
no test coverage detected