Repository navigation
Parse the raw rpc responses with python's json, release the gil on requests, and update monero-cpp - #160
Merged
everoddandeven merged 7 commits intoNov 24, 2026
Conversation
…son and send them without the gil Co-authored-by: mycomputercrashsalot <256064325+mycomputercrashsalot@users.noreply.github.com>
Not up to standards ⛔🔴 Issues
|
| Category | Results |
|---|---|
| ErrorProne | 1 high |
🟢 Metrics 34 complexity · 2 duplication
Metric Results Complexity 34 Duplication 2
🟢 Coverage 94.09% diff coverage · -0.02% coverage variation
Metric Results Coverage variation ✅ -0.02% coverage variation (-1.00%) Diff coverage ✅ 94.09% diff coverage Coverage variation details
Coverable lines Covered lines Coverage Common ancestor commit (f5f6bc4) 18075 16813 93.02% Head commit (ff810c6) 18245 (+170) 16968 (+155) 93.00% (-0.02%) Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch:
<coverage of head commit> - <coverage of common ancestor commit>Diff coverage details
Coverable lines Covered lines Diff coverage Pull request (#160) 254 239 94.09% Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified:
<covered lines added or modified>/<coverable lines added or modified> * 100%
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
everoddandeven
force-pushed
the
bindings/raw-rpc-responses
branch
from
November 23, 2026 22:50
82c3f8e to
2b51510
Compare
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.
Updates monero-cpp to master and catches up with its changes:
send_json_requestandsend_path_requestnow get the raw response body frominvoke_post()and parse it with python's json, so empty objects, arrays and strings are kept apart, null isNone, and integers keep their exact value (amounts over INT_MAX used to come back as floats). Error responses raise as before, with the same code and message as monero-cpp, and malformed json raisesMoneroError("Invalid JSON").MoneroOutput.is_locked, from monero-cpp'smonero_output::is_locked()is_closed()of the rpc wallet works now, so the test workaround is gonehistois now checked in the tx pool stats round tripUnit tests for the raw requests run on a new
FakeRawRpcServer: types, params, error responses, invalid json, timeouts, and concurrent requests.The json parsing approach comes from #154 by @mycomputercrashsalot