The btcd package is a 3rd party dependency meant to be used only within pkg/bitcoin package which isolates it from the client code. However, pkg/maintainer/spv depends on btcd directly which makes it leak beyond pkg/bitcoin. We should fix that and ensure btcd is not used directly by any other package except pkg/bitcoin.
The
btcd
package is a 3rd party dependency meant to be used only withinpkg/bitcoin
package which isolates it from the client code. However,pkg/maintainer/spv
depends onbtcd
directly which makes it leak beyondpkg/bitcoin
. We should fix that and ensurebtcd
is not used directly by any other package exceptpkg/bitcoin
.