| 1278 | } |
| 1279 | |
| 1280 | static struct amount_msat payment_current_amount(const struct payment *payment) |
| 1281 | { |
| 1282 | struct attempt *attempt; |
| 1283 | struct amount_msat sum = AMOUNT_MSAT(0); |
| 1284 | |
| 1285 | list_for_each(&payment->current_attempts, attempt, list) { |
| 1286 | if (!amount_msat_accumulate(&sum, attempt->amount)) |
| 1287 | abort(); |
| 1288 | } |
| 1289 | return sum; |
| 1290 | } |
| 1291 | |
| 1292 | static struct amount_msat attempt_fee(const struct attempt *attempt) |
| 1293 | { |
no test coverage detected