Function Channel.buildUpdatedBalance
Add a new HTLC to the balance and fold any HTLCs for which the timeout has expired.
Parameters
Name | Description |
---|---|
old_balance | the current balance |
amount | the invoice amount |
payment_hash | the invoice payment hash |
lock_height | the lock height for the outgoing HTLC |
height | the current known block height |
Returns
the new balance to use during the next signing process