rust-lightning/lightning
Matt Corallo eb42caf8a0 Fix (and test) panic when our counterparty uses a bogus funding tx
During the block API refactor, we started calling
Channel::force_shutdown when a channel is closed due to a bogus
funding tx. However, we still set the channel's state to Shutdown
prior to doing so, leading to an assertion in force_shutdown (that
the channel is not already closed).

This removes the state-set call and adds a (long-overdue) test for
this case.

Fixes: 60b962a18e
2021-04-23 22:52:43 +00:00
..
src Fix (and test) panic when our counterparty uses a bogus funding tx 2021-04-23 22:52:43 +00:00
Cargo.toml Update licenses and add missing fields in Cargo.toml files 2021-03-09 16:53:03 -05:00