rust-lightning/lightning/src
Wilmer Paulino 9092c591f1
Refactor ChannelState to decouple state flags from states
Previously, our `ChannelState` contained bits for both states and flags.
To make matters worse, some of the flags could apply to multiple states.
This led to its API being very cumbersome, having to apply masks in most
scenarios to check for certain states. As LDK grows and more features
are added requiring more states/flags, the need for a simpler API
arises.

This refactor aims to improve this by decoupling the state flags from
the `ChannelState` enum. Each state that requires flags will now have
its own flags type, to ensure flags can only be applied to their
intended state. All of this is done while maintaining backwards and
forwards compatibility.
2023-12-05 15:05:05 -08:00
..
blinded_path Remove now-unused Readable impl for ReceiveTlvs 2023-11-29 22:43:12 -05:00
chain Refactor ChainMonitor::update_channel error case 2023-12-01 11:54:00 -06:00
events Add helper function for getting preimage from PaymentPurpose 2023-12-03 12:42:17 -06:00
ln Refactor ChannelState to decouple state flags from states 2023-12-05 15:05:05 -08:00
offers logging every sent and receive onion message 2023-12-03 00:24:14 +05:30
onion_message logging every sent and receive onion message 2023-12-03 00:24:14 +05:30
routing Log additional details when ignoring first hops 2023-12-04 19:07:54 +01:00
sign Merge pull request #2753 from TheBlueMatt/2023-11-inbound-preimages 2023-12-04 13:15:10 -08:00
sync Merge pull request #2167 from TheBlueMatt/2023-04-monitor-e-monitor-prep 2023-05-31 22:48:34 +00:00
util Merge pull request #2764 from TheBlueMatt/2023-11-chacha-cleanup 2023-12-05 12:00:40 -05:00
lib.rs Bump rust-bitcoin to v0.30.2 2023-11-22 15:58:01 -08:00