sendAdd

fun sendAdd(cmd: CMD_ADD_HTLC, paymentId: UUID, blockHeight: Long): Either<ChannelException, Pair<Commitments, UpdateAddHtlc>>

Return

either Failure(failureMessage) with a BOLT #4 failure or Success(new commitments, updateAddHtlc)

Parameters

cmd

add HTLC command

paymentId

id of the payment

blockHeight

current block height