peer: set max htlc when loading active channels on start

This commit is contained in:
Valentine Wallace committed 2019-02-21 18:39:32 -08:00
1 parent 833c31eaca
commit 90cbf9fe35
1 file changed
+1
+1
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),