Make acces and signature of local commitment transaction unique
authorAntoine Riard <ariard@student.42.fr>
Mon, 6 Apr 2020 22:32:57 +0000 (18:32 -0400)
committerAntoine Riard <ariard@student.42.fr>
Fri, 17 Apr 2020 21:50:26 +0000 (17:50 -0400)
commitba880e3662d7f01c8963fcac37d0b32ad2c9086c
tree1edc2c1a33f93a9753b61044d4edf83f714f840d
parent9faf6ca85f61058f0b4eba227b8dc848f07942e5
Make acces and signature of local commitment transaction unique

Local commitment transaction broadcast can be triggered by a)
a Channel force-close or b) reaching some block height implying
a onchain HTLC-timeout. If one of this condition is fulfilled,
commitment is signed and from then any state update would be
rejected.

ChannelMonitor init at Channel creation need to be refactored
before to make get_fully_signed_local_tx infaillible to avoid
choking in the test framework.
lightning/src/ln/onchaintx.rs