mirror of
https://github.com/lightningnetwork/lnd.git
synced 2024-11-19 09:53:54 +01:00
c9f5912601
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.
13 lines
349 B
Go
13 lines
349 B
Go
package migration29
|
|
|
|
import "github.com/btcsuite/btclog"
|
|
|
|
// log is a logger that is initialized as disabled. This means the package will
|
|
// not perform any logging by default until a logger is set.
|
|
var log = btclog.Disabled
|
|
|
|
// UseLogger uses a specific Logger to output package logging info.
|
|
func UseLogger(logger btclog.Logger) {
|
|
log = logger
|
|
}
|