Skip to content

Utility to run a regtest lightningd process, useful in integration testing environment.

License

Notifications You must be signed in to change notification settings

RCasatta/lightningd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lightningd

Utility to run a regtest lightningd process, useful in integration testing environment.

let bitcoind_exe = bitcoind::exe_path().expect("bitcoind version feature must be enabled or BITCOIND_EXE env var must be present");
let bitcoind = bitcoind::BitcoinD::new(bitcoind_exe).unwrap();
let lightningd_exe = env::var("LIGHTNINGD_EXE").expect("lightningd path must be specified in LIGHTNINGD_EXE env var");
let lightningd = lightningd::LightningD::new(lightningd_exe, bitcoind).unwrap();

Test

Run test example:

RUST_LOG=debug LIGHTNINGD_EXE=/usr/local/bin/lightningd cargo test --features bitcoind_25_1 -- --nocapture

About

Utility to run a regtest lightningd process, useful in integration testing environment.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages