Skip to content

Commit 1e37a26

Browse files
committed
Use payment IDs for BOLT11 payments
Create inbound BOLT11 records from claimable and claimed events. Stop pre-creating automatic BOLT11 records when invoices are generated. Generate outbound BOLT11 IDs from KeysManager entropy instead of deriving them from the payment hash. Co-Authored-By: HAL 9000
1 parent 1d29fcc commit 1e37a26

6 files changed

Lines changed: 586 additions & 427 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)