Correct FutureGetBestBlockResult.Receive type.
Also correct the error message while here.
This commit is contained in:
parent
e2ba50eee1
commit
e230b54427
1 changed files with 2 additions and 2 deletions
|
@ -137,10 +137,10 @@ func (r FutureGetBestBlockResult) Receive() (*btcwire.ShaHash, int32, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Ensure the returned data is the expected type.
|
// Ensure the returned data is the expected type.
|
||||||
result, ok := reply.(btcws.GetBestBlockResult)
|
result, ok := reply.(*btcws.GetBestBlockResult)
|
||||||
if !ok {
|
if !ok {
|
||||||
return nil, 0, fmt.Errorf("unexpected response type for "+
|
return nil, 0, fmt.Errorf("unexpected response type for "+
|
||||||
"listaddresstransactions: %T\n", reply)
|
"getbestblock: %T\n", reply)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Convert hash string.
|
// Convert hash string.
|
||||||
|
|
Loading…
Reference in a new issue