mirror of
https://github.com/lightningnetwork/lnd.git
synced 2026-08-14 12:42:48 +02:00
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. |
||
|---|---|---|
| .. | ||
| cached_edge_info.go | ||
| cached_edge_policy.go | ||
| channel.go | ||
| channel_auth_proof.go | ||
| channel_edge_info.go | ||
| channel_edge_info_test.go | ||
| channel_edge_policy.go | ||
| inbound_fee.go | ||
| inbound_fee_test.go | ||
| node.go | ||