waddrmgr: properly convert imported addresses
This commit is contained in:
parent
6dfc793ad3
commit
1b19a78b48
1 changed files with 3 additions and 0 deletions
|
@ -363,6 +363,9 @@ func newManagedAddressWithoutPrivKey(m *Manager, account uint32, pubKey *btcec.P
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
case adtImport:
|
||||||
|
// TODO(roasbeef): truly proper?
|
||||||
|
fallthrough
|
||||||
case adtChain:
|
case adtChain:
|
||||||
address, err = btcutil.NewAddressPubKeyHash(pubKeyHash, m.chainParams)
|
address, err = btcutil.NewAddressPubKeyHash(pubKeyHash, m.chainParams)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in a new issue