Repository navigation
Conversation
- Prometheus-compatible metrics exporter for RustChain nodes - Collects metrics: node health, miners, epoch, balances, Hall of Fame, fees - Pre-built Grafana dashboard with 10 panels - Docker Compose setup (exporter + Prometheus + Grafana) - Alert rules for node health, miner status, and balances - Systemd service file for production deployment - Comprehensive README with setup instructions Metrics exposed on :9100/metrics Grafana dashboard auto-refresh every 30s Closes Scottcjn#504
Contributor
There was a problem hiding this comment.
Welcome to RustChain! Thanks for your first pull request.
Before we review, please make sure:
- Your PR has a
BCOS-L1orBCOS-L2label - New code files include an SPDX license header
- You've tested your changes against the live node
Bounty tiers: Micro (1-10 RTC) | Standard (20-50) | Major (75-100) | Critical (100-150)
A maintainer will review your PR soon. Thanks for contributing!
- Use stats object from API instead of iterating categories - Fix epoch_seconds_remaining to handle negative values - All metrics now working correctly
- Was showing 88.44 instead of 0.44 (wrong by 100x) - Now correctly uses (slot % blocks) / blocks for 0-1 range - epoch_seconds_remaining now calculates remaining blocks in current epoch - Matches bounty requirements exactly
Owner
|
Closing — @Joshualover submitted #472 for this bounty ~80 minutes earlier. First complete PR wins. Thanks @ansomeck. |
lustsazeus-lab
pushed a commit
to lustsazeus-lab/Rustchain
that referenced
this pull request
Mar 2, 2026
createkr
pushed a commit
to createkr/Rustchain
that referenced
this pull request
Mar 10, 2026
…tor + Cross-Node Replay harness Add deterministic epoch simulation tooling with reproducible state transitions and cross-node replay verification for RustChain consensus. Components: - src/epoch_determinism_simulator.py: Deterministic PRNG-based simulator with seeded reproducibility, antiquity-weighted block production, epoch finalization, and state hash computation - src/cross_node_replay.py: Cross-node replay harness for recording simulation logs and verifying state convergence across multiple nodes - tests/: Unit and integration tests (33 tests covering RNG, simulation, replay, and determinism verification) - fixtures/: Predefined scenarios (basic, single miner, stress, seed test) - docs/: IMPLEMENTATION.md (design details), RUNBOOK.md (operations guide) - scripts/: run_tests.sh, collect_evidence.py for CI/verification Verification: - All 33 tests pass - Multi-node determinism check: PASS (identical state hashes) - Replay verification: PASS (3 runs produce identical results) - Evidence collected in bounties/issue-474/evidence/
Scottcjn
added a commit
that referenced
this pull request
Mar 10, 2026
…-simulator feat: epoch determinism simulator + cross-node replay harness (#474)
yifan19860831-hub
added a commit
to yifan19860831-hub/Rustchain
that referenced
this pull request
Mar 13, 2026
createkr
pushed a commit
to createkr/Rustchain
that referenced
this pull request
Mar 22, 2026
…tor + Cross-Node Replay harness Add deterministic epoch simulation tooling with reproducible state transitions and cross-node replay verification for RustChain consensus. Components: - src/epoch_determinism_simulator.py: Deterministic PRNG-based simulator with seeded reproducibility, antiquity-weighted block production, epoch finalization, and state hash computation - src/cross_node_replay.py: Cross-node replay harness for recording simulation logs and verifying state convergence across multiple nodes - tests/: Unit and integration tests (33 tests covering RNG, simulation, replay, and determinism verification) - fixtures/: Predefined scenarios (basic, single miner, stress, seed test) - docs/: IMPLEMENTATION.md (design details), RUNBOOK.md (operations guide) - scripts/: run_tests.sh, collect_evidence.py for CI/verification Verification: - All 33 tests pass - Multi-node determinism check: PASS (identical state hashes) - Replay verification: PASS (3 runs produce identical results) - Evidence collected in bounties/issue-474/evidence/
createkr
pushed a commit
to createkr/Rustchain
that referenced
this pull request
Mar 22, 2026
…erminism-simulator feat: epoch determinism simulator + cross-node replay harness (Scottcjn#474)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
This PR adds a complete Prometheus monitoring solution for RustChain nodes.
Features
✅ Prometheus Exporter
✅ Grafana Dashboard
✅ Docker Compose Setup
✅ Alert Rules
✅ Production Ready
Testing
Tested against https://rustchain.org API - all endpoints working correctly.
Bounty
Closes #504 (40 RTC base + 15 RTC bonus = 55 RTC total)
RTC Wallet: RTCf4c3ff0e8443fb3c4206cde61cab
Ready for review! 🚀