mirror of
https://github.com/ACINQ/eclair.git
synced 2025-02-26 23:49:34 +01:00
* This is based on the `option-data-loss-protect` feature defined in BOLT 9. * At reconnection, when the counterparty proves us that our commitment is outdated, we politely ask them to publish their commitment. This is done by adding a new state `WAIT_FOR_REMOTE_PUBLISH_FUTURE_COMMITMENT`, and introducing a new "future" remote commitment type, in addition to existing "current" and "next". * Slightly changed the signature of `Helpers`.`claimRemoteCommitMainOutput` so that current/next/future commitments are all handled the same way. * Made sure that we never publish our local commitment when we know it is outdated, as it would be a cheating attempt and would result in a total loss of funds. * Support both optional/required modes for option `option_data_loss_protect` |
||
---|---|---|
.. | ||
java/fr/acinq/eclair/crypto | ||
resources | ||
scala/fr/acinq/eclair |