From 758493888100818fe9385f1b6430a5aa9ba52ac3 Mon Sep 17 00:00:00 2001 From: Lazar Date: Wed, 11 Dec 2024 15:15:39 +0100 Subject: [PATCH] lint --- types/utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/utils.go b/types/utils.go index d12fdaf..ca766d2 100644 --- a/types/utils.go +++ b/types/utils.go @@ -22,7 +22,7 @@ func (c SupportedBtcNetwork) String() string { } func GetWrappedTxs(msg *wire.MsgBlock) []*btcutil.Tx { - btcTxs := make([]*btcutil.Tx, len(msg.Transactions)) + btcTxs := make([]*btcutil.Tx, 0, len(msg.Transactions)) for i := range msg.Transactions { newTx := btcutil.NewTx(msg.Transactions[i])