btcsuite / btcd

An alternative full node bitcoin implementation written in Go (golang)
https://github.com/btcsuite/btcd/blob/master/README.md
ISC License
6.1k stars 2.31k forks source link

btcutil refactoring #2096

Closed mhitcher closed 3 months ago

mhitcher commented 5 months ago

go run main.go # github.com/btcsuite/btcwallet/wallet/txrules ../../../../go/pkg/mod/github.com/btcsuite/btcwall et/wallet/txrules@v1.2.0/rules.go:30:32: cannot us e relayFeePerKb (variable of type "github.com/btcsuite/btcd/btcutil".Amount) as "github.com/btcsuite/btcutil".Amount value in argument to mempool.IsDust

Roasbeef commented 5 months ago

What does your local go.mod look like?

yemmyharry commented 3 months ago

The error being encountered is based off the fact that there's a mismatch betweengithub.com/btcsuite/btcd/btcutil and github.com/btcsuite/btcutil. github.com/btcsuite/btcutil is now a sub-package under btcd. There is a likelihood you have them both as dependencies and that can be quite confusing. You can review and potentially update the versions of dependencies specified in the go.mod file to resolve the conflict.

guggero commented 3 months ago

As mentioned above, check all versions of any github.com/btcsuite/btcd dependencies in your go.mod file.