Use btcws.GetBestBlockResult.
This commit is contained in:
parent
384a535f49
commit
1fd5cd2742
1 changed files with 3 additions and 4 deletions
|
@ -1389,10 +1389,9 @@ func handleGetBestBlock(wsc *wsClient, icmd btcjson.Cmd) (interface{}, *btcjson.
|
|||
return nil, &btcjson.ErrBestBlockHash
|
||||
}
|
||||
|
||||
// TODO(jrick): need a btcws type for the result.
|
||||
result := map[string]interface{}{
|
||||
"hash": sha.String(),
|
||||
"height": height,
|
||||
result := &btcws.GetBestBlockResult{
|
||||
Hash: sha.String(),
|
||||
Height: int32(height),
|
||||
}
|
||||
return result, nil
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue