]> git.bitcoin.ninja Git - rust-lightning/commit
send warning when we receive a old commitment transaction
authorVincenzo Palazzo <vincenzopalazzodev@gmail.com>
Wed, 4 May 2022 07:23:05 +0000 (09:23 +0200)
committerVincenzo Palazzo <vincenzopalazzodev@gmail.com>
Wed, 4 May 2022 07:23:12 +0000 (09:23 +0200)
commite6300dab2dca2fb997b02fe37d678732a97b116a
treef2f7cb66aa6527be749b382916bce846571edbf4
parent171dfeee07da7fd4c9ad8a081a91899b3a7268d0
send warning when we receive a old commitment transaction

During a `channel_reestablish` now we send a warning message when we receive a old commitment transaction from the peer.

In addition, this commit include the update of functional test to make sure that the receiver will generate warn messages.

Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
lightning/src/ln/channel.rs
lightning/src/ln/functional_tests.rs