ElementsD
Utility to run a liquidregtest elementsd process, useful in integration testing environment.
use RpcApi;
let exe = exe_path.expect;
let elementsd = new.unwrap;
let info = elementsd
.client
.
.unwrap;
assert_eq!;
Validate pegin
You can also start elementsd with validate pegin capability by connecting an instance of bitcoind
.
See test test_elementsd_with_validatepegin
See the similar BitcoinD for details
Nix
For determinisim, in nix you cannot hit the internet within the build.rs
. Moreover, some downstream crates cannot remove the auto-download feature from their dev-deps. In this case you can set the ELEMENTSD_SKIP_DOWNLOAD
env var and provide the elementsd
executable in the PATH
(or skip the test execution).
Doc
To build docs:
RUSTDOCFLAGS="--cfg docsrs"
MSRV
- 1.57.0 with one of the auto download features
- 1.56.1 without features
MSRV 1.56.1 may require downgrading dependencies. See our
.github/workflows/test.yml
file for a complete list.