Add trampoline feature flag.
[rust-lightning] / lightning / src / offers / offer.rs
index e9e35836a96e2bec19b5bbe73c390ad78481e4bf..bf5e50deb77b8c290c1385f3459b76fb17bfbd6d 100644 (file)
@@ -390,6 +390,12 @@ macro_rules! offer_builder_test_methods { (
                $return_value
        }
 
+       #[cfg_attr(c_bindings, allow(dead_code))]
+       pub(crate) fn clear_chains($($self_mut)* $self: $self_type) -> $return_type {
+               $self.offer.chains = None;
+               $return_value
+       }
+
        #[cfg_attr(c_bindings, allow(dead_code))]
        pub(crate) fn clear_paths($($self_mut)* $self: $self_type) -> $return_type {
                $self.offer.paths = None;