Skip to content

Commit

Permalink
searchrawtransactions: fix vinextra (prevOut) arg clobbering any foll…
Browse files Browse the repository at this point in the history
…owing args
  • Loading branch information
chappjc committed Sep 8, 2017
1 parent abc326a commit c25ea19
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions rawtransactions.go
Original file line number Diff line number Diff line change
Expand Up @@ -778,8 +778,9 @@ func (c *Client) SearchRawTransactionsAsync(address dcrutil.Address, skip,

addr := address.EncodeAddress()
verbose := dcrjson.Int(0)
prevOut := dcrjson.Int(0)
cmd := dcrjson.NewSearchRawTransactionsCmd(addr, verbose, &skip, &count,
nil, &reverse, &filterAddrs)
prevOut, &reverse, &filterAddrs)
return c.sendCmd(cmd)
}

Expand Down Expand Up @@ -831,7 +832,7 @@ func (c *Client) SearchRawTransactionsVerboseAsync(address dcrutil.Address, skip

addr := address.EncodeAddress()
verbose := dcrjson.Int(1)
var prevOut *int
prevOut := dcrjson.Int(0)
if includePrevOut {
prevOut = dcrjson.Int(1)
}
Expand Down

0 comments on commit c25ea19

Please sign in to comment.