mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-07-05 20:32:31 +00:00
Use btcws.GetBestBlockResult.
This commit is contained in:
parent
384a535f49
commit
1fd5cd2742
@ -1389,10 +1389,9 @@ func handleGetBestBlock(wsc *wsClient, icmd btcjson.Cmd) (interface{}, *btcjson.
|
|||||||
return nil, &btcjson.ErrBestBlockHash
|
return nil, &btcjson.ErrBestBlockHash
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO(jrick): need a btcws type for the result.
|
result := &btcws.GetBestBlockResult{
|
||||||
result := map[string]interface{}{
|
Hash: sha.String(),
|
||||||
"hash": sha.String(),
|
Height: int32(height),
|
||||||
"height": height,
|
|
||||||
}
|
}
|
||||||
return result, nil
|
return result, nil
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user