Fix build.

This commit is contained in:
Owain G. Ainsworth 2014-03-17 15:24:23 +00:00
parent 03185be3cf
commit e358da905a
2 changed files with 2 additions and 2 deletions

View file

@ -358,7 +358,7 @@ func (a *Account) ImportPrivateKey(pk []byte, compressed bool, bs *wallet.BlockS
if err != nil {
return "", err
}
addrStr := addr.String()
addrStr := addr.EncodeAddress()
// Immediately write wallet to disk.
AcctMgr.ds.ScheduleWalletWrite(a)

View file

@ -182,7 +182,7 @@ func (a *Account) txToPairs(pairs map[string]int64, minconf int) (*CreatedTx, er
// These are nil/zeroed until a change address is needed, and reused
// again in case a change utxo has already been chosen.
var changeAddr *btcutil.AddressPubKeyHash
var changeAddr btcutil.Address
var selectedInputs []*tx.RecvTxOut
hasChange := false