-
Notifications
You must be signed in to change notification settings - Fork 403
Split prefunded Channel
into Inbound
/Outbound
channels
#2077
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
TheBlueMatt
merged 25 commits into
lightningdevkit:main
from
dunxen:2023-02-splitchannelstate
Jun 16, 2023
Merged
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
883afb3
Move `Channel` fields into `ChannelContext` struct
dunxen 1503ebb
Move `Channel::opt_anchors` to `ChannelContext` impl & move some util…
dunxen 1ee0a66
Move `Channel::get_update_time_counter` and some other methods
dunxen ede8324
Move `Channel::channel_id` and some other methods to `ChannelContext`…
dunxen 497aeb0
Move `Channel::build_commitment_transaction` to `ChannelContext` impl
dunxen 0d739ee
Move `Channel::build_holder_transaction_keys` and some other methods
dunxen 3ff94fa
Move `Channel::get_feerate_sat_per_1000_weight` and other methods
dunxen 2774aa2
Prepare some methods for upcoming moves to `ChannelContext`
dunxen ed6a5bb
Move `Channel::get_*_pending_htlc_stats` to `ChannelContext` impl
dunxen 08ee72b
Move `Channel::commit_tx_fee_msat` to file-level utilities
dunxen 9f4e714
Move `Channel::next_*_commit_tx_fee_msat` methods to `ChannelContext`…
dunxen 60706d6
Move `Channel::get_available_balances` to `ChannelContext` impl
dunxen 25c1ad8
Convert `ChannelDetails::from_channel` to `ChannelDetails::from_chann…
dunxen e3f0c55
Make `ChannelManager::issue_channel_close_events` take a `ChannelCont…
dunxen 1012526
Move channel constants up
dunxen 883e056
Introduce `InboundV1Channel` & `OutboundV1Channel`
dunxen e6c2f04
Move outbound channel constructor into `OutboundV1Channel` impl
dunxen baadeb7
Move inbound channel constructor into `InboundV1Channel` impl
dunxen 2ea27e0
Move `Channel::force_shutdown` to `ChannelContext` impl
dunxen 4ad67cf
Refactor channel map update macros for use with `ChannelContext`
dunxen 4b1e286
Create and use methods for counting channels
dunxen 4a0cd5c
Move outbound channel methods into `OutboundV1Channel`'s impl
dunxen 637e03a
Move inbound channel methods into `InboundV1Channel`'s impl
dunxen 8f93e2d
Rename `InboundV1Channel::new_from_req` to `InboundV1Channel::new`
dunxen d957f36
Rename `inbound_is_awaiting_accept()` to `is_awaiting_accept()`
dunxen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No big deal, but this was added two commits ago, removed in the previous, and added back here.