Skip to content

Commit

Permalink
chainhash: bump to v2
Browse files Browse the repository at this point in the history
This bumps the major module version for chaincfg/chainhash to v2.  This
is needed to resolve an ambiguous import issue with the same package
existing in older revisions of the main btcd module.  Users who import
both a tagged revision of btcd prior to the chainhash module, as well as
another module such as btcd that requires the chainhash module may
be met with an ambiguous import error from the go tooling.
  • Loading branch information
chappjc committed Apr 25, 2022
1 parent 8c5bfee commit 39b1193
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions chaincfg/chainhash/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,18 @@ chainhash

[![Build Status](https://github.com/btcsuite/btcd/workflows/Build%20and%20Test/badge.svg)](https://github.com/btcsuite/btcd/actions)
[![ISC License](http://img.shields.io/badge/license-ISC-blue.svg)](http://copyfree.org)
[![GoDoc](https://img.shields.io/badge/godoc-reference-blue.svg)](https://pkg.go.dev/github.com/btcsuite/btcd/chaincfg/chainhash)
[![GoDoc](https://img.shields.io/badge/godoc-reference-blue.svg)](https://pkg.go.dev/github.com/btcsuite/btcd/chaincfg/chainhash/v2)
=======

chainhash provides a generic hash type and associated functions that allows the
specific hash algorithm to be abstracted.

## Installation and Updating

To add the dependency to your module, edit your go.mod or:

```bash
$ go get -u github.com/btcsuite/btcd/chaincfg/chainhash
$ go get -d github.com/btcsuite/btcd/chaincfg/chainhash/v2@latest
```

## GPG Verification Key
Expand Down
2 changes: 1 addition & 1 deletion chaincfg/chainhash/go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module github.com/btcsuite/btcd/chaincfg/chainhash
module github.com/btcsuite/btcd/chaincfg/chainhash/v2

go 1.17

0 comments on commit 39b1193

Please sign in to comment.