lnd/payments/db
bitromortac 4fd4289a08
htlcswitch/hop: decode next_node_id blinded hops
Some implementations (e.g. Core Lightning) identify the next hop in a
blinded route by the next node's ID (next_node_id) instead of a short
channel ID. Decode such a hop into a node-ID next hop, the Right of
ForwardingInfo.NextHop, holding the next node's public key. The switch
resolves that key to one of our channels with the peer in a later commit.

BOLT 4 requires a non-final blinded hop to carry exactly one of
short_channel_id or next_node_id, so a hop that sets both is rejected.
2026-07-30 08:54:35 +00:00
..
migration1 htlcswitch/hop: decode next_node_id blinded hops 2026-07-30 08:54:35 +00:00
codec.go multi: fix linter 2025-08-14 19:53:18 +02:00
errors.go payments/db: fix silent error in duplicate payment lookup 2026-02-25 18:52:34 +01:00
fetch_inflight_benchmark_postgres_test.go paymentsdb: benchmark FetchInFlightPayments on Postgres 2026-06-03 21:43:56 +08:00
fetch_inflight_benchmark_sqlite_test.go paymentsdb: add FetchInFlightPayments benchmark 2026-06-03 21:43:42 +08:00
fetch_inflight_benchmark_test.go paymentsdb: add FetchInFlightPayments benchmark 2026-06-03 21:43:42 +08:00
interface.go multi: thread context through DeleteFailedAttempts 2026-02-25 08:02:24 +01:00
kv_duplicate_payments.go payments/db: fix format in log message 2026-03-12 18:24:05 +01:00
kv_store.go multi: upgrade to btcd v2 modules 2026-06-24 10:58:36 -07:00
kv_store_test.go multi: upgrade to btcd v2 modules 2026-06-24 10:58:36 -07:00
log.go payments/migration1: wire KV→SQL migration in the main pkg 2026-02-25 18:52:33 +01:00
options.go multi: move failed attempt cfg option to the router subsytem 2026-02-25 08:02:26 +01:00
payment.go lint: enable copyloopvar and remove redundant loop var copies in non-test files 2026-06-03 15:32:46 -03:00
payment_status.go multi: move FailureReason to payment package 2025-08-14 19:53:18 +02:00
payment_status_test.go lint: remove redundant loop var copies in test files 2026-06-03 15:32:45 -03:00
payment_test.go multi: upgrade to btcd v2 modules 2026-06-24 10:58:36 -07:00
query.go multi: add omit_hops option to ListPayments RPC 2026-03-12 18:24:03 +01:00
setup_test.go multi: move payment related code into own package 2025-08-14 19:53:15 +02:00
sql_converters.go multi: add omit_hops option to ListPayments RPC 2026-03-12 18:24:03 +01:00
sql_converters_test.go multi: add omit_hops option to ListPayments RPC 2026-03-12 18:24:03 +01:00
sql_store.go paymentsdb: log unexpected nil attempt hashes 2026-04-08 19:21:53 +08:00
sql_store_test.go paymentsdb: added unit test for computePaymentStatusFromResolutions 2026-02-25 08:02:16 +01:00
test_harness.go paymentsdb: introduce a harness interface 2026-02-25 08:02:17 +01:00
test_kvdb.go multi: thread context through FetchPayment 2026-02-25 08:02:19 +01:00
test_postgres.go paymentsdb: introduce a harness interface 2026-02-25 08:02:17 +01:00
test_sqlite.go paymentsdb: introduce a harness interface 2026-02-25 08:02:17 +01:00