Move PaymentId to a [u8; 32] in bindings as for other hash objects
authorMatt Corallo <git@bluematt.me>
Tue, 26 Oct 2021 21:38:46 +0000 (21:38 +0000)
committerMatt Corallo <git@bluematt.me>
Sat, 30 Oct 2021 01:53:19 +0000 (01:53 +0000)
This should allow us to fix
https://github.com/lightningdevkit/ldk-garbagecollected/issues/52

lightning/src/ln/channelmanager.rs

index 698ef1a975a965626af085c2d9edba3fd74811c7..53d332be01c812f04638b39df9d5f9dd98888e13 100644 (file)
@@ -173,6 +173,7 @@ struct ClaimableHTLC {
 }
 
 /// A payment identifier used to uniquely identify a payment to LDK.
+/// (C-not exported) as we just use [u8; 32] directly
 #[derive(Hash, Copy, Clone, PartialEq, Eq, Debug)]
 pub struct PaymentId(pub [u8; 32]);