Check whether a Monero daemon enforces a specific protocol version
A feature test should distinguish the daemon's installed software release from the consensus rules it currently enforces. Query the protocol version explicitly.
Request the version relevant to the fixture
This test asks about protocol version 16. Record the network and chain height on the same daemon at observation time. An omitted version can change the meaning of the query to the next fork. POST this example to /json_rpc on monerod.
{
"jsonrpc": "2.0",
"id": "guide",
"method": "hard_fork_info",
"params": {
"version": 16
}
}
Interpret the activation record
enabled reports whether the requested rules are enforced. earliest_height is an activation bound rather than a wall-clock deadline. Preserve the entire response when comparing a staging network with mainnet because their schedules and heights can differ even when the daemon binaries match.