funding: modify fundingManager config to use SignMessage for ann's
This commit modifies the fundingManager config to use the a SignMesage function rather than two distinct functions for singing one half the channel announcement proofs. This change unifies the signing of messages under a single abstraction: the MessageSigner interface.
This commit is contained in:
3 files changed
+36
-33
No files matched your search
@@ -138,6 +138,7 @@ func lndMain() error {
|
||||
}
|
||||
signer := wc
|
||||
bio := wc
|
||||
fundingSigner := wc
|
||||
|
||||
// Create, and start the lnwallet, which handles the core payment
|
||||
// channel logic, and exposes control via proxy state machines.
|
||||
@@ -159,9 +160,8 @@ func lndMain() error {
|
||||
net.JoinHostPort("", strconv.Itoa(cfg.PeerPort)),
|
||||
}
|
||||
|
||||
fundingSigner := btcwallet.NewFundingSigner(wc)
|
||||
server, err := newServer(defaultListenAddrs, notifier, bio, wallet,
|
||||
chanDB, fundingSigner)
|
||||
server, err := newServer(defaultListenAddrs, notifier, bio,
|
||||
fundingSigner, wallet, chanDB)
|
||||
if err != nil {
|
||||
srvrLog.Errorf("unable to create server: %v\n", err)
|
||||
return err
|
||||
|
||||
Reference in new issue
Block a user