]> git.bitcoin.ninja Git - rust-lightning/commit
Force-close channels if closing transactions may be non-standard
authorMatt Corallo <git@bluematt.me>
Wed, 1 Sep 2021 20:33:49 +0000 (20:33 +0000)
committerMatt Corallo <git@bluematt.me>
Mon, 27 Sep 2021 18:19:51 +0000 (18:19 +0000)
commit9279890089ddc44bcb74c53ca2a4c598b7dcc9ec
treebb0034d9b0270eaf513daf353c92ee97542cd922
parent1b70d9ee8f47df33fe70d7396e2a023feaea6be5
Force-close channels if closing transactions may be non-standard

If a counterparty (or an old channel of ours) uses a non-segwit
script for their cooperative close payout, they may include an
output which is unbroadcastable due to not meeting the network dust
limit.

Here we check for this condition, force-closing the channel instead
if we find an output in the closing transaction which does not meet
the limit.
lightning/src/ln/channel.rs