lnd/chanbackup
Boris Nagaev df84148ed2
chanbackup: add Single.CloseTxInputs field
The field is optional. It stores inputs needed to produce signed commit tx using
chantools scbforceclose, which calls function GetSignedCommitTx. New backups
have this field filled if commit tx is available (for all cases except when DLP
is active). If a backup has this data, the field is filled from it, otherwise it
is kept empty.

Modified test function genRandomOpenChannelShell to cover new types of channels
(simple taproot channel and custom channel) and to cover combinations of bits.
Make sure that TapscriptRoot field is properly packed and unpacked.
2024-10-14 09:44:17 -03:00
..
backup_test.go multi: move many t.Fatalf calls to require.NoError 2022-06-17 04:26:55 +00:00
backup.go chanbackup: add Single.CloseTxInputs field 2024-10-14 09:44:17 -03:00
backupfile_test.go multi: repleace ioutil.ReadFile 2024-04-25 11:22:43 +02:00
backupfile.go multi: repleace ioutil.ReadFile 2024-04-25 11:22:43 +02:00
log.go multi: add NewLogClosure in lnutils to avoid repetition 2024-07-25 21:25:23 +08:00
multi_test.go lnencrypt: Moves the crypto functions in the chanbackup package into its own package called lnencrypt 2022-09-30 01:53:45 -05:00
multi.go multi: fix fmt.Errorf error wrapping 2024-02-27 11:13:40 +00:00
pubsub_test.go multi: fix fmt.Errorf error wrapping 2024-02-27 11:13:40 +00:00
pubsub.go chanbackup: add Single.CloseTxInputs field 2024-10-14 09:44:17 -03:00
recover_test.go lnencrypt: Moves the crypto functions in the chanbackup package into its own package called lnencrypt 2022-09-30 01:53:45 -05:00
recover.go multi: add SpewLogClosure to avoid code repetition 2024-07-25 22:18:49 +08:00
single_test.go chanbackup: add Single.CloseTxInputs field 2024-10-14 09:44:17 -03:00
single.go chanbackup: add Single.CloseTxInputs field 2024-10-14 09:44:17 -03:00