Skip to content

Commit

Permalink
remove unused returned error
Browse files Browse the repository at this point in the history
  • Loading branch information
boecklim committed Dec 20, 2023
1 parent c3f817f commit fe72cbe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions merkleroot.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ func BuildMerkleTreeStore(txids []string) ([]string, error) {
}

// BuildMerkleTreeStoreChainHash has the same functionality as BuildMerkleTreeStore but uses chainhash as a type to avoid string conversions.
func BuildMerkleTreeStoreChainHash(txids []*chainhash.Hash) ([]*chainhash.Hash, error) {
func BuildMerkleTreeStoreChainHash(txids []*chainhash.Hash) []*chainhash.Hash {
// // Calculate how many entries are re?n array of that size.
nextPoT := nextPowerOfTwo(len(txids))
arraySize := nextPoT*2 - 1
Expand Down Expand Up @@ -161,7 +161,7 @@ func BuildMerkleTreeStoreChainHash(txids []*chainhash.Hash) ([]*chainhash.Hash,
offset++
}

return merkles, nil
return merkles
}

// nextPowerOfTwo returns the next highest power of two from a given number if
Expand Down

0 comments on commit fe72cbe

Please sign in to comment.