We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61c79de commit 718753dCopy full SHA for 718753d
lightning-invoice/src/lib.rs
@@ -1590,6 +1590,14 @@ mod test {
1590
}.unwrap();
1591
assert!(Invoice::from_signed(invoice).is_ok());
1592
1593
+ // No payment secret or feature bits
1594
+ let invoice = {
1595
+ let mut invoice = invoice_template.clone();
1596
+ invoice.data.tagged_fields.push(Features(InvoiceFeatures::empty()).into());
1597
+ invoice.sign::<_, ()>(|hash| Ok(Secp256k1::new().sign_recoverable(hash, &private_key)))
1598
+ }.unwrap();
1599
+ assert!(Invoice::from_signed(invoice).is_ok());
1600
+
1601
// Missing payment secret
1602
let invoice = {
1603
let mut invoice = invoice_template.clone();
0 commit comments