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
48 changes: 42 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 3 additions & 4 deletions payday/examples/on_chain_monitor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,17 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
// contains the event handler
let service = OnChainService::new(aggregate);

let stream = Arc::new(LndPaymentEventStream::new(LndConfig {
let stream = Arc::new(LndPaymentEventStream::new(LndConfig::CertPath {
node_id: "node1".to_string(),
address: "https://localhost:10008".to_string(),
cert_path: "tls.cert".to_string(),
macaroon_file: "admin.macaroon".to_string(),
network: Network::Signet,
}));
let stream2 = Arc::new(LndPaymentEventStream::new(LndConfig {
let stream2 = Arc::new(LndPaymentEventStream::new(LndConfig::RootCert {
node_id: "node2".to_string(),
address: "https://localhost:10009".to_string(),
cert_path: "tls2.cert".to_string(),
macaroon_file: "admin2.macaroon".to_string(),
macaroon: "macaroon".to_string(),
network: Network::Signet,
}));

Expand Down
3 changes: 2 additions & 1 deletion payday_node_lnd/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@ edition = "2021"

[dependencies]
payday_core = { path = "../payday_core" }
fedimint-tonic-lnd = "0.2.0"
fedimint-tonic-lnd = { git = "https://github.com/tompro/tonic_lnd.git" }
async-trait.workspace = true
bitcoin.workspace = true
tokio-stream.workspace = true
cqrs-es.workspace = true
tokio.workspace = true
lightning-invoice.workspace = true
tracing.workspace = true
2 changes: 1 addition & 1 deletion payday_node_lnd/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pub fn to_address(addr: &str, network: Network) -> Result<Address> {
#[async_trait]
impl NodeApi for Lnd {
fn node_id(&self) -> String {
self.config.node_id.to_owned()
self.node_id.to_owned()
}

fn supports_payment_types(&self, payment_type: PaymentType) -> bool {
Expand Down
Loading