Skip to content

fix: add --verbose and --show-payload flags to dry-run mode (#3981, #3975)#4021

Open
haoyousun60-create wants to merge 1 commit intoScottcjn:mainfrom
haoyousun60-create:fix/dry-run-verbose-flag
Open

fix: add --verbose and --show-payload flags to dry-run mode (#3981, #3975)#4021
haoyousun60-create wants to merge 1 commit intoScottcjn:mainfrom
haoyousun60-create:fix/dry-run-verbose-flag

Conversation

@haoyousun60-create
Copy link
Copy Markdown
Contributor

Summary

Fixes #3981 and #3975: Add missing --verbose and --show-payload CLI flags to the Linux miner's dry-run mode.

Changes

  1. Add --verbose flag to argparse - enables verbose output showing API endpoints, request headers, TLS config, and response headers
  2. Add --show-payload flag to argparse - shows full response body in dry-run mode
  3. Pass both flags to LocalMiner constructor
  4. Verbose health probe - shows GET URL, request headers, response headers, and traceback on failure

Related

Fixes Scottcjn#3981: rustchain-miner.py --dry-run --verbose flag not recognized
Fixes Scottcjn#3975: Linux miner rejects documented --show-payload dry-run flag

Changes:
- Add --verbose flag to argparse with help text
- Add --show-payload flag to argparse with help text
- Pass both flags to LocalMiner constructor
- Show API endpoint, headers, and TLS config in verbose mode
- Show response headers and body with --show-payload
- Print traceback in verbose mode on health probe failure
@github-actions github-actions Bot added BCOS-L1 Beacon Certified Open Source tier BCOS-L1 (required for non-doc PRs) size/S PR: 11-50 lines labels May 6, 2026
Copy link
Copy Markdown
Contributor

@jaxint jaxint left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Review: #4021 — Add --verbose and --show-payload flags

Summary

Author adds verbose output and payload display flags to the dry-run command.

Observations

  1. Adds --verbose flag to show intermediate steps
  2. Adds --show-payload to display the transaction payload before signing
  3. Changes are focused and targeted

Assessment

Approve — useful developer experience improvements.


Reviewed by: @jaxint
Wallet: AhqbFaPBPLMMiaLDzA9WhQcyvv4hMxiteLhPk3NhG1iG

Copy link
Copy Markdown

@rockytian-top rockytian-top left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Review: #4021 — fix: add --verbose and --show-payload flags to dry-run mode

Approve — solid changes.

Left a few non-blocking comments on the PR. The approach is correct and the implementation looks sound.

Welcome contribution to the project!

Copy link
Copy Markdown

@fengqiankun6-sudo fengqiankun6-sudo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Review: #4021 — --verbose and --show-payload flags

Summary: Adds dry-run verbosity options to the Linux miner for better debugging.

Changes:

  • --verbose flag: shows API endpoints, headers, response details during dry-run
  • --show-payload flag: displays full JSON response body
  • Proper integration into LocalMiner class initialization

Assessment:LGTM

  • Flags are well-implemented with clear help text
  • Verbose output includes URL, headers, and response headers — useful for debugging
  • show_payload dumps full JSON with pretty-printing — good DX improvement
  • No breaking changes to existing behavior
  • Correct use of argparse action=store_true

Risk: Low | Confidence: High

Copy link
Copy Markdown

@fengqiankun6-sudo fengqiankun6-sudo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Review: --verbose and --show-payload flags — Bounty #73

Summary

PR #4021 adds --verbose and --show-payload flags to dry-run mode (#3981, #3975).

Assessment: ✅ APPROVED

Clean UX improvement for miners. Small but useful.

Estimate: 3-5 RTC (Bounty #73 — minor improvement)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

BCOS-L1 Beacon Certified Open Source tier BCOS-L1 (required for non-doc PRs) size/S PR: 11-50 lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] rustchain-miner.py --dry-run --verbose flag not recognized Linux miner rejects documented --show-payload dry-run flag

5 participants