Repository navigation
fix: read the consensus protocol version from the committed block header - #73
Conversation
After a protocol upgrade activates, every Platform node turned warn with "DAPI epoch and consensus protocol disagree" and the network page kept showing the old protocol number. The probe took the consensus side from Tenderdash /status node_info.protocol_version.app, which Tenderdash sets when it starts and does not refresh, while a protocol upgrade activates at an epoch boundary without a restart. Seen on devnet-palmatum on 2026-11-20: protocol 15 activated at Platform height 509; block headers, consensus_params and abci_info all said 15, and /status kept saying 14 on all 13 validators. - agent/probe.py: protocolApp is the app version in the latest block header, for every role with a Tenderdash RPC. node_info remains the fallback when the block cannot be read. Validators reuse the same block read for proposer and commit, so they make no extra request. - agent/test_probe.py: regression test with the Palmatum values. Prepared by Claude (infraclaw). Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Problem
After a protocol upgrade activates, every Platform node turns
warnwith "DAPI epoch and consensus protocol disagree" and the network page keeps showing the old protocol number.The probe takes the consensus side from Tenderdash
/status→node_info.protocol_version.app. Tenderdash sets that field when it starts and does not refresh it. A protocol upgrade activates at an epoch boundary without a restart, so the field keeps the old number until the next restart.Seen on
devnet-palmatumon 2026-11-20: protocol 15 activated at Platform height 509 (14:04:52 UTC). Read onvalidators-002:/statusnode_info.protocol_version.app(Tenderdash started 12:31 UTC)/blockheader.version.app, heights 509 and later/consensus_paramsversion.app_version/abci_infoapp_versiongetEpochsInfo, epoch 4All 13 validators carried the warning.
server/incidents.jsuses the same field for itsprotocolproof.Change
agent/probe.py:protocolAppis the app version in the latest block header, for every role with a Tenderdash RPC.node_inforemains the fallback when the block cannot be read. Validators reuse the same block read for proposer and commit, so they make no extra request; other roles with an RPC make one more.agent/test_probe.py: regression test with the Palmatum values. It fails onmaster(14 != 15) and passes here.No change to
shared/evaluate.js, the incident proof or the frontend: they keep readingprotocolApp. The mainnet observer does not report this field.Checked
agent/test_probe.py: 16 of 16.validators-002the way the collector runs it (sudo -n python3 - validator <ip>):protocolApp15, DAPI epoch protocol 15, no errors, 1.1 s.Not checked: a Tenderdash 1.x node. The header field is the same there as far as I know, and the fallback keeps today's value if it is missing.
Prepared by Claude (infraclaw).
🤖 Generated with Claude Code
Summary by CodeRabbit