Skip to content

Incompatibility with btcsuite #4

@NothNoth

Description

@NothNoth

Hi,

It seems that go-electrum/wallet does not build anymore with up to date btcsuite package:

go get
# github.com/d4l3k/go-electrum/wallet
../github.com/d4l3k/go-electrum/wallet/wallet.go:43:17: cannot use maddr.Address() (type "github.com/btcsuite/btcwallet/vendor/github.com/btcsuite/btcutil".Address) as type "github.com/btcsuite/btcutil".Address in append:
    "github.com/btcsuite/btcwallet/vendor/github.com/btcsuite/btcutil".Address does not implement "github.com/btcsuite/btcutil".Address (wrong type for IsForNet method)
        have IsForNet(*"github.com/btcsuite/btcwallet/vendor/github.com/btcsuite/btcd/chaincfg".Params) bool
        want IsForNet(*"github.com/btcsuite/btcd/chaincfg".Params) bool
../github.com/d4l3k/go-electrum/wallet/wallet.go:80:43: cannot use amounts (type map[string]"github.com/btcsuite/btcutil".Amount) as type []*"github.com/btcsuite/btcwallet/vendor/github.com/btcsuite/btcd/wire".TxOut in argument to w.wallet.CreateSimpleTx
../github.com/d4l3k/go-electrum/wallet/wallet.go:88:51: createdTx.MsgTx undefined (type *txauthor.AuthoredTx has no field or method MsgTx)
../github.com/d4l3k/go-electrum/wallet/wallet.go:124:12: cannot use addr.Address() (type "github.com/btcsuite/btcwallet/vendor/github.com/btcsuite/btcutil".Address) as type "github.com/btcsuite/btcutil".Address in assignment:
    "github.com/btcsuite/btcwallet/vendor/github.com/btcsuite/btcutil".Address does not implement "github.com/btcsuite/btcutil".Address (wrong type for IsForNet method)
        have IsForNet(*"github.com/btcsuite/btcwallet/vendor/github.com/btcsuite/btcd/chaincfg".Params) bool
        want IsForNet(*"github.com/btcsuite/btcd/chaincfg".Params) bool
../github.com/d4l3k/go-electrum/wallet/wallet.go:140:15: cannot assign 1 values to 2 variables
../github.com/d4l3k/go-electrum/wallet/wallet.go:179:32: too many arguments in call to wallet.Open
    have (nil, *"github.com/btcsuite/btcwallet/vendor/github.com/btcsuite/btcd/chaincfg".Params, walletdb.DB, walletdb.Namespace, walletdb.Namespace, *waddrmgr.OpenCallbacks)
    want (walletdb.DB, []byte, *waddrmgr.OpenCallbacks, *"github.com/btcsuite/btcwallet/vendor/github.com/btcsuite/btcd/chaincfg".Params)`llet/vendor/github.com/btcsuite/btcd/chaincfg".Params)`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions