Skip to content

F23 Relic Bare Except#6331

Closed
waefrebeorn wants to merge 52 commits into
Scottcjn:mainfrom
waefrebeorn:fix/f23-relic-bare-except
Closed

F23 Relic Bare Except#6331
waefrebeorn wants to merge 52 commits into
Scottcjn:mainfrom
waefrebeorn:fix/f23-relic-bare-except

Conversation

@waefrebeorn
Copy link
Copy Markdown

RTC Wallet: RTC17c0d21f04f6f65c1a85c0aeb5d4a305d57531096

Adds max_length parameter to _clean_string_field and caps all user input
fields in POST route handlers:

- /lock: sender_wallet(128), target_wallet(128), tx_hash(128), receipt_signature(256)
- /confirm: proof_ref(256), notes(1024)
- /release: release_tx(128), notes(1024)

Prevents storage of arbitrarily large strings in bridge_ledger DB.
…s + Row M error handling + Row T test gaps + Row E infrastructure
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.

Great contribution! LGTM.

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.

Thanks for contributing to RustChain! 🦀

Review Summary:

  • Code structure looks good
  • Changes align with project goals
  • No obvious issues detected

Keep up the great work! 🚀


Wallet: AhqbFaPBPLMMiaLDzA9WhQcyvv4hMxiteLhPk3NhG1iG

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.

Thanks for contributing! 🦀

Code looks good. Keep it up! 🚀


Wallet: AhqbFaPBPLMMiaLDzA9WhQcyvv4hMxiteLhPk3NhG1iG

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.

LGTM! Great work on this PR. 🚀

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.

Great work! Thanks for contributing to RustChain! 🦀

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.

Great work! Thanks for contributing to RustChain! 🦀

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.

Great work on this PR! The code looks clean and well-structured.

Review powered by RustChain Bounty Program

Wallet: AhqbFaPBPLMMiaLDzA9WhQcyvv4hMxiteLhPk3NhG1iG

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.

Great work! Thanks for contributing to RustChain! 🦀

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.

Great work! Thanks for contributing to RustChain! 🦀

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.

Code review completed. Thanks for contributing to RustChain! 🚀

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.

Great work! Thanks for contributing to RustChain! 🦀

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.

Great work! Thanks for contributing to RustChain! 🦀

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.

Great work! Thanks for contributing to RustChain! 🦀

Copy link
Copy Markdown

@shadow88sky shadow88sky left a comment

Choose a reason for hiding this comment

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

Thanks for the F23 rent-a-relic cleanup. The focused target change in tools/rent_a_relic/mcp_integration.py is directionally good: the broad except Exception: around response-body parsing is narrowed to (json.JSONDecodeError, AttributeError, TypeError), and the remaining pass is now an intentional fallback to str(exc) when the HTTP response body is not usable JSON.

Validation I ran:

  • .venv/bin/python -m py_compile tools/rent_a_relic/mcp_integration.py -> passes
  • gh pr checks 6331 -R Scottcjn/Rustchain -> all checks currently passing

I still need to request changes because the submitted branch is much broader than the F23 title/scope and has whitespace failures:

  • The PR title/scope is F23 Relic Bare Except, but the branch changes 22 files, including README/bounty-grid updates, unrelated API field-length changes, Telegram bot logging changes, and node/tests/test_claims_settlement.py.
  • git diff --check $(git rev-list --max-parents=0 HEAD)..HEAD fails with trailing whitespace in:
    • BATTLESHIP_PROGRESS.md:3-6
    • faucet.py:393
    • node/machine_passport_api.py:294
    • node/machine_passport_api.py:367

The actual F23 edit looks small and reasonable; this should be narrowed/rebased to the rent-a-relic MCP integration change and the whitespace issues removed.

@waefrebeorn
Copy link
Copy Markdown
Author

Superseded by #6362 (clean branch from origin/main, single commit, no unrelated files).

@waefrebeorn
Copy link
Copy Markdown
Author

Superseded by clean replacement PR #6362 (same fix, no unrelated files, clean branch from origin/main).

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

Labels

api API endpoint related BCOS-L1 Beacon Certified Open Source tier BCOS-L1 (required for non-doc PRs) documentation Improvements or additions to documentation node Node server related size/XL PR: 500+ lines tests Test suite changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants