waddrmgr: properly convert imported addresses

This commit is contained in:
Olaoluwa Osuntokun 2016-05-03 00:25:01 -07:00
parent 6dfc793ad3
commit 1b19a78b48

View file

@ -363,6 +363,9 @@ func newManagedAddressWithoutPrivKey(m *Manager, account uint32, pubKey *btcec.P
if err != nil {
return nil, err
}
case adtImport:
// TODO(roasbeef): truly proper?
fallthrough
case adtChain:
address, err = btcutil.NewAddressPubKeyHash(pubKeyHash, m.chainParams)
if err != nil {