This updates the blockchain module dependencies, the copyright year in the files modified since the previous release, and serves as a base for blockchain/v3.0.0. The updated direct dependencies in this commit are as follows: - github.com/decred/dcrd/blockchain/stake/v3@v3.0.0 - github.com/decred/dcrd/blockchain/standalone/v2@v2.0.0 - github.com/decred/dcrd/chaincfg/v3@v3.0.0 - github.com/decred/dcrd/dcrec/secp256k1/v3@v3.0.0 - github.com/decred/dcrd/dcrutil/v3 v3.0.0 - github.com/decred/dcrd/gcs/v2@v2.1.0 - github.com/decred/dcrd/txscript/v3@v3.0.0 The full list of updated direct dependencies since the previous blockchain/v2.1.0 release are as follows: - github.com/decred/dcrd/blockchain/stake/v3@v3.0.0 - github.com/decred/dcrd/blockchain/standalone/v2@v2.0.0 - github.com/decred/dcrd/chaincfg/v3@v3.0.0 - github.com/decred/dcrd/database/v2@v2.0.2 - github.com/decred/dcrd/dcrec/secp256k1/v3@v3.0.0 - github.com/decred/dcrd/dcrutil/v3 v3.0.0 - github.com/decred/dcrd/gcs/v2@v2.1.0 - github.com/decred/dcrd/txscript/v3@v3.0.0 - github.com/decred/dcrd/wire@v1.4.0 - github.com/decred/slog@v1.1.0 Finally, all modules in the repository are tidied to ensure they are updated to use the latest versions hoisted forward as a result.
30 lines
788 B
Go
30 lines
788 B
Go
// Copyright (c) 2013-2014 The btcsuite developers
|
|
// Copyright (c) 2015-2020 The Decred developers
|
|
// Use of this source code is governed by an ISC
|
|
// license that can be found in the LICENSE file.
|
|
|
|
package blockchain
|
|
|
|
import (
|
|
"github.com/decred/slog"
|
|
)
|
|
|
|
// log is a logger that is initialized with no output filters. This
|
|
// means the package will not perform any logging by default until the caller
|
|
// requests it.
|
|
// The default amount of logging is none.
|
|
var (
|
|
log = slog.Disabled
|
|
trsyLog = slog.Disabled
|
|
)
|
|
|
|
// UseLogger uses a specified Logger to output package logging info.
|
|
func UseLogger(logger slog.Logger) {
|
|
log = logger
|
|
}
|
|
|
|
// UseTreasuryLogger uses a specified Logger to output treasury logging info.
|
|
func UseTreasuryLogger(logger slog.Logger) {
|
|
trsyLog = logger
|
|
}
|