]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Sanity test InvoiceFeatures
authorJeffrey Czyz <jkczyz@gmail.com>
Fri, 30 Apr 2021 16:58:07 +0000 (09:58 -0700)
committerJeffrey Czyz <jkczyz@gmail.com>
Fri, 30 Apr 2021 19:04:35 +0000 (12:04 -0700)
lightning/src/ln/features.rs

index 507316d6b3b4612d1f9d5725e85dea956a87271b..0b01c41690efd795ebf107f5db4dd80e76783f0c 100644 (file)
@@ -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());