mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-06-14 19:01:10 +02:00
lnd: use impl cfg TlvTrafficShaper
This commit is contained in:
parent
37cbfea912
commit
a584b7585d
@ -44,6 +44,7 @@ import (
|
|||||||
"github.com/lightningnetwork/lnd/lnwallet/btcwallet"
|
"github.com/lightningnetwork/lnd/lnwallet/btcwallet"
|
||||||
"github.com/lightningnetwork/lnd/lnwallet/rpcwallet"
|
"github.com/lightningnetwork/lnd/lnwallet/rpcwallet"
|
||||||
"github.com/lightningnetwork/lnd/macaroons"
|
"github.com/lightningnetwork/lnd/macaroons"
|
||||||
|
"github.com/lightningnetwork/lnd/routing"
|
||||||
"github.com/lightningnetwork/lnd/rpcperms"
|
"github.com/lightningnetwork/lnd/rpcperms"
|
||||||
"github.com/lightningnetwork/lnd/signal"
|
"github.com/lightningnetwork/lnd/signal"
|
||||||
"github.com/lightningnetwork/lnd/sqldb"
|
"github.com/lightningnetwork/lnd/sqldb"
|
||||||
@ -157,6 +158,10 @@ type AuxComponents struct {
|
|||||||
// AuxLeafStore is an optional data source that can be used by custom
|
// AuxLeafStore is an optional data source that can be used by custom
|
||||||
// channels to fetch+store various data.
|
// channels to fetch+store various data.
|
||||||
AuxLeafStore fn.Option[lnwallet.AuxLeafStore]
|
AuxLeafStore fn.Option[lnwallet.AuxLeafStore]
|
||||||
|
|
||||||
|
// TrafficShaper is an optional traffic shaper that can be used to
|
||||||
|
// control the outgoing channel of a payment.
|
||||||
|
TrafficShaper fn.Option[routing.TlvTrafficShaper]
|
||||||
}
|
}
|
||||||
|
|
||||||
// DefaultWalletImpl is the default implementation of our normal, btcwallet
|
// DefaultWalletImpl is the default implementation of our normal, btcwallet
|
||||||
|
@ -1001,6 +1001,7 @@ func newServer(cfg *Config, listenAddrs []net.Addr,
|
|||||||
Clock: clock.NewDefaultClock(),
|
Clock: clock.NewDefaultClock(),
|
||||||
StrictZombiePruning: strictPruning,
|
StrictZombiePruning: strictPruning,
|
||||||
IsAlias: aliasmgr.IsAlias,
|
IsAlias: aliasmgr.IsAlias,
|
||||||
|
TrafficShaper: implCfg.TrafficShaper,
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, fmt.Errorf("can't create router: %w", err)
|
return nil, fmt.Errorf("can't create router: %w", err)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user