Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
run: echo "RUSTFLAGS=-C linker=rust-lld" >> "$GITHUB_ENV"
- name: Build the workspace
shell: bash # Default on Winblows is powershell
run: cargo check --workspace --verbose --color always
run: cargo check --workspace --features lightning/electrum --verbose --color always

linting:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion ci/check-lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -114,4 +114,4 @@ CLIPPY() {
-A clippy::uninlined-format-args
}

CLIPPY
CLIPPY "--features lightning/electrum"
5 changes: 1 addition & 4 deletions lightning-invoice/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,7 @@ serde = { version = "1.0", optional = true, default-features = false, features =
bitcoin = { version = "0.32.2", default-features = false, features = ["secp-recovery"] }

# RGB and related
rgb-lib = { version = "=0.3.0-beta.7", features = [
"electrum",
"esplora",
] }
rgb-lib = { version = "=0.3.0-beta.7", default-features = false }

[dev-dependencies]
serde_json = { version = "1"}
Expand Down
8 changes: 4 additions & 4 deletions lightning/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ std = []

dnssec = ["dnssec-prover/validation"]

electrum = ["rgb-lib/electrum"]
esplora = ["rgb-lib/esplora"]

# Generates low-r bitcoin signatures, which saves 1 byte in 50% of the cases
grind_signatures = []

Expand All @@ -53,10 +56,7 @@ inventory = { version = "0.3", optional = true }

# RGB and related
futures = "0.3"
rgb-lib = { version = "=0.3.0-beta.7", features = [
"electrum",
"esplora",
] }
rgb-lib = { version = "=0.3.0-beta.7", default-features = false }
serde = { version = "^1.0", features = [
"derive",
] }
Expand Down
5 changes: 5 additions & 0 deletions lightning/src/rgb_utils/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
//! A module to provide RGB functionality

// this module uses the online APIs of rgb-lib, which are only available if rgb-lib has been built
// with support for at least one indexer protocol
#[cfg(not(any(feature = "electrum", feature = "esplora")))]
compile_error!("at least one of the `electrum` and `esplora` features needs to be enabled");

use crate::ln::chan_utils::{
get_countersigner_payment_script, BuiltCommitmentTransaction, ClosingTransaction,
CommitmentTransaction, HTLCOutputInCommitment,
Expand Down
Loading