Update for recent GetTxOut argument change.
This commit is contained in:
parent
3daafd5617
commit
c4bc5220bc
1 changed files with 2 additions and 2 deletions
4
chain.go
4
chain.go
|
@ -476,7 +476,7 @@ func (r FutureGetTxOutResult) Receive() (*btcjson.GetTxOutResult, error) {
|
|||
// the returned instance.
|
||||
//
|
||||
// See GetTxOut for the blocking version and more details.
|
||||
func (c *Client) GetTxOutAsync(txHash *wire.ShaHash, index int, mempool bool) FutureGetTxOutResult {
|
||||
func (c *Client) GetTxOutAsync(txHash *wire.ShaHash, index uint32, mempool bool) FutureGetTxOutResult {
|
||||
hash := ""
|
||||
if txHash != nil {
|
||||
hash = txHash.String()
|
||||
|
@ -488,6 +488,6 @@ func (c *Client) GetTxOutAsync(txHash *wire.ShaHash, index int, mempool bool) Fu
|
|||
|
||||
// GetTxOut returns the transaction output info if it's unspent and
|
||||
// nil, otherwise.
|
||||
func (c *Client) GetTxOut(txHash *wire.ShaHash, index int, mempool bool) (*btcjson.GetTxOutResult, error) {
|
||||
func (c *Client) GetTxOut(txHash *wire.ShaHash, index uint32, mempool bool) (*btcjson.GetTxOutResult, error) {
|
||||
return c.GetTxOutAsync(txHash, index, mempool).Receive()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue