From 6d5d4074cc5e9ae1fca6f1d2d2c01baf3cdfcf7a Mon Sep 17 00:00:00 2001 From: Calvin Kim Date: Mon, 24 Jun 2024 18:57:59 +0900 Subject: [PATCH] wire: remove unnecessary variable --- wire/udata.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/wire/udata.go b/wire/udata.go index a153f1f2..eccceb2d 100644 --- a/wire/udata.go +++ b/wire/udata.go @@ -419,14 +419,8 @@ func DeserializeRemembers(r io.Reader) ([]uint32, error) { // leaf data is compact as you can't generate the correct hash. func HashesFromLeafDatas(leafDatas []LeafData) ([]utreexo.Hash, error) { // make slice of hashes from leafdata - var unconfirmedCount int delHashes := make([]utreexo.Hash, 0, len(leafDatas)) for _, ld := range leafDatas { - if ld.IsUnconfirmed() { - unconfirmedCount++ - continue - } - // We can't calculate the correct hash if the leaf data is in // the compact state. if ld.IsCompact() {