lnd/chanbackup
eugene c9f5912601
channeldb: BigSize migration, store zero-conf, scid-alias bits
This introduces a BigSize migration that is used to expand the width
of the ChannelStatus and ChannelType fields. Three channel "types"
are added - ZeroConfBit, ScidAliasChanBit, and ScidAliasFeatureBit.
ScidAliasChanBit denotes that the scid-alias channel type was
negotiated for the channel. ScidAliasFeatureBit denotes that the
scid-alias feature bit was negotiated during the *lifetime* of the
channel. Several helper functions on the OpenChannel struct are
exposed to aid callers from different packages.

The RefreshShortChanID has been renamed to Refresh.

A new function BroadcastHeight is used to guard access to the
mutable FundingBroadcastHeight member. This prevents data races.
2022-07-07 17:10:27 -04:00
..
backup.go multi: use btcd's btcec/v2 and btcutil modules 2022-03-09 19:02:37 +01:00
backup_test.go multi: move many t.Fatalf calls to require.NoError 2022-06-17 04:26:55 +00:00
backupfile.go chanbackup: always close SCB file after reading 2020-07-10 16:20:32 -07:00
backupfile_test.go multi: move many t.Fatalf calls to require.NoError 2022-06-17 04:26:55 +00:00
crypto.go chanbackup: implement crypto operations for serialized static channel baackups 2019-01-23 18:11:21 -08:00
crypto_test.go multi: use btcd's btcec/v2 and btcutil modules 2022-03-09 19:02:37 +01:00
log.go chanbackup: add logger 2019-01-23 18:11:25 -08:00
multi.go chanbackup: add new NilMultiSizePacked constant 2019-03-28 17:53:37 -07:00
multi_test.go multi: move many t.Fatalf calls to require.NoError 2022-06-17 04:26:55 +00:00
pubsub.go multi: add logs when subservers are starting 2022-02-11 21:17:03 +08:00
pubsub_test.go multi: move many t.Fatalf calls to require.NoError 2022-06-17 04:26:55 +00:00
recover.go multi: use btcd's btcec/v2 and btcutil modules 2022-03-09 19:02:37 +01:00
recover_test.go multi: move many t.Fatalf calls to require.NoError 2022-06-17 04:26:55 +00:00
single.go channeldb: BigSize migration, store zero-conf, scid-alias bits 2022-07-07 17:10:27 -04:00
single_test.go multi: move many t.Fatalf calls to require.NoError 2022-06-17 04:26:55 +00:00