Skip to content

Commit f96d289

Browse files
committed
Use payment IDs for BOLT11 payments
Create inbound BOLT11 records from claimable and claimed events so inbound payments can be tracked by the IDs emitted by LDK. Generate outbound BOLT11 IDs from KeysManager entropy instead of deriving them from the payment hash. Co-Authored-By: HAL 9000
1 parent fd48cce commit f96d289

6 files changed

Lines changed: 690 additions & 559 deletions

File tree

bindings/python/src/ldk_node/test_ldk_node.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ def test_spontaneous_payment(self):
235235
self.assertEqual(received_event.custom_records, custom_tlvs)
236236

237237
sender_payment = node_1.payment(keysend_payment_id)
238-
receiver_payment = node_2.payment(keysend_payment_id)
238+
receiver_payment = node_2.payment(received_event.payment_id)
239239

240240
self.assertIsNotNone(sender_payment)
241241
self.assertIsNotNone(receiver_payment)

0 commit comments

Comments
 (0)