mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-29 07:00:55 +02:00
routing+server: expose DefaultChannelPruneExpiry
This commit is contained in:
@@ -33,6 +33,10 @@ const (
|
|||||||
// if we should give up on a payment attempt. This will be used if a
|
// if we should give up on a payment attempt. This will be used if a
|
||||||
// value isn't specified in the LightningNode struct.
|
// value isn't specified in the LightningNode struct.
|
||||||
defaultPayAttemptTimeout = time.Duration(time.Second * 60)
|
defaultPayAttemptTimeout = time.Duration(time.Second * 60)
|
||||||
|
|
||||||
|
// DefaultChannelPruneExpiry is the default duration used to determine
|
||||||
|
// if a channel should be pruned or not.
|
||||||
|
DefaultChannelPruneExpiry = time.Duration(time.Hour * 24 * 14)
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
@@ -583,7 +583,7 @@ func newServer(listenAddrs []net.Addr, chanDB *channeldb.DB, cc *chainControl,
|
|||||||
firstHop, htlcAdd, errorDecryptor,
|
firstHop, htlcAdd, errorDecryptor,
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
ChannelPruneExpiry: time.Duration(time.Hour * 24 * 14),
|
ChannelPruneExpiry: routing.DefaultChannelPruneExpiry,
|
||||||
GraphPruneInterval: time.Duration(time.Hour),
|
GraphPruneInterval: time.Duration(time.Hour),
|
||||||
QueryBandwidth: func(edge *channeldb.ChannelEdgeInfo) lnwire.MilliSatoshi {
|
QueryBandwidth: func(edge *channeldb.ChannelEdgeInfo) lnwire.MilliSatoshi {
|
||||||
// If we aren't on either side of this edge, then we'll
|
// If we aren't on either side of this edge, then we'll
|
||||||
|
Reference in New Issue
Block a user