-
Notifications
You must be signed in to change notification settings - Fork 78
Import payjoin-ffi #701
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
Import payjoin-ffi #701
Conversation
Pull Request Test Coverage Report for Build 15140100106Details
💛 - Coveralls |
Yes, leave it as it is by bringing those licenses inside payjoin-ffi folder
No I really do not think so but that will depend on the downstream target's msrv. Certainly not for Bull Bitcoin nor for Cake nor for Boltz. Perhaps @kirilzh has an idea which MSRV would be required for bindings in his target environment he could share.
Perhaps we could only run it if there were changes to |
|
In order to merge this so we can work to get it to align with the current tip, we could also merge it without adding it to the root workspace, allowing it to live in its own independent workspace and then follow up with the fixes you propose here. |
IIRC believe we do some duplicate builds in our generate scripts. For reference this is the BDK ffi generate scripts. |
48e57a6 to
4df9057
Compare
|
Yes I took a stab at the speedup but struggled here: LtbLightning/payjoin-ffi#89 |
10165e1 to
781730b
Compare
|
I've made the following changes since the first round of review:
|
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.
Concept ACK 781730b. I tested with test_local.sh but have some questions.
I was surprised that the payjoin-ffi tests didn't take a whole lot longer. One concern reviewing was that CI would fail on intermediate commits. You seem to have ordered things so that this would not have happened. ⭐️
I'd like to duplicate 5dfd484 and mark which commit from LtbLightning this came from for continuity. Can you recall how
you produced the single commit so that a reviewer such as myself might try to reproduce a 0-diff commit with that one?
Same for 362dada
This is quite a few changes so I feel a responsibility to do further diligence before smashing that merge button
Brought over as-is from https://github.com/LtbLightning/payjoin-ffi at commit d3a2b6f25970e217ab540f701e303746aec279a0. Copied the entire repository into the `payjoin-ffi` directory and removed the `.git` directory. The following author list can be obtained with by running `git shortlog -se` at that commit. Co-authored-by: Armin Sabouri <armins88@gmail.com> Co-authored-by: benalleng <benalleng@gmail.com> Co-authored-by: Bitcoin Zavior <93057399+BitcoinZavior@users.noreply.github.com> Co-authored-by: BitcoinZavior <BitcoinZavior@GMail.Com> Co-authored-by: Brandon Lucas <thebrandonlucas@gmail.com> Co-authored-by: Dan Gould <d@ngould.dev> Co-authored-by: DanGould <d@ngould.dev> Co-authored-by: Kirill Zhukov <zhukov@block.xyz> Co-authored-by: kumulynja <b@kumuly.dev> Co-authored-by: River Kanies <river.kanies@gmail.com> Co-authored-by: spacebear <144076611+spacebear21@users.noreply.github.com> Co-authored-by: spacebear <git@spacebear.dev> Co-authored-by: StaxOLotl <BitcoinStaxOLotl@Proton.Me> Co-authored-by: user <benalleng@gmail.com>
Hopefully I can tamp out the complexity for the macos build as we still are setting up redis and docker independently there. As well hopefully the caching can bring down our build times even more in the future. |
`payjoin::ImplementationError`. Update payjoin-ffi's error wrapper to reflect that move.
The ohttp_relay parameter was changed from a Url to an IntoUrl trait in payjoin#692. Update the payjoin-ffi wrappers to reflect this.
Enforce the same formatting rules as the rest of rust-payjoin. This was done by removing the custom `rust-toolchain.toml` and `rustfmt.toml` then applying the formatting with `cargo fmt`.
Run rust test and lint checks in the main rust workflow. The python checks are added as a separate workflow, which only runs if python files were touched.
It was removed from rust-payjoin in payjoin#698.
781730b to
67a174d
Compare
The latest push just updates those two commit messages to explain how they were produced. |
Ah I was wondering about that, the other python build/test jobs complete in 7m which isn't too bad but the macOS one takes close to 20min. |
|
If I remember github CI only gives you a crappy mac machine for free. If it's a productivity boost from a macXL runner (or so I think it's called) we can pay for that |
DanGould
left a comment
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 781730b
Built and diffed both of the previously mentioned commits, bringing over ffi and formatting, on top of their parents and found no differences between what I produced by following instructions and the commits in this branch.
Huge moment!
This PR imports payjoin-ffi, more-or-less as-is, from https://github.com/LtbLightning/payjoin-ffi.
The accompanying commits fix various compilation and CI issues.
Some remaining issues to consider: