mirror of
https://github.com/lightningnetwork/lnd.git
synced 2026-08-17 13:06:14 +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. |
||
|---|---|---|
| .. | ||
| db | ||
| testdata | ||
| builder.go | ||
| builder_test.go | ||
| errors.go | ||
| interfaces.go | ||
| log.go | ||
| notifications_test.go | ||
| setup_test.go | ||
| stats.go | ||