lnd: set default value for neutrino ua overrides
This commit is contained in:
parent
bafab33beb
commit
51a5137d3f
@ -20,6 +20,7 @@ import (
|
|||||||
|
|
||||||
"github.com/btcsuite/btcutil"
|
"github.com/btcsuite/btcutil"
|
||||||
flags "github.com/jessevdk/go-flags"
|
flags "github.com/jessevdk/go-flags"
|
||||||
|
"github.com/lightninglabs/neutrino"
|
||||||
"github.com/lightningnetwork/lnd/autopilot"
|
"github.com/lightningnetwork/lnd/autopilot"
|
||||||
"github.com/lightningnetwork/lnd/build"
|
"github.com/lightningnetwork/lnd/build"
|
||||||
"github.com/lightningnetwork/lnd/chanbackup"
|
"github.com/lightningnetwork/lnd/chanbackup"
|
||||||
@ -313,6 +314,10 @@ func DefaultConfig() Config {
|
|||||||
RPCHost: defaultRPCHost,
|
RPCHost: defaultRPCHost,
|
||||||
EstimateMode: defaultBitcoindEstimateMode,
|
EstimateMode: defaultBitcoindEstimateMode,
|
||||||
},
|
},
|
||||||
|
NeutrinoMode: &lncfg.Neutrino{
|
||||||
|
UserAgentName: neutrino.UserAgentName,
|
||||||
|
UserAgentVersion: neutrino.UserAgentVersion,
|
||||||
|
},
|
||||||
UnsafeDisconnect: true,
|
UnsafeDisconnect: true,
|
||||||
MaxPendingChannels: lncfg.DefaultMaxPendingChannels,
|
MaxPendingChannels: lncfg.DefaultMaxPendingChannels,
|
||||||
NoSeedBackup: defaultNoSeedBackup,
|
NoSeedBackup: defaultNoSeedBackup,
|
||||||
|
Loading…
Reference in New Issue
Block a user