if [ "$2" = "true" ]; then
add_crate lightning lightning --features=allow_wallclock_use ', features = ["allow_wallclock_use"]'
add_crate "lightning-persister" "lightning_persister"
+ add_crate "lightning-background-processor" "lightning_background_processor"
else
add_crate lightning lightning
drop_crate "lightning-persister"
+ drop_crate "lightning-background-processor"
fi
add_crate "lightning-invoice" "lightning_invoice"
lightning = { git = "https://git.bitcoin.ninja/rust-lightning", rev = "3996eaab6e2eaf5fde9374b51d952c0edef5ea92", features = ["allow_wallclock_use"] }
lightning-persister = { git = "https://git.bitcoin.ninja/rust-lightning", rev = "3996eaab6e2eaf5fde9374b51d952c0edef5ea92" }
lightning-invoice = { git = "https://git.bitcoin.ninja/rust-lightning", rev = "3996eaab6e2eaf5fde9374b51d952c0edef5ea92" }
+lightning-background-processor = { git = "https://git.bitcoin.ninja/rust-lightning", rev = "3996eaab6e2eaf5fde9374b51d952c0edef5ea92" }
[patch.crates-io]
# Rust-Secp256k1 PR 279. Should be dropped once merged.