Function Channel.foldHTLCs
Fold HTLCs for which we've learned the secrets for or which have their lock time expired.
TODO
can we merge this and buildUpdatedBalance() ?
Parameters
Name | Description |
---|---|
old_balance | the current balance |
secrets | any new secrets we've discovered |
height | the current known block height |
Returns
the new balance to use during the next signing process