lnd/graph/db/models
Elle Mouton 0806a27abc
graph/db: honor taproot feature bit in v1 funding script construction
Fix FundingPKScript() to check for the taproot staging feature bit on
v1 channel edges. When present, reconstruct a taproot funding script
via GenTaprootFundingScript instead of the legacy P2WSH multisig.

This is a pre-existing bug: private taproot channels have always been
stored as v1 gossip objects with the taproot feature bit, but
FundingPKScript() never checked for it. The discovery/gossiper layer
(makeFundingScript) already handled this correctly on the insertion
path, but any read path that called FundingPKScript() -- notably
ChannelView() used for chain filter reconstruction on restart --
would produce the wrong script.

Update the tests from the previous commit to assert the correct
taproot funding script instead of the legacy P2WSH script.
2026-03-27 14:19:18 +02:00
..
cached_edge_info.go graph/db: let GraghCache.AddChannel take CachedEdgeInfo 2025-06-10 20:10:35 +02:00
cached_edge_policy.go graph/db: refactor CachedEdgePolicy to use explicit boolean fields 2026-02-13 07:21:24 +02:00
channel.go multi+refactor: move models package to graph/db 2024-11-28 13:34:33 +02:00
channel_auth_proof.go graph/db: treat empty channel signatures as missing 2026-02-13 07:21:23 +02:00
channel_edge_info.go graph/db: honor taproot feature bit in v1 funding script construction 2026-03-27 14:19:18 +02:00
channel_edge_info_test.go graph/db: honor taproot feature bit in v1 funding script construction 2026-03-27 14:19:18 +02:00
channel_edge_policy.go multi: add ChanEdgePolicyFromWire constructor for ChannelEdgePolicy 2026-02-13 07:21:24 +02:00
inbound_fee.go multi+refactor: move models package to graph/db 2024-11-28 13:34:33 +02:00
inbound_fee_test.go multi+refactor: move models package to graph/db 2024-11-28 13:34:33 +02:00
node.go graph/db: add V2 Node constructor 2026-02-13 07:21:20 +02:00