From f7c81966eec6e4c40e4ad5927f8fbf14ccc146d1 Mon Sep 17 00:00:00 2001 From: yyforyongyu Date: Wed, 21 Aug 2024 16:29:21 +0800 Subject: [PATCH] chain: fix linter issues --- chain/utils_test.go | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/chain/utils_test.go b/chain/utils_test.go index f65a99cd53..d983c4030c 100644 --- a/chain/utils_test.go +++ b/chain/utils_test.go @@ -82,7 +82,10 @@ func setupConnPair() (net.Conn, net.Conn, error) { // returns the root of the tree. // // This function was copied from: -// https://github.com/btcsuite/btcd/blob/36a96f6a0025b6aeaebe4106821c2d46ee4be8d4/blockchain/fullblocktests/generate.go#L303 +// +// https://github.com/btcsuite/btcd/blob/36a96f6a0025b6aeaebe4106821c2d46ee4be8d4/blockchain/fullblocktests/generate.go#L303 +// +//nolint:lll func calcMerkleRoot(txns []*wire.MsgTx) chainhash.Hash { if len(txns) == 0 { return chainhash.Hash{} @@ -102,7 +105,10 @@ func calcMerkleRoot(txns []*wire.MsgTx) chainhash.Hash { // with the solution. False is returned if no solution exists. // // This function was copied from: -// https://github.com/btcsuite/btcd/blob/36a96f6a0025b6aeaebe4106821c2d46ee4be8d4/blockchain/fullblocktests/generate.go#L324 +// +// https://github.com/btcsuite/btcd/blob/36a96f6a0025b6aeaebe4106821c2d46ee4be8d4/blockchain/fullblocktests/generate.go#L324 +// +//nolint:lll func solveBlock(header *wire.BlockHeader) bool { // sbResult is used by the solver goroutines to send results. type sbResult struct {