-
Notifications
You must be signed in to change notification settings - Fork 148
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
Depend on the new bitcoind-json-rpc group of crates #694
Depend on the new bitcoind-json-rpc group of crates #694
Conversation
8b3b286
to
0e64ce7
Compare
CI fails look unrelated to this PR, will come back to them. |
CI should be fixed in #697 |
concept ACK. This is really shaping up. A few comments:
|
Thanks man, appreciate you taking the time to look at it.
I'll have a dig.
I'll sort it, cheers.
Can do, I was toying up that idea vs using an inherent
I was thinking of just adding more functions to the clients as we needed them, the initial client was intended to only be really useful to prove the shape of the returned json, so I was only going to add support for optional args if they effected the returned data (like the verbosity flag to |
The reason is that to get hmmm, I tried removing the |
I played with adding an Example usage: fn get_vout(cl: &Client, txid: Txid, value: Amount, spk: ScriptBuf) -> (OutPoint, TxOut) {
let model = cl.get_transaction(txid)
.expect("rpc call failed")
.into_model()
.expect("conversion to model type failed");
let tx = model.tx; And over in |
I think we could have a giant
No, I think you're right. No need for a trait. |
0e64ce7
to
aab9e32
Compare
Needs #697 |
aab9e32
to
8fb2938
Compare
If we merge #682 first I don't have to fix pinning on this PR. |
Yeah, I'd like to do #682 first because it makes other testing-related changes easier to follow. |
feddf4e
to
d9d2e05
Compare
As I suspected, breaks MSRV build. Needs the lockfiles manually fixing after pinning ... definitely one of the not-so-awesome aspects of Rust development, whinge whinge whinge. |
d9d2e05
to
61c7448
Compare
Alright, that wasn't so hard. The fix was to exclude the |
61c7448
to
902074b
Compare
Note, the minimal/recent lockfiles are the same :( |
If we remove Furthermore, even if I did could jury-rig access to the crate, which crate2nix does not like to do, I wouldn't have access to its dependencies because they've all been removed from the lockfiles. |
Ah no worries, I'll fix it up. |
902074b
to
0b67ef3
Compare
0b67ef3
to
0d731d0
Compare
I've rebased on top of #719 to see if that allows me to avoid messing around with dependency versions. Now the minimal/recent lock files are the same. |
These are not correct, go through the `rust.yml` file and fix the list of jobs. Also fix grammar in `Format` job comment.
0d731d0
to
82bba20
Compare
Now includes a patch to add |
f1fc59d
to
d6571b6
Compare
In a0e9028: Actually can you just remove every one of the lint things (except maybe |
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.
Successfully ran local tests on d6571b6.
Reduce the coding convention attributes by doing: - Change the `missing_docs` to warn - Remove all others but `unsafe_code`
The `fuzz` crate should be included in the `CRATES` variable. In `run_task` it is only built (not tested) using `cargo --locked build`.
There is an effort to improve the state of affairs in regards to integration testing extensively against multiple versions of Bitcoin Core. As part of this do: - Depend on the new `rust-bitcoind-json-rpc` crates - Run the integration tests against most versions of Core since 0.17.1 (Note the latest supported version is currently 26.0) This patch effects integration testing only and should hopefully help with our upgrade process because I will personally make sure the new crates are ready and tested during the rust-bitcoin RC cycle. Note that we exclude the integration test crate `bitcoind-tests` from within the manifest, this has the effect of not covering it during all the jobs that use `run_task`. It is explicitly used in the `Integration` job.
d6571b6
to
9cf60c8
Compare
Reduced the coding convention attributes in an additional patch. No changes to the final patch. |
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.
ACK 9cf60c8 successfully ran local tests
BOOM! |
There is an effort to improve the state of affairs in regards to integration testing extensively against multiple versions of Bitcoin Core. As part of this do:
rust-bitcoind-json-rpc
crates(Note the latest supported version is currently 26.0)
ref: https://crates.io/search?q=bitcoind-json-rpc