-
Notifications
You must be signed in to change notification settings - Fork 14
Create new v2_to_v2 integration test #85
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
Changes from all commits
d1c9ff7
fab9db6
2f562f5
265ad68
83359b5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ license = "MIT OR Apache-2.0" | |
exclude = ["tests"] | ||
|
||
[features] | ||
_test-utils = ["payjoin-test-utils", "tokio"] | ||
_test-utils = ["payjoin-test-utils", "tokio", "bitcoind"] | ||
_danger-local-https = ["payjoin/_danger-local-https"] | ||
uniffi = ["uniffi/cli", "bitcoin-ffi/default"] | ||
|
||
|
@@ -23,8 +23,10 @@ uniffi = { version = "0.29.1", features = ["build"] } | |
|
||
[dependencies] | ||
base64 = "0.22.1" | ||
bitcoin-ffi = { git = "https://github.com/bitcoindevkit/bitcoin-ffi.git", rev = "6b1d131" } | ||
bitcoind = { version = "0.36.0", features = ["0_21_2"], optional = true } | ||
bitcoin-ffi = { git = "https://github.com/benalleng/bitcoin-ffi.git", rev = "8e3a23b" } | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is there any value in holding off merging this until the upstream PR gets merged? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think that's a @DanGould question, based on the state of review in that PR though it seems likely that the only thing that will change is how errors are built and presented. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. some value in that tracking the rest of the ecosystem lets us merge projects when we get there, but I think we're a long way off and we won't stray too far. I don't think bdk-ffi will depend on payjoin-ffi as an option any time soon, which would be the reason to stay on the same version of bitcoin-ffi afaict |
||
hex = "0.4.3" | ||
lazy_static = "1.5.0" | ||
ohttp = { package = "bitcoin-ohttp", version = "0.6.0" } | ||
payjoin = { version = "0.23.0", features = ["v1", "v2", "io"] } | ||
payjoin-test-utils = { version = "0.0.0", optional = true } | ||
|
@@ -37,7 +39,6 @@ url = "2.5.0" | |
|
||
[dev-dependencies] | ||
bdk = { version = "0.29.0", features = ["all-keys", "use-esplora-ureq", "keys-bip39", "rpc"] } | ||
bitcoind = { version = "0.36.0", features = ["0_21_2"] } | ||
bitcoincore-rpc = "0.19.0" | ||
http = "1" | ||
ohttp-relay = "0.0.8" | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
python-bitcoinlib==0.12.2 | ||
toml==0.10.2 | ||
yapf==0.43.0 | ||
|
||
httpx==0.28.1 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. very pleased we're able to use httpx here instead of exposing rust's reqwest. I'm curious, though not particularly eager, to see if the native http clients for some foreign language can replace fetch_ohttp_keys so we don't have to ship a whole rust TLS stack with our binaries, too. |
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.
It seems to me that
bitcoind
and related helpers (rpc client, sender/receiver wallets) should be provided bypayjoin-test-utils
's TestServices to avoid boilerplate and the additional dependency.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.
Wouldn't I still need a reliable way to access and pass the correct types across the ffi layer to bitcoind?
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.
unless payjoin-test-utils re-exported bitcoind, I think you would need to rely on "bitcoind" as a dependency for a reliable way to access and pass bitcoind types across the ffi layer.
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.
Good point. "payjoin-test-utils re-exporting bitcoind" sounds like a good idea to me, especially since that specific dependency may change in the future.