Skip to content

Commit

Permalink
f Account for Invoice being renamed to Bolt11Invoice
Browse files Browse the repository at this point in the history
This is part of the upgrade to LDK 0.0.116.
  • Loading branch information
tnull committed Jul 24, 2023
1 parent ddeb0ca commit 1957089
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ use lightning::sign::{EntropySource, KeysManager};
use lightning::util::config::{ChannelHandshakeConfig, ChannelHandshakeLimits, UserConfig};
use lightning::util::ser::{Writeable, Writer};
use lightning_invoice::payment::pay_invoice;
use lightning_invoice::{utils, Currency, Invoice};
use lightning_invoice::{utils, Bolt11Invoice, Currency};
use std::env;
use std::io;
use std::io::Write;
Expand Down Expand Up @@ -150,7 +150,7 @@ pub(crate) async fn poll_for_user_input(
continue;
}

let invoice = match Invoice::from_str(invoice_str.unwrap()) {
let invoice = match Bolt11Invoice::from_str(invoice_str.unwrap()) {
Ok(inv) => inv,
Err(e) => {
println!("ERROR: invalid invoice: {:?}", e);
Expand Down Expand Up @@ -659,7 +659,7 @@ fn open_channel(
}

fn send_payment(
channel_manager: &ChannelManager, invoice: &Invoice, payment_storage: PaymentInfoStorage,
channel_manager: &ChannelManager, invoice: &Bolt11Invoice, payment_storage: PaymentInfoStorage,
) {
let status =
match pay_invoice(invoice, Retry::Timeout(Duration::from_secs(10)), channel_manager) {
Expand Down

0 comments on commit 1957089

Please sign in to comment.