File tree 3 files changed +18
-2
lines changed
3 files changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -626,8 +626,9 @@ func DefaultConfig() Config {
626
626
RejectCacheSize : channeldb .DefaultRejectCacheSize ,
627
627
ChannelCacheSize : channeldb .DefaultChannelCacheSize ,
628
628
},
629
- Prometheus : lncfg .DefaultPrometheus (),
630
- Watchtower : lncfg .DefaultWatchtowerCfg (defaultTowerDir ),
629
+ Prometheus : lncfg .DefaultPrometheus (),
630
+ Watchtower : lncfg .DefaultWatchtowerCfg (defaultTowerDir ),
631
+ ProtocolOptions : lncfg .DefaultProtocol (),
631
632
HealthChecks : & lncfg.HealthCheckConfig {
632
633
ChainCheck : & lncfg.CheckConfig {
633
634
Interval : defaultChainInterval ,
Original file line number Diff line number Diff line change @@ -59,6 +59,14 @@ type ProtocolOptions struct {
59
59
NoRouteBlindingOption bool `long:"no-route-blinding" description:"do not forward payments that are a part of a blinded route"`
60
60
}
61
61
62
+ // DefaultProtocol returns a protocol config with route blinding turned off,
63
+ // temporarily in place until full handling of blinded route errors is merged.
64
+ func DefaultProtocol () * ProtocolOptions {
65
+ return & ProtocolOptions {
66
+ NoRouteBlindingOption : true ,
67
+ }
68
+ }
69
+
62
70
// Wumbo returns true if lnd should permit the creation and acceptance of wumbo
63
71
// channels.
64
72
func (l * ProtocolOptions ) Wumbo () bool {
Original file line number Diff line number Diff line change @@ -62,6 +62,13 @@ type ProtocolOptions struct {
62
62
NoRouteBlindingOption bool `long:"no-route-blinding" description:"do not forward payments that are a part of a blinded route"`
63
63
}
64
64
65
+ // DefaultProtocol returns a protocol config with route blinding turned on,
66
+ // so that itests can run against route blinding features even while we've
67
+ // got it turned off for the daemon (pending completion of error handling).
68
+ func DefaultProtocol () * ProtocolOptions {
69
+ return & ProtocolOptions {}
70
+ }
71
+
65
72
// Wumbo returns true if lnd should permit the creation and acceptance of wumbo
66
73
// channels.
67
74
func (l * ProtocolOptions ) Wumbo () bool {
You can’t perform that action at this time.
0 commit comments