From 7310e2684c854e4da170e417715cf426206f2b5d Mon Sep 17 00:00:00 2001 From: Jeffrey Czyz Date: Fri, 30 Apr 2021 09:58:07 -0700 Subject: [PATCH] Sanity test InvoiceFeatures --- lightning/src/ln/features.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lightning/src/ln/features.rs b/lightning/src/ln/features.rs index 507316d6b..0b01c4169 100644 --- a/lightning/src/ln/features.rs +++ b/lightning/src/ln/features.rs @@ -730,8 +730,10 @@ mod tests { assert!(InitFeatures::known().supports_variable_length_onion()); assert!(NodeFeatures::known().supports_variable_length_onion()); + assert!(InvoiceFeatures::known().supports_variable_length_onion()); assert!(InitFeatures::known().requires_variable_length_onion()); assert!(NodeFeatures::known().requires_variable_length_onion()); + assert!(InvoiceFeatures::known().requires_variable_length_onion()); assert!(InitFeatures::known().supports_static_remote_key()); assert!(NodeFeatures::known().supports_static_remote_key()); @@ -740,13 +742,17 @@ mod tests { assert!(InitFeatures::known().supports_payment_secret()); assert!(NodeFeatures::known().supports_payment_secret()); + assert!(InvoiceFeatures::known().supports_payment_secret()); assert!(InitFeatures::known().requires_payment_secret()); assert!(NodeFeatures::known().requires_payment_secret()); + assert!(InvoiceFeatures::known().requires_payment_secret()); assert!(InitFeatures::known().supports_basic_mpp()); assert!(NodeFeatures::known().supports_basic_mpp()); + assert!(InvoiceFeatures::known().supports_basic_mpp()); assert!(!InitFeatures::known().requires_basic_mpp()); assert!(!NodeFeatures::known().requires_basic_mpp()); + assert!(!InvoiceFeatures::known().requires_basic_mpp()); assert!(InitFeatures::known().supports_shutdown_anysegwit()); assert!(NodeFeatures::known().supports_shutdown_anysegwit()); -- 2.39.5