1
0
mirror of https://github.com/lightning/bolts.git synced 2024-11-19 01:50:03 +01:00

add a check on counterparty's dust_limit value

Usually the counterparty would only hurt itself if it chooses too low a `dust_limit`, but in the specific scenario of a data loss, we want the counterparty's commitment tx to be relayed and confirmed on the network.
This commit is contained in:
Pierre-Marie Padiou 2017-11-27 21:22:34 +01:00 committed by Rusty Russell
parent ef053c0943
commit 4e5ec11c4e

View File

@ -201,6 +201,7 @@ The receiving node MAY fail the channel if:
- it considers `max_htlc_value_in_flight_msat` too small.
- it considers `channel_reserve_satoshis` too large.
- it considers `max_accepted_htlcs` too small.
- it considers `dust_limit_satoshis` too small and plans to rely on the sending node publishing its commitment transaction in the event of a data loss (see [message-retransmission](02-peer-protocol.md#message-retransmission)).
The receiving node MUST fail the channel if:
- `push_msat` is greater than `funding_satoshis` * 1000.