Skip to content

Commit 690f71d

Browse files
committed
Add TODO for client-side OfferId rehydration
Document the startup point where persisted LSPS2 BOLT12 offer registrations should be reloaded and re-registered on the router once storage plumbing is added. Co-Authored-By: HAL 9000
1 parent e18f038 commit 690f71d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/builder.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1842,6 +1842,8 @@ fn build_with_store_internal(
18421842

18431843
let liquidity_source = runtime
18441844
.block_on(async move { liquidity_source_builder.build().await.map(Arc::new) })?;
1845+
// TODO: Rehydrate persisted `OfferId -> LSPS2Bolt12InvoiceParameters` mappings here for
1846+
// client nodes and call `router.register_offer(...)` before startup completes.
18451847
let custom_message_handler =
18461848
Arc::new(NodeCustomMessageHandler::new_liquidity(Arc::clone(&liquidity_source)));
18471849
(Some(liquidity_source), custom_message_handler)

0 commit comments

Comments
 (0)