Repository navigation
fix(rpc): handle notifications and empty batches - #183
Muneerali199 wants to merge 1 commit into
Conversation
Signed-off-by: Muneerali199 <alimuneerali245@gmail.com>
|
No actionable comments were generated in the recent review. WalkthroughThe RPC handler now treats requests without an ChangesJSON-RPC request handling
Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix · Severity of issue fixed: Medium Suggested labels: Suggested reviewers: Merge Risk:
|
|
@SIDDHANTCOOKIE this is ready for maintainer review. CodeRabbit approved with no actionable findings. GitHub is holding |
Summary
Bring the HTTP JSON-RPC handler in line with JSON-RPC 2.0 notification and batch semantics.
idwithout returning a JSON-RPC response-32600 Invalid Requestobject for an empty batchid: nullFixes #177
Testing
python -m pytest tests/test_rpc.py -q(20 passed)python -m pytest --cov=minichain --cov-report=term-missing -q(237 passed, 81% total coverage)Verified with Python 3.11.15, matching the PR workflow. The commit is DCO signed.
AI Usage
This PR contains AI-assisted code and tests. I used OpenCode (GPT-5.6) to help inspect JSON-RPC edge cases and draft the focused coverage. I reviewed the implementation and ran both the RPC and complete project suites locally.
Summary by CodeRabbit
nullrequest ID continues to receive a response.