peer: set max htlc when loading active channels on start

This commit is contained in:
Valentine Wallace 2018-12-08 18:18:20 -08:00
parent 833c31eaca
commit 90cbf9fe35

View File

@ -480,6 +480,7 @@ func (p *peer) loadActiveChannels(chans []*channeldb.OpenChannel) error {
if selfPolicy != nil {
forwardingPolicy = &htlcswitch.ForwardingPolicy{
MinHTLC: selfPolicy.MinHTLC,
MaxHTLC: selfPolicy.MaxHTLC,
BaseFee: selfPolicy.FeeBaseMSat,
FeeRate: selfPolicy.FeeProportionalMillionths,
TimeLockDelta: uint32(selfPolicy.TimeLockDelta),