Skip to content

Comments

feat(monitoring): add cross-node consistency probe for split-state detection#301

Merged
Scottcjn merged 2 commits intoScottcjn:mainfrom
liu971227-sys:bounty/58-consensus-probe
Feb 20, 2026
Merged

feat(monitoring): add cross-node consistency probe for split-state detection#301
Scottcjn merged 2 commits intoScottcjn:mainfrom
liu971227-sys:bounty/58-consensus-probe

Conversation

@liu971227-sys
Copy link
Contributor

Summary

  • add node/consensus_probe.py to compare /health, /epoch, /api/stats, and /api/miners across nodes
  • return machine-readable JSON report and non-zero exit code on divergence
  • add unit tests for divergence detection and snapshot collection
  • document usage in monitoring/README.md

Why

This is a hardening follow-up for bounty #58 (cross-node consensus attacks): operators need an automated probe that detects split-state/replication divergence before clients trust inconsistent node reads.

Validation

  • python -m py_compile node/consensus_probe.py
  • python -m pytest tests/test_consensus_probe.py -q

Related bounty issue:

@liu971227-sys
Copy link
Contributor Author

Review Tier Label Gate will require a BCOS tier label on this non-doc PR.

Given this is operational consensus/replication hardening tooling, BCOS-L1 seems appropriate.

Could a maintainer add BCOS-L1 (or bcos:l1) and re-run checks?

@Scottcjn Scottcjn merged commit fdebe37 into Scottcjn:main Feb 20, 2026
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants