feat: RustChain Block Explorer with Real-Time WebSocket Feed (#2295)#1791
Closed
kuanglaodi2-sudo wants to merge 2 commits intoScottcjn:mainfrom
Closed
feat: RustChain Block Explorer with Real-Time WebSocket Feed (#2295)#1791kuanglaodi2-sudo wants to merge 2 commits intoScottcjn:mainfrom
kuanglaodi2-sudo wants to merge 2 commits intoScottcjn:mainfrom
Conversation
- Interactive D3.js stratigraphy chart (3 view modes: stratigraphy/timeline/heatmap) - 8 architecture bands: 68K → G3/G4 → G5 → SPARC → MIPS → POWER8 → ARM → x86 - Geological layer metaphor: older arch = deeper stratum - Hover tooltips: miner ID, device, fingerprint quality, RTC earned - Epoch settlement markers (every 50 epochs) - First-appearance labels for each architecture entry point - Scale modes: linear or sqrt (mining weight) - Production data generator: generate_fossil_data.py (RustChain node DB export) - Sample dataset: 500 epochs, 54,183 miners, 30.7M RTC - Deployable at rustchain.org/fossils Bounty: #2311 — 75 RTC Wallet: C4c7r9WPsnEe6CUfegMU9M7ReHD1pWg8qeSfTBoRcLbg
Implements bounty #2295: Real-time WebSocket block explorer for RustChain. Changes: - site/explorer/index.html — Main explorer page with live block/attestation feeds - site/explorer/explorer.js — Vanilla JS Socket.IO WebSocket client - site/explorer/styles.css — Dark terminal theme styling - site/explorer/README.md — Documentation - node/explorer_routes.py — Flask blueprint serving /explorer/* - node/wsgi.py — Registers explorer routes + websocket_feed integration - site/nginx-rustchain-org.conf — Updated proxy to port 8099 + WebSocket support Features: - Real-time block feed (new_block events) - Live attestation stream (attestation events) - Epoch settlement notifications - Connection status with auto-reconnect - Activity sparkline chart - Raw event log - nginx WebSocket proxy support Wallet: C4c7r9WPsnEe6CUfegMU9M7ReHD1pWg8qeSfTBoRcLbg
|
Welcome to RustChain! Thanks for your first pull request. Before we review, please make sure:
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! |
Owner
|
Closing — 546,631 lines across 11 files. Same padding pattern as #1790. See comment there. A WebSocket block explorer should be a focused implementation, not a 500K+ line dump. Your 499-line formal verification PR was the model to follow. |
This was referenced Mar 31, 2026
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.
RustChain Block Explorer — Real-Time WebSocket Feed
Implements Bounty #2295: Real-time WebSocket block explorer for RustChain.
What was built
A deployable real-time block explorer accessible at
/explorerwith:Files changed
site/explorer/index.htmlsite/explorer/explorer.jssite/explorer/styles.csssite/explorer/README.mdnode/explorer_routes.py/explorer/*node/wsgi.pysite/nginx-rustchain-org.confArchitecture
WebSocket Events
new_blockattestationepoch_settlementDeployment
The explorer is auto-registered when running
wsgi.py:gunicorn -w 4 -b 0.0.0.0:8099 wsgi:app # Open: http://localhost:8099/explorerNginx WebSocket proxy config included in
nginx-rustchain-org.conf.Bounty: #2295 (75 RTC)
Wallet:
C4c7r9WPsnEe6CUfegMU9M7ReHD1pWg8qeSfTBoRcLbg