Commit a81046d
committed
payments: Better error message if paying ourselves
At least twice now, our users have reported that they encountered
"We've already tried paying this invoice" when in fact they were trying
to pay themselves... This improves the error message to distinguish
between paying someone else's invoice twice vs trying to pay oneself.
- Adds `PaymentsManager::get_payment`.
- Removes `PaymentsManager::contains_payment_id` which requires a
`finalized` `HashSet` which grows indefinitely1 parent 8d4e2d7 commit a81046d
2 files changed
+43
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| |||
1287 | 1287 | | |
1288 | 1288 | | |
1289 | 1289 | | |
1290 | | - | |
| 1290 | + | |
1291 | 1291 | | |
1292 | 1292 | | |
1293 | | - | |
| 1293 | + | |
| 1294 | + | |
1294 | 1295 | | |
1295 | | - | |
1296 | | - | |
| 1296 | + | |
| 1297 | + | |
| 1298 | + | |
| 1299 | + | |
| 1300 | + | |
| 1301 | + | |
| 1302 | + | |
| 1303 | + | |
| 1304 | + | |
| 1305 | + | |
| 1306 | + | |
1297 | 1307 | | |
1298 | 1308 | | |
1299 | 1309 | | |
| |||
1378 | 1388 | | |
1379 | 1389 | | |
1380 | 1390 | | |
1381 | | - | |
| 1391 | + | |
1382 | 1392 | | |
1383 | 1393 | | |
1384 | 1394 | | |
| |||
1387 | 1397 | | |
1388 | 1398 | | |
1389 | 1399 | | |
1390 | | - | |
| 1400 | + | |
1391 | 1401 | | |
1392 | | - | |
1393 | | - | |
1394 | | - | |
| 1402 | + | |
| 1403 | + | |
| 1404 | + | |
| 1405 | + | |
| 1406 | + | |
| 1407 | + | |
| 1408 | + | |
| 1409 | + | |
| 1410 | + | |
1395 | 1411 | | |
1396 | 1412 | | |
1397 | 1413 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
290 | 290 | | |
291 | 291 | | |
292 | 292 | | |
293 | | - | |
294 | | - | |
295 | | - | |
296 | | - | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
297 | 310 | | |
298 | 311 | | |
299 | 312 | | |
| |||
839 | 852 | | |
840 | 853 | | |
841 | 854 | | |
842 | | - | |
843 | | - | |
844 | | - | |
845 | | - | |
846 | 855 | | |
847 | 856 | | |
848 | 857 | | |
| |||
0 commit comments