mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-06-22 05:56:43 +00:00
Update for recent GetTxOut argument change.
This commit is contained in:
parent
3daafd5617
commit
c4bc5220bc
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…
x
Reference in New Issue
Block a user