-
Notifications
You must be signed in to change notification settings - Fork 111
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
feat(btc): implement new btc rpc package #3349
base: develop
Are you sure you want to change the base?
Conversation
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
!!!WARNING!!! Be very careful about using Only suppress a single rule (or a specific set of rules) within a section of code, while continuing to scan for other problems. To do this, you can list the rule(s) to be suppressed within the #nosec annotation, e.g: /* #nosec G401 */ or //#nosec G201 G202 G203 Pay extra attention to the way |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #3349 +/- ##
===========================================
- Coverage 62.43% 61.56% -0.88%
===========================================
Files 449 452 +3
Lines 31710 32152 +442
===========================================
- Hits 19799 19795 -4
- Misses 11024 11470 +446
Partials 887 887
|
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.
Generally LGTM.
If you directly copy pasted something from btcd please make sure to notate the original license on the file.
res, err := c.client.Do(req) | ||
if err != nil { | ||
return rawResponse{}, errors.Wrap(err, "unable to send the request") | ||
} |
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.
I think there should be a response code is 200 check here too?
This PR implements Bitcoin client in Go-"native" way
btcsuite
types, but removes all redundant features such as websockets or backward compatibility with old BTC versions that are not used anymorectx
for each callchan
-based design is replaced with a simple "stateless" request-response approachctx
might block execution indefinitely & block other routines (see this and this)zetaclient/chains/bitcoin/rpc
zetaclient/chains/bitcoin/rpc
&interfaces.BTCRPCClient
with the new clientOne of examples
Before
After
Related: