nodeFee

fun nodeFee(baseFee: MilliSatoshi, proportionalFee: Long, paymentAmount: MilliSatoshi): MilliSatoshi

Return

the fee that a node should be paid to forward an HTLC of 'paymentAmount' millisatoshis

Parameters

baseFee

fixed fee

proportionalFee

proportional fee (millionths)

paymentAmount

payment amount in millisatoshi