lnwallet/channel: add FwdMinHtlc(), returning MinHTLC from localChanCfg

This commit is contained in:
Johan T. Halseth 2018-08-22 09:32:43 +02:00
parent 7eee09c454
commit f4f7b64b2d
No known key found for this signature in database
GPG Key ID: 15BAADA29DA20D26

@ -6254,3 +6254,9 @@ func (lc *LightningChannel) RemoteCommitHeight() uint64 {
return lc.channelState.RemoteCommitment.CommitHeight
}
// FwdMinHtlc returns the minimum HTLC value required by the remote node, i.e.
// the minimum value HTLC we can forward on this channel.
func (lc *LightningChannel) FwdMinHtlc() lnwire.MilliSatoshi {
return lc.localChanCfg.MinHTLC
}