ziggie
9def124380
payments/db: fix silent error in duplicate payment lookup
...
When duplicatePaymentSequenceKey is missing from a duplicate payment
sub-bucket, the code returned the outer function's err variable which
is nil at that point. This caused corrupted duplicate entries to be
silently treated as "not found" instead of failing loudly.
Return a new dedicated ErrNoDuplicateSequenceNumber error so malformed
data is detected immediately.
2026-02-25 18:52:34 +01:00
ziggie
995ad7e1b5
multi: move failed attempt cfg option to the router subsytem
...
Previously we had db and application logic mixed on the db level.
We now move the config option KeepFailedPaymentAttempts to the
ChannelRouter level and move it out of the db level.
2026-02-25 08:02:26 +01:00
ziggie
7f2df4b088
multi: thread context through DeleteFailedAttempts
2026-02-25 08:02:24 +01:00
ziggie
635a67c94a
multi: thread context through Fail payment functions
2026-02-25 08:02:24 +01:00
ziggie
446300984e
multi: thread context through FailAttempt
2026-02-25 08:02:24 +01:00
ziggie
3b7fdabaec
multi: thread context through SettleAttempt
2026-02-25 08:02:24 +01:00
ziggie
8bb7150dc2
multi: thread context through RegisterAttempt method
2026-02-25 08:02:24 +01:00
ziggie
60026494b1
multi: thread context through InitPayment
2026-02-25 08:02:23 +01:00
ziggie
10062ca9ac
multi: thread context through FetchInflightPayments
2026-02-25 08:02:23 +01:00
ziggie
25d05be038
multi: thread context through FetchPayment
2026-02-25 08:02:19 +01:00
ziggie
563a2ac9d3
multi: thread context through DeletePayments
2026-02-25 08:02:19 +01:00
ziggie
bc15d4bb50
multi: thread context through DeletePayment
2026-02-25 08:02:19 +01:00
ziggie
3012eb2ca0
paymentsdb: implement DeleteFailedAttempts for sql backend
2026-02-25 08:02:09 +01:00
ziggie
870d603ce5
multi: allow invalid tlv data when decoding payment fail info
...
Older payments might have a invalid tlv stream, we now catch this
case and add a unit test.
2025-11-03 12:54:29 +01:00
ziggie
e20a34de46
paymentsdb: refactor attempt verification
2025-09-05 09:52:41 +02:00
ziggie
0320dfcc89
paymentsdb: add compile time check for the kv db implementation
2025-09-05 09:52:40 +02:00
ziggie
3d4ee8b874
paymentsdb: rename defaultKVStoreOptions func
...
We rename the modifier to use the same naming as used in the
graphDB to align the codebase.
2025-09-05 09:52:40 +02:00
ziggie
82242f5342
multi: rename KVPaymentDB to KVStore
...
This matches the same naming as used in the graph package.
2025-08-20 09:07:53 +02:00
ziggie
8245e356e5
paymentsdb: move serialization methods to kv_store file
2025-08-20 09:07:53 +02:00
ziggie
e24ae0d7f3
paymentsdb: add missing comments for variables
2025-08-14 19:53:18 +02:00
ziggie
df9bac2ecf
multi: move PaymentCreationInfo to payment pkg
2025-08-14 19:53:18 +02:00
ziggie
d138e23919
multi: move FailureReason to payment package
2025-08-14 19:53:18 +02:00
ziggie
d77b2f9c26
mulit: move payment query code to separate file
...
We also rename the struct since it is now in its own package
there is no need to prefix it.
2025-08-14 19:53:18 +02:00
ziggie
03af9858d2
multi: move payment related code into own package
...
This commit moves most of the code into its own package. It is
the smallest code move possible without moving import cycles and
keeping the changes to the code base as small as possible during
refactor.
2025-08-14 19:53:15 +02:00