-
Notifications
You must be signed in to change notification settings - Fork 2.2k
multi: implement new safe static channel backup and recovery scheme, RPCs, and cli commands #2313
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
Roasbeef
merged 46 commits into
lightningnetwork:master
from
Roasbeef:static-chan-backups
Apr 1, 2019
Merged
Changes from all commits
Commits
Show all changes
46 commits
Select commit
Hold shift + click to select a range
1a488f4
chains: upgrade the keyRing instance in chainControl to a SecretKeyRing
Roasbeef da3625f
lnrpc: add series of new methods for exporting, recovering, and subsc…
Roasbeef f0e9a1f
walletunlock: exend the Init and Unlock methods to also return option…
Roasbeef 73eb37b
peer: don't attempt to load any channels that have a non-default stat…
Roasbeef af4c11c
chanrestore: add new file to house chanbackup interface implementations
Roasbeef c5933d4
server: feed through any SCBs on start up to be restored
Roasbeef 1d7e42a
rpc: implement new SCB related RPC calls
Roasbeef 0b8131c
cmd/lncli: add new exportchanbackup and restorechanbackup cli commands
Roasbeef af1dfe1
chanbackup: add new updateBackupFile method, write fresh backup on st…
Roasbeef 411000d
lnd: add new channelNotifier impl of chanbackup.ChannelNotifier
Roasbeef 9512d70
config: add new backupfilepath argument for SCBs
Roasbeef 056deca
log: hook up chanbackup logger
Roasbeef 019ec2d
rpcserver: implement the SubscribeChannelBackups RPC method
Roasbeef 6bc20b1
server: assemble and start chanbackup.SubSwapper on startup
Roasbeef d7bc93b
chanbackup: add new NilMultiSizePacked constant
Roasbeef 7cbf032
chanbackup: extend channel backups to include entire local+remote cha…
Roasbeef 13e7244
channeldb: also restore channel capacity in RestoreChannelShells
Roasbeef b93ff26
channeldb: set restored chan status within RestoreChannelShells
Roasbeef 19ef4bb
channeldb: within AddrsForNode don't fail if no graph node is found
Roasbeef 64b8fac
channeldb: don't read/write funding transactions if a restore channel
Roasbeef a508a62
lnwire: add bool types to codec for SCB format
Roasbeef 441f010
lntest: add new initClientWhenReady to connect RPC then init client
Roasbeef b62dd09
lntest: exend newNode method to accept wallet password
Roasbeef e929142
lntest: add new Unlock method to allow unlock of fresh node
Roasbeef b419179
lntest: extend RestartNode to also unlock node if password is present
Roasbeef d9c9d6e
lntest: add new ChanBackupPath method to expose channels.backup for node
Roasbeef 90d8a46
lnwallet: allow DLP trigger transition in ProcessChanSyncMsg if chan …
Roasbeef 3e866c6
lnwallet: add additional comment for case in ProcessChanSyncMsg
Roasbeef fc8337b
lnwallet: send invalid commitment secret if restored chan in ChanSyncMsg
Roasbeef 4ff4e1b
lnwallet: account for case where remote party has 2 unrevoked commits…
Roasbeef 1afec13
htlcswitch: update syncChanStates for new ChanSyncMsg API
Roasbeef b491488
contractcourt: update to new ChanSyncMsg API, reflow comments where n…
Roasbeef c722f2c
contractcourt: only look for local force close for non-recovered channel
Roasbeef 26f6fd7
contractcourt: ignore all other dispatch cases in closeObserver when …
Roasbeef 7ab8096
lnrpc: add new VerifyChanBackup command
Roasbeef ead8aed
rpc: implement new VerifyChanBackup command
Roasbeef 1f187c0
cmd/lncli: add new verifychanbackup command
Roasbeef 26c5289
server: convert Start/Stop methods to use sync.Once
Roasbeef b8cbe3a
channeldb: in RestoreChannelShells don't exit if edge already exists
Roasbeef b451536
lntest: extend the restore/restart methods to also accept optional SCBs
Roasbeef ea6ed7b
test: update to new getChanPointFundingTxid
Roasbeef e3626d1
lntest: update to new RestoreNodeWithSeed API
Roasbeef acc37f7
test: refactor testDataLossProtection to extract core DLP scenario ou…
Roasbeef 266ddba
test: add new test for streaming SCB updates
Roasbeef e3029de
test: add new itest for exporting SCBs
Roasbeef f216027
test: add new series of itests for various SCB restore scenarios
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.