mirror of
https://github.com/lightningnetwork/lnd.git
synced 2024-11-19 09:53:54 +01:00
peer: set max htlc when loading active channels on start
This commit is contained in:
parent
833c31eaca
commit
90cbf9fe35
1
peer.go
1
peer.go
@ -480,6 +480,7 @@ func (p *peer) loadActiveChannels(chans []*channeldb.OpenChannel) error {
|
|||||||
if selfPolicy != nil {
|
if selfPolicy != nil {
|
||||||
forwardingPolicy = &htlcswitch.ForwardingPolicy{
|
forwardingPolicy = &htlcswitch.ForwardingPolicy{
|
||||||
MinHTLC: selfPolicy.MinHTLC,
|
MinHTLC: selfPolicy.MinHTLC,
|
||||||
|
MaxHTLC: selfPolicy.MaxHTLC,
|
||||||
BaseFee: selfPolicy.FeeBaseMSat,
|
BaseFee: selfPolicy.FeeBaseMSat,
|
||||||
FeeRate: selfPolicy.FeeProportionalMillionths,
|
FeeRate: selfPolicy.FeeProportionalMillionths,
|
||||||
TimeLockDelta: uint32(selfPolicy.TimeLockDelta),
|
TimeLockDelta: uint32(selfPolicy.TimeLockDelta),
|
||||||
|
Loading…
Reference in New Issue
Block a user