Commit 15d7bc6
refactor: move payref archival into set_as_unmined for atomicity
Move the PayRef history archival logic from process_reorg into
CompletedTransactionSql::set_as_unmined so that archive + delete
happens atomically on the same connection. This covers all callers:
both process_reorg (reorg path) and transaction_validation_protocol
(normal validation path).
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent da04720 commit 15d7bc6
File tree
1 file changed
+8
-10
lines changed- base_layer/wallet/src/transaction_service/storage
1 file changed
+8
-10
lines changedLines changed: 8 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1486 | 1486 | | |
1487 | 1487 | | |
1488 | 1488 | | |
1489 | | - | |
1490 | | - | |
1491 | | - | |
1492 | | - | |
1493 | | - | |
1494 | | - | |
1495 | | - | |
1496 | | - | |
1497 | | - | |
1498 | | - | |
| 1489 | + | |
1499 | 1490 | | |
1500 | 1491 | | |
1501 | 1492 | | |
| |||
2477 | 2468 | | |
2478 | 2469 | | |
2479 | 2470 | | |
| 2471 | + | |
| 2472 | + | |
| 2473 | + | |
| 2474 | + | |
| 2475 | + | |
| 2476 | + | |
| 2477 | + | |
2480 | 2478 | | |
2481 | 2479 | | |
2482 | 2480 | | |
| |||
0 commit comments