multi: remove experimential build flag for assumechanvalid

This commit is contained in:
carla
2020-10-21 11:22:34 +02:00
parent 325deb36c0
commit c92b030652
6 changed files with 10 additions and 30 deletions

View File

@@ -1,12 +0,0 @@
// +build !experimental
package routing
// Conf provides the command line routing configuration. There are no fields in
// the production build so that this section is hidden by default.
type Conf struct{}
// UseAssumeChannelValid always returns false when not in experimental builds.
func (c *Conf) UseAssumeChannelValid() bool {
return false
}

View File

@@ -1,14 +0,0 @@
// +build experimental
package routing
// Conf exposes the experimental command line routing configurations.
type Conf struct {
AssumeChannelValid bool `long:"assumechanvalid" description:"Skip checking channel spentness during graph validation. (default: false)"`
}
// UseAssumeChannelValid returns true if the router should skip checking for
// spentness when processing channel updates and announcements.
func (c *Conf) UseAssumeChannelValid() bool {
return c.AssumeChannelValid
}