lightningdevkit / rust-lightning

A highly modular Bitcoin Lightning library written in Rust. It's rust-lightning, not Rusty's Lightning!
Other
1.17k stars 367 forks source link

Add static invoice creation utils to `ChannelManager` #3408

Open valentinewallace opened 1 week ago

valentinewallace commented 1 week ago
  1. Add static invoice creation utilities as part of supporting the async payments BOLTs spec https://github.com/lightning/bolts/pull/1149.

  2. Take this opportunity to more easily test some code added in https://github.com/lightningdevkit/rust-lightning/pull/3140 that went untested at the time. This is the bulk of the diff.

  3. Address a piece of feedback from #3140 regarding InvoiceRequests being unavailable when the time comes to send the async payment, cc https://github.com/lightningdevkit/rust-lightning/pull/3140#discussion_r1759425911