Fix #2288: Correct _signed_content arity in _handle_get_state#2306
Fix #2288: Correct _signed_content arity in _handle_get_state#2306sheerai wants to merge 3 commits into
Conversation
|
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! |
FlintLeng
left a comment
There was a problem hiding this comment.
Code Review
One-line fix. ✅
Assessment
- Correctly passes msg.msg_id and msg.ttl to _signed_content() to match the new signature from PR #2256
- Minimal, focused change (1 addition, 1 deletion)
- Directly fixes #2288
Verification
- The new _signed_content signature requires msg_id and ttl params
- _handle_get_state was the only caller missing these
- Fix is straightforward and low-risk
Recommended merge. ✅
|
Verified Item A rotation logic locally on macOS (M3): Initial Version: 1 | Pub: 73f6162aee... Address: RTCf3e03dba442d0140b78cf9b76068921e1badcd6b |
wuxiaobinsh-gif
left a comment
There was a problem hiding this comment.
PR Review: Fix #2288 — Correct _signed_content arity in _handle_get_state
Verdict: Approve with optional suggestions
Observations
-
Correctness — The arity mismatch fix looks sound.
The change passes msg.msg_id and msg.ttl into _signed_content, which matches the updated signature schema from PR #2256. The fix correctly addresses issue #2288. -
Documentation inconsistency — The inline comment is now outdated.
The comment above still reads Phase A signed-content shape (msg_type:sender_id:payload) but the actual call now passes 5 arguments. Consider updating the comment. -
Minimal change — Good PR hygiene.
Only 1 line changed with a clean +1/-1 diff. Focused fix with no scope creep.
Minor Suggestions
- Update the Phase A comment to reflect the new 5-argument signature
- Consider adding a comment explaining why msg_id and ttl are included in the signature
Overall the fix is correct and ready to merge. Good work by sheerai!
Fixes #2288
Updated _handle_get_state to pass msg.msg_id and msg.ttl into _signed_content to match the new signature schema introduced in PR #2256.
GitHub Username: sheerai
RTC Wallet: RTCf3e03dba442d0140b78cf9b76068921e1badcd6b