Replace custom RPC client with bitcoind-async-client#1063
Conversation
|
Ok, even with the updated lock files this error still occurs, but you should still update the lock files, |
243e3d6 to
0e92472
Compare
Done! |
benalleng
left a comment
There was a problem hiding this comment.
Are these errors happening perrhaps because of the difference in features enabled for the standalone async client?
https://github.com/arminsabouri/bitcoind-async-client/blob/c49d883285c3085f6d1fe36d41e554d1c0f2b752/Cargo.toml#L27-L33
Our error seems to be complaining in at least one case about parsing the version 2 which I assume in this case means http1 vs http2?
ERROR payjoin_directory: Error serving connection: hyper::Error(Parse(VersionH2))
I don't think its the versions themselves as |
I came to the same conclusion. When I remove "http2" feature flag I get past the error above. But run into a new one |
6227781 to
e92b3e2
Compare
Pull Request Test Coverage Report for Build 17681373194Details
💛 - Coveralls |
Adding new methods to our custom rpc client is cumbersome and error prone. Using an off-the-shelf client allows us to just focus on payjoins. Currently I am using a fork of bitcoind-async-client because upstream does not support cookie auth.
`process_psbt` can and will sign for inputs the wallet owns.
e92b3e2 to
4b5ffbc
Compare
Yes. Each commit will go in its own PR. So it may be a slow-ish process |
| [dependencies] | ||
| anyhow = "1.0.99" | ||
| async-trait = "0.1.89" | ||
| bitcoind-async-client = {git = "https://github.com/arminsabouri/bitcoind-async-client", rev = "956ca693e4263c003eaa4fa938d909d24acac5fa"} |
There was a problem hiding this comment.
Guys you can use the 0.5.0 from crates.io: https://crates.io/crates/bitcoind-async-client
There was a problem hiding this comment.
Does this include the changes Armin made to make this work for us? We will need a crates.io release in order to publish payjoin-cli on crates.io that reflects our payjoin-1.0rc.
Adding new methods to our custom rpc client is cumbersome and error prone. Using an off-the-shelf client allows us to just focus on payjoins.
Currently I am using a fork of bitcoind-async-client because upstream does not support cookie auth.
Unfortunately I am encountering a TLS issue on the directory after I imported the new lib. Need to debug further. Possible due to conflicting reqwest versions?
Pull Request Checklist
Please confirm the following before requesting review:
AI
in the body of this PR.
AI disclosure: used a good bit of cursor autocomplete