Update btcnet path import paths to new location.

This commit is contained in:
Dave Collins 2015-02-05 23:36:19 -06:00
parent 87ef953a63
commit 7d4e1e17f0

View File

@ -8,9 +8,9 @@ import (
"encoding/json"
"strconv"
"github.com/btcsuite/btcd/chaincfg"
"github.com/btcsuite/btcd/wire"
"github.com/btcsuite/btcjson"
"github.com/btcsuite/btcnet"
"github.com/btcsuite/btcutil"
"github.com/btcsuite/btcws"
)
@ -879,7 +879,7 @@ func (r FutureAddMultisigAddressResult) Receive() (btcutil.Address, error) {
return nil, err
}
return btcutil.DecodeAddress(addr, &btcnet.MainNetParams)
return btcutil.DecodeAddress(addr, &chaincfg.MainNetParams)
}
// AddMultisigAddressAsync returns an instance of a type that can be used to get
@ -1010,7 +1010,7 @@ func (r FutureGetNewAddressResult) Receive() (btcutil.Address, error) {
return nil, err
}
return btcutil.DecodeAddress(addr, &btcnet.MainNetParams)
return btcutil.DecodeAddress(addr, &chaincfg.MainNetParams)
}
// GetNewAddressAsync returns an instance of a type that can be used to get the
@ -1053,7 +1053,7 @@ func (r FutureGetRawChangeAddressResult) Receive() (btcutil.Address, error) {
return nil, err
}
return btcutil.DecodeAddress(addr, &btcnet.MainNetParams)
return btcutil.DecodeAddress(addr, &chaincfg.MainNetParams)
}
// GetRawChangeAddressAsync returns an instance of a type that can be used to
@ -1097,7 +1097,7 @@ func (r FutureGetAccountAddressResult) Receive() (btcutil.Address, error) {
return nil, err
}
return btcutil.DecodeAddress(addr, &btcnet.MainNetParams)
return btcutil.DecodeAddress(addr, &chaincfg.MainNetParams)
}
// GetAccountAddressAsync returns an instance of a type that can be used to get
@ -1221,7 +1221,8 @@ func (r FutureGetAddressesByAccountResult) Receive() ([]btcutil.Address, error)
addrs := make([]btcutil.Address, 0, len(addrStrings))
for _, addrStr := range addrStrings {
addr, err := btcutil.DecodeAddress(addrStr, &btcnet.MainNetParams)
addr, err := btcutil.DecodeAddress(addrStr,
&chaincfg.MainNetParams)
if err != nil {
return nil, err
}