netann: update ChanAnn2 validation to work for P2WSH channels

This commit expands the ChannelAnnouncement2 validation for the case
where it is announcing a P2WSH channel.
This commit is contained in:
Elle Mouton committed 2025-09-01 12:10:31 +02:00
1 parent 06bf0c28b6
commit d68d1fb355
5 files changed
+308 -58

No files matched your search

+1 -1
View File
@@ -1063,7 +1063,7 @@ func newServer(ctx context.Context, cfg *Config, listenAddrs []net.Addr,
Graph: s.graphBuilder,
ChainIO: s.cc.ChainIO,
Notifier: s.cc.ChainNotifier,
ChainHash: *s.cfg.ActiveNetParams.GenesisHash,
ChainParams: s.cfg.ActiveNetParams.Params,
Broadcast: s.BroadcastMessage,
ChanSeries: chanSeries,
NotifyWhenOnline: s.NotifyWhenOnline,