]> git.bitcoin.ninja Git - rust-lightning/commit
Construct ShutdownResult as a struct in Channel
authorWillem Van Lint <noreply@wvanlint.dev>
Thu, 28 Sep 2023 01:36:21 +0000 (18:36 -0700)
committerWillem Van Lint <noreply@wvanlint.dev>
Thu, 19 Oct 2023 03:52:17 +0000 (20:52 -0700)
commit316a7941da44ed53c208a9c1b25225fc2685a4c6
treea2a210421a44146bca72dc5331f61e7e2f1174da
parenta2b46b54dab5e2005b49327a2b488fda7f26bdc2
Construct ShutdownResult as a struct in Channel

This refactors ShutdownResult as follows:
- Makes ShutdownResult a struct instead of a tuple to represent
  individual results that need to be handled. This recently also
  includes funding batch closure propagations.
- Makes Channel solely responsible for constructing ShutdownResult as
  it should own all channel-specific logic.
lightning/src/ln/channel.rs
lightning/src/ln/channelmanager.rs