1
0
Fork 0
mirror of https://github.com/ACINQ/eclair.git synced 2025-02-26 23:49:34 +01:00
eclair/eclair-core/src/test
Anton Kumaigorodski a065ae757f Added support for data loss protection option (#410)
* 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`
2018-02-23 15:46:05 +01:00
..
java/fr/acinq/eclair/crypto Reformat + optimized imports (#222) 2017-11-21 20:08:15 +01:00
resources Add test on signing a single Updatefee with no other updates (#254) 2017-12-04 18:41:39 +01:00
scala/fr/acinq/eclair Added support for data loss protection option (#410) 2018-02-23 15:46:05 +01:00