From: Jeffrey Czyz Date: Fri, 30 Apr 2021 16:58:07 +0000 (-0700) Subject: Sanity test InvoiceFeatures X-Git-Tag: v0.0.14~1^2~4 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=7310e2684c854e4da170e417715cf426206f2b5d;p=rust-lightning Sanity test InvoiceFeatures --- 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());