build+routerrpc+lncli: remove routerrpc conditional compilation
This commit is contained in:
17 files changed
+8
-65
No files matched your search
@@ -1,5 +1,3 @@
|
||||
// +build routerrpc
|
||||
|
||||
package routerrpc
|
||||
|
||||
import (
|
||||
@@ -1,28 +0,0 @@
|
||||
// +build !routerrpc
|
||||
|
||||
package routerrpc
|
||||
|
||||
import "github.com/lightningnetwork/lnd/routing"
|
||||
|
||||
// Config is the default config struct for the package. When the build tag isn't
|
||||
// specified, then we output a blank config.
|
||||
type Config struct{}
|
||||
|
||||
// DefaultConfig defines the config defaults. Without the sub server enabled,
|
||||
// there are no defaults to set.
|
||||
func DefaultConfig() *Config {
|
||||
return &Config{}
|
||||
}
|
||||
|
||||
// GetRoutingConfig returns the routing config based on this sub server config.
|
||||
func GetRoutingConfig(cfg *Config) *RoutingConfig {
|
||||
return &RoutingConfig{
|
||||
AprioriHopProbability: routing.DefaultAprioriHopProbability,
|
||||
AprioriWeight: routing.DefaultAprioriWeight,
|
||||
MinRouteProbability: routing.DefaultMinRouteProbability,
|
||||
AttemptCost: routing.DefaultPaymentAttemptPenalty.
|
||||
ToSatoshis(),
|
||||
PenaltyHalfLife: routing.DefaultPenaltyHalfLife,
|
||||
MaxMcHistory: routing.DefaultMaxMcHistory,
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,3 @@
|
||||
// +build routerrpc
|
||||
|
||||
package routerrpc
|
||||
|
||||
import (
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
// +build routerrpc
|
||||
|
||||
package routerrpc
|
||||
|
||||
import (
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
// +build routerrpc
|
||||
|
||||
package routerrpc
|
||||
|
||||
import (
|
||||
|
||||
Reference in new issue
Block a user