mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-06 17:47:01 +02:00
discovery+funding: add validation of the announcement messages
Add validation functions and include validation checks in the annoncement process function.
This commit is contained in:
committed by
Olaoluwa Osuntokun
parent
a23715a9c7
commit
d4055d7830
9
lnd.go
9
lnd.go
@@ -140,8 +140,8 @@ func lndMain() error {
|
||||
|
||||
// Create, and start the lnwallet, which handles the core payment
|
||||
// channel logic, and exposes control via proxy state machines.
|
||||
wallet, err := lnwallet.NewLightningWallet(chanDB, notifier,
|
||||
wc, signer, bio, activeNetParams.Params)
|
||||
wallet, err := lnwallet.NewLightningWallet(chanDB, notifier, wc, signer,
|
||||
bio, activeNetParams.Params)
|
||||
if err != nil {
|
||||
fmt.Printf("unable to create wallet: %v\n", err)
|
||||
return err
|
||||
@@ -157,7 +157,10 @@ func lndMain() error {
|
||||
defaultListenAddrs := []string{
|
||||
net.JoinHostPort("", strconv.Itoa(cfg.PeerPort)),
|
||||
}
|
||||
server, err := newServer(defaultListenAddrs, notifier, bio, wallet, chanDB)
|
||||
|
||||
fundingSigner := btcwallet.NewFundingSigner(wc)
|
||||
server, err := newServer(defaultListenAddrs, notifier, bio, wallet,
|
||||
chanDB, fundingSigner)
|
||||
if err != nil {
|
||||
srvrLog.Errorf("unable to create server: %v\n", err)
|
||||
return err
|
||||
|
Reference in New Issue
Block a user