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

This commit is contained in:
Johan T. Halseth committed 2018-08-23 07:50:17 +02:00
1 parent 7eee09c454
commit f4f7b64b2d
1 file changed
+6
+6
View File
@@ -6254,3 +6254,9 @@ func (lc *LightningChannel) RemoteCommitHeight() uint64 {
return lc.channelState.RemoteCommitment.CommitHeight 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
}