1
0
Fork 0
mirror of https://github.com/ACINQ/eclair.git synced 2025-02-26 15:40:29 +01:00
eclair/eclair-core/src
Fabrice Drouin 5afd9fa035
Add missing BOLT 2 checks (fixes #613) (#618)
* rename InvalidDustLimit to DustLimitTooSmall
* make sure that our reserve is above our dust limit
* check that their accept message is valid

see BOLT 2:
- their channel reserve must be above their dust limit
- their channel reserve must be above our dust limit
- their dust limit must be below our reserve

* channel: check to_local and to_remote amounts againt channel_reserve_satoshis

see BOLT 2: The receiving node MUST fail the channel if both to_local and to_remote amounts for
the initial commitment transaction are less than or equal to channel_reserve_satoshis (see BOLT 3).

* channel: check that their open.max_accepted_htlcs is valid
2018-06-18 19:06:14 +02:00
..
main Add missing BOLT 2 checks (fixes #613) (#618) 2018-06-18 19:06:14 +02:00
test Add missing BOLT 2 checks (fixes #613) (#618) 2018-06-18 19:06:14 +02:00