Update for recent btcutil.Address API change.
This commit is contained in:
parent
239e13c0a5
commit
3b9b11cb41
2 changed files with 3 additions and 2 deletions
|
@ -531,7 +531,8 @@ func handleCreateRawTransaction(s *rpcServer, cmd btcjson.Cmd) (interface{}, err
|
|||
}
|
||||
|
||||
// Decode the provided address.
|
||||
addr, err := btcutil.DecodeAddr(encodedAddr)
|
||||
addr, err := btcutil.DecodeAddress(encodedAddr,
|
||||
activeNetParams.btcnet)
|
||||
if err != nil {
|
||||
return nil, btcjson.Error{
|
||||
Code: btcjson.ErrInvalidAddressOrKey.Code,
|
||||
|
|
|
@ -1416,7 +1416,7 @@ func handleNotifyNewTXs(wsc *wsClient, icmd btcjson.Cmd) (interface{}, *btcjson.
|
|||
}
|
||||
|
||||
for _, addrStr := range cmd.Addresses {
|
||||
addr, err := btcutil.DecodeAddr(addrStr)
|
||||
addr, err := btcutil.DecodeAddress(addrStr, activeNetParams.btcnet)
|
||||
if err != nil {
|
||||
e := btcjson.Error{
|
||||
Code: btcjson.ErrInvalidAddressOrKey.Code,
|
||||
|
|
Loading…
Add table
Reference in a new issue