-
Notifications
You must be signed in to change notification settings - Fork 76
add bitcoind to devshell, and setenv BITCOIND_EXE #514
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
base: master
Are you sure you want to change the base?
Conversation
Pull Request Test Coverage Report for Build 20097061482Details
💛 - Coveralls |
|
BTW another thing I often do for local development, although not really the topic of this PR I thought I'd mention it here, is nest another |
|
If I'm in this ---- integration::batching::receiver_forwards_payment stdout ----
Error: JsonRpc(Transport(SocketError(Os { code: 35, kind: WouldBlock, message: "Resource temporarily unavailable" }))) |
Yes. The inclusion of the bitcoind package on its own should not affect anything, but setting the environment variable should have that effect
No, the
EWOULDBLOCK is really weird to me, not sure why anything would be using nonblocking IO flags for the JSON RPC stuff... can you share and RUST_LOG=debug (bitcoind uses env_logger) output, and a also RUST_BACKTRACE=1 for the error if that's a crash, or if not try and localize it to where it arises? |
|
Here's the requested log with I'm also perplexed by tests failing when I run just the v2 suite in this configuration: It may be unrelated but I figured I should note it regardless |
|
It would be great to revive this and get this in, which would also solve the Github issues when downloading bitcoind from the core releases: |
|
rebased |
This change supplies bitcoind from nixpkgs, and sets `BITCOIND_EXE` to its full path, for more convenient testing. `BITCOIND_SKIP_DOWNLOAD` is also set, although that's only actually required in sandboxed builds.
8bdfe60 to
831e031
Compare
|
@nothingmuch ready for review? |
This change supplies bitcoind from nixpkgs, and sets
BITCOIND_EXEto its full path, for more convenient testing.BITCOIND_SKIP_DOWNLOADis also set, although that's only actually required in sandboxed builds.Note that this decouples the bitcoind version from that set in the feature flags of the bitcoind crate, with the default version from
nixpkgsbeing selected and locked in the flake.lock file. I haven't had any problems with it, and ideally tests should pass with all versions.Also fixes formatting with
nix fmt, which I forgot in the cargo-llvm-cov PR.