To get the current Blockheight, you can use the REQUEST_CURRENT_TICK_INFO
request.
To query the Tick Info, send a RequestResponseHeader
Packet with the type set to 27.
RESPOND_CURRENT_TICK_INFO
you wil get the following response:
typedef struct
{
unsigned short tickDuration;
unsigned short epoch;
unsigned int tick;
unsigned short numberOfAlignedVotes;
unsigned short numberOfMisalignedVotes;
} CurrentTickInfo;
All information in the response is related to the nodes status:
[!NOTE] It makes sense to keep track of the Tick and save it in your application. If you get a response from a node with a lower Tick, ignore that packet. The peer seems to be not up to date.