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.
|
// the returned instance.
|
||||||
//
|
//
|
||||||
// See GetTxOut for the blocking version and more details.
|
// 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 := ""
|
hash := ""
|
||||||
if txHash != nil {
|
if txHash != nil {
|
||||||
hash = txHash.String()
|
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
|
// GetTxOut returns the transaction output info if it's unspent and
|
||||||
// nil, otherwise.
|
// 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()
|
return c.GetTxOutAsync(txHash, index, mempool).Receive()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue