-
Notifications
You must be signed in to change notification settings - Fork 699
refactor: BitcoinRegtestController
RPC roll out (STEP 2)
#6388
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: BitcoinRegtestController
RPC roll out (STEP 2)
#6388
Conversation
dbc2e08
to
f5ee60f
Compare
f5ee60f
to
73b67cc
Compare
BitcoinRegtestController
RPC roll out (step1)BitcoinRegtestController
RPC roll out (STEP 2)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bitcoin RPCs should never, ever panic. More generally, networking code should never, ever panic. Not only are network-related errors often transient (e.g. bad connection), but also it makes runtime panics weaponizable to DoS the node.
As explained here #6388 (comment), I preserved the same behaviour as the previous code (scoped with |
I've merged PR #6394 (Step1), so this PR is effectively ready. To summarize the open points:
|
bc9adb3
Codecov Report❌ Patch coverage is
❌ Your project status has failed because the head coverage (74.48%) is below the target coverage (80.00%). You can increase the head coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## develop #6388 +/- ##
===========================================
+ Coverage 71.24% 74.48% +3.24%
===========================================
Files 556 556
Lines 351138 351117 -21
===========================================
+ Hits 250171 261544 +11373
+ Misses 100967 89573 -11394
... and 354 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Description
This is the second PR in the roll-out of the new Bitcoin RPC client within
BitcoinRegtestController
.In this PR, the following methods (mainly used for testing) have been migrated to use the new client:
BitcoinRegtestController::invalidate_block(..)
BitcoinRegtestController::get_block_hash(..)
BitcoinRegtestController::get_raw_transaction(..)
Notes
This need #6394 to get merged first, to have cargo hack check and integration tests properly working#6394 has been merged
Applicable issues
BitcoinRegtestController
#6387Additional info (benefits, drawbacks, caveats)
Checklist
docs/rpc/openapi.yaml
andrpc-endpoints.md
for v2 endpoints,event-dispatcher.md
for new events)clarity-benchmarking
repobitcoin-tests.yml