mirror of
https://github.com/lightningnetwork/lnd.git
synced 2024-11-19 01:43:16 +01:00
multi: turn on route blinding by default
This commit is contained in:
parent
eaa85920ea
commit
7867cb3a70
@ -627,9 +627,8 @@ func DefaultConfig() Config {
|
||||
RejectCacheSize: channeldb.DefaultRejectCacheSize,
|
||||
ChannelCacheSize: channeldb.DefaultChannelCacheSize,
|
||||
},
|
||||
Prometheus: lncfg.DefaultPrometheus(),
|
||||
Watchtower: lncfg.DefaultWatchtowerCfg(defaultTowerDir),
|
||||
ProtocolOptions: lncfg.DefaultProtocol(),
|
||||
Prometheus: lncfg.DefaultPrometheus(),
|
||||
Watchtower: lncfg.DefaultWatchtowerCfg(defaultTowerDir),
|
||||
HealthChecks: &lncfg.HealthCheckConfig{
|
||||
ChainCheck: &lncfg.CheckConfig{
|
||||
Interval: defaultChainInterval,
|
||||
|
@ -59,14 +59,6 @@ type ProtocolOptions struct {
|
||||
NoRouteBlindingOption bool `long:"no-route-blinding" description:"do not forward payments that are a part of a blinded route"`
|
||||
}
|
||||
|
||||
// DefaultProtocol returns a protocol config with route blinding turned off,
|
||||
// temporarily in place until full handling of blinded route errors is merged.
|
||||
func DefaultProtocol() *ProtocolOptions {
|
||||
return &ProtocolOptions{
|
||||
NoRouteBlindingOption: true,
|
||||
}
|
||||
}
|
||||
|
||||
// Wumbo returns true if lnd should permit the creation and acceptance of wumbo
|
||||
// channels.
|
||||
func (l *ProtocolOptions) Wumbo() bool {
|
||||
|
@ -62,13 +62,6 @@ type ProtocolOptions struct {
|
||||
NoRouteBlindingOption bool `long:"no-route-blinding" description:"do not forward payments that are a part of a blinded route"`
|
||||
}
|
||||
|
||||
// DefaultProtocol returns a protocol config with route blinding turned on,
|
||||
// so that itests can run against route blinding features even while we've
|
||||
// got it turned off for the daemon (pending completion of error handling).
|
||||
func DefaultProtocol() *ProtocolOptions {
|
||||
return &ProtocolOptions{}
|
||||
}
|
||||
|
||||
// Wumbo returns true if lnd should permit the creation and acceptance of wumbo
|
||||
// channels.
|
||||
func (l *ProtocolOptions) Wumbo() bool {
|
||||
|
Loading…
Reference in New Issue
Block a user