mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-11-28 16:13:56 +00:00
Use HasHeader
This commit is contained in:
parent
1ae3863e43
commit
61c805bd6b
@ -37,7 +37,7 @@ func HandleGetBlocks(context *rpccontext.Context, _ *router.Router, request appm
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
if !blockInfo.Exists || blockInfo.BlockStatus == externalapi.StatusInvalid {
|
if !blockInfo.HasHeader() {
|
||||||
return &appmessage.GetBlocksResponseMessage{
|
return &appmessage.GetBlocksResponseMessage{
|
||||||
Error: appmessage.RPCErrorf("Could not find lowHash %s", getBlocksRequest.LowHash),
|
Error: appmessage.RPCErrorf("Could not find lowHash %s", getBlocksRequest.LowHash),
|
||||||
}, nil
|
}, nil
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user