btcd icon indicating copy to clipboard operation
btcd copied to clipboard

btcutil refactoring

Open mhitcher opened this issue 2 years ago • 1 comments

go run main.go # github.com/btcsuite/btcwallet/wallet/txrules ../../../../go/pkg/mod/github.com/btcsuite/btcwall et/wallet/[email protected]/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

mhitcher avatar Jan 06 '24 17:01 mhitcher

What does your local go.mod look like?

Roasbeef avatar Jan 08 '24 19:01 Roasbeef

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.

yemmyharry avatar Mar 28 '24 00:03 yemmyharry

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

guggero avatar Apr 02 '24 06:04 guggero