Skip to content
Open
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
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
prior LSPS2 fee-limit state stored in `PaymentKind::Bolt11Jit` is not migrated.
- Users of the VSS storage backend must upgrade their VSS server to at least version
`v0.1.0-alpha.0` before upgrading LDK Node.
- The `payment_id` field on the `PaymentSuccessful`, `PaymentFailed`, and
`PaymentReceived` events is now a required (non-optional) `PaymentId`. Events
persisted by LDK Node v0.2.1 or earlier (which stored `payment_id` as
optional) will fail to deserialize on read; users upgrading from those
versions need to drain pending events before the upgrade.

## Feature and API updates
- The Bitcoin Core RPC and REST chain-source builder methods now accept an optional
Expand Down
8 changes: 2 additions & 6 deletions benches/payments.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,8 @@ async fn send_payments(node_a: Arc<Node>, node_b: Arc<Node>) -> std::time::Durat
while success_count < total_payments {
match node_a.next_event_async().await {
Event::PaymentSuccessful { payment_id, payment_hash, .. } => {
if let Some(id) = payment_id {
success_count += 1;
println!("{}: Payment with id {:?} completed", payment_hash.0.as_hex(), id);
} else {
println!("Payment completed (no payment_id)");
}
success_count += 1;
println!("{}: Payment with id {:?} completed", payment_hash.0.as_hex(), payment_id);
},
Event::PaymentFailed { payment_id, payment_hash, .. } => {
println!("{}: Payment {:?} failed", payment_hash.unwrap().0.as_hex(), payment_id);
Expand Down
1 change: 1 addition & 0 deletions src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2245,6 +2245,7 @@ fn build_with_store_internal(
scorer,
peer_store,
payment_store,
pending_payment_store,
lnurl_auth,
is_running,
node_metrics,
Expand Down
Loading
Loading