Skip to content

Commit

Permalink
wire: remove unnecessary variable
Browse files Browse the repository at this point in the history
  • Loading branch information
kcalvinalvin committed Jun 26, 2024
1 parent a4aaa71 commit 24f29d8
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions wire/udata.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 24f29d8

Please sign in to comment.