feat: add JSON output mode to clawrtc mine (#346)#350
Closed
xunwen-art wants to merge 3 commits intoScottcjn:mainfrom
Closed
feat: add JSON output mode to clawrtc mine (#346)#350xunwen-art wants to merge 3 commits intoScottcjn:mainfrom
xunwen-art wants to merge 3 commits intoScottcjn:mainfrom
Conversation
added 3 commits
February 23, 2026 00:24
- Add clawrtc.py as main CLI entry point - Add setup.py for package installation - Support --version/-v flag showing version 1.5.0 - Add basic subcommands: mine, wallet, node, info Fixes Scottcjn#344
- Add ANSI color codes for log levels (GREEN, YELLOW, RED, CYAN) - Support NO_COLOR environment variable to disable colors - Add --no-color CLI flag - Create helper functions: log_ok, log_warn, log_error, log_info - Color only status prefixes, not entire lines Fixes Scottcjn#345
- Add --json flag for JSONL output format - Create emit() helper function for structured output - Support both human-readable and JSON modes - Add --wallet and --dry-run flags for testing - JSON output includes: event type, timestamp, and event-specific data Fixes Scottcjn#346
Owner
|
Same issue as #348/#349 — standalone wrapper. The bounty (#346) asks for JSON output in the existing miner scripts. See PR #361 by @Pitrat-wav for the correct approach. |
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.
Summary
Implements #346 - Adds --json flag for structured JSONL output
Changes
Output Format (JSONL)
{"event": "startup", "timestamp": "2026-02-22T16:26:36Z", "wallet": "test", ...} {"event": "attestation", "status": "success", "epoch": 75, "slot": 10823} {"event": "fingerprint", "checks_passed": 6, "checks_total": 6}Testing
Use Cases
Claim Bounty
Claiming the 10 RTC bounty for this issue.
cc @Scottcjn