discovery+lnwallet: add fetchPKScript helper to gossiper

This commit makes an lnwallet.BlockChainIO available to the gossiper and
uses it to construct a helper that can be used to fetch the pk script
for a given SCID. This will be used for channel announcement
verification in an upcoming commit.
This commit is contained in:
Elle Mouton committed 2024-09-18 16:13:17 +02:00
1 parent 9be84c1bdc
commit a6bf76a0b7
3 files changed
+36

No files matched your search

+1
View File
@@ -1042,6 +1042,7 @@ func newServer(cfg *Config, listenAddrs []net.Addr,
s.authGossiper = discovery.New(discovery.Config{
Graph: s.graphBuilder,
ChainIO: s.cc.ChainIO,
Notifier: s.cc.ChainNotifier,
ChainHash: *s.cfg.ActiveNetParams.GenesisHash,
Broadcast: s.BroadcastMessage,