routing+server: expose DefaultChannelPruneExpiry

This commit is contained in:
Wilmer Paulino committed 2019-03-27 13:07:13 -07:00
1 parent c82d73a826
commit 174645fcba
2 files changed
+5 -1

No files matched your search

+1 -1
View File
@@ -583,7 +583,7 @@ func newServer(listenAddrs []net.Addr, chanDB *channeldb.DB, cc *chainControl,
firstHop, htlcAdd, errorDecryptor,
)
},
ChannelPruneExpiry: time.Duration(time.Hour * 24 * 14),
ChannelPruneExpiry: routing.DefaultChannelPruneExpiry,
GraphPruneInterval: time.Duration(time.Hour),
QueryBandwidth: func(edge *channeldb.ChannelEdgeInfo) lnwire.MilliSatoshi {
// If we aren't on either side of this edge, then we'll