multi: update internals to support updating max htlc

In this commit, we update the router and link to support users
updating the max HTLC policy for their channels. By updating these internal
systems before updating the RPC server and lncli, we protect users from
being shown an option that doesn't actually work.
This commit is contained in:
Valentine Wallace
2019-08-19 17:53:21 -07:00
committed by Joost Jager
parent c80feeb4b3
commit 9a52cb6dab
5 changed files with 153 additions and 11 deletions

View File

@ -219,6 +219,10 @@ type ChannelPolicy struct {
// TimeLockDelta is the required HTLC timelock delta to be used
// when forwarding payments.
TimeLockDelta uint32
// MaxHTLC is the maximum HTLC size including fees we are allowed to
// forward over this channel.
MaxHTLC lnwire.MilliSatoshi
}
// Config defines the configuration for the ChannelRouter. ALL elements within