-
Notifications
You must be signed in to change notification settings - Fork 2.2k
multi: update close logic to handle re-orgs of depth n-1, where n is num confs - add min conf floor #10265
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
Open
Roasbeef
wants to merge
19
commits into
lightningnetwork:master
Choose a base branch
from
Roasbeef:cnct-reorg
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
multi: update close logic to handle re-orgs of depth n-1, where n is num confs - add min conf floor #10265
Changes from 1 commit
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
34d2574
lnwallet: add new helper functions to scale confirmations based on amt
Roasbeef ed0094c
server: use new FundingConfsForAmounts helper func
Roasbeef 531cdd0
lnwallet: define helper func to coop close conf scaling
Roasbeef 7c34188
lnwallet: add tests for new conf scaling helper funcs
Roasbeef 33a26b5
peer+rpcserver: use new conf scaling for notifications
Roasbeef af7f343
lncfg: add new dev config option for scaling channel close confs
Roasbeef 34db0ad
multi: add new ChannelCloseConfs param, thread thru as needed
Roasbeef 11649bb
peer: send out a notification after the 1st conf, then wait for the rest
Roasbeef 1354e8e
contractcourt: update close logic to handle re-orgs of depth n-1, whe…
Roasbeef 86bd2ee
lntest: add new wait for conf helper method to ChainNotifier
Roasbeef 5608bd5
contractcourt: add new chainWatcherTestHarness
Roasbeef f1a8a54
contractcourt: update existing chain watcher tests due to new logic
Roasbeef 1b67863
contractcourt: add unit tests for rbf re-org cases
Roasbeef 07c08bf
contractcourt: add generic close re-org tests
Roasbeef de3ed9c
itest: add new coop close rbf itest
Roasbeef 80be53b
lnrpc/devrpc: add new TriggerSweep dev rpc command
Roasbeef 1b95fdf
sweeper: implement TriggerSweep
Roasbeef b578431
lntest: add new utilities to wait for mempool/block inclusion, then t…
Roasbeef 08ac7b6
itest: update itests to use new *WithSweep helper assertions
Roasbeef 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
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.
Just wanna note that this is no longer from 1 to 6 but 3 to 6, which makes sense.