Convert COMMITMENT_TX_BASE_WEIGHT to anchor-aware function
[rust-lightning] / lightning / src / ln / functional_test_utils.rs
index 8410cac9132dc66d844d71583873bb72cc517f64..2437852e36c439ec0598b51e6d37394258f8aa5e 100644 (file)
@@ -440,6 +440,17 @@ macro_rules! get_feerate {
        }
 }
 
+#[cfg(test)]
+macro_rules! get_opt_anchors {
+       ($node: expr, $channel_id: expr) => {
+               {
+                       let mut lock;
+                       let chan = get_channel_ref!($node, lock, $channel_id);
+                       chan.opt_anchors()
+               }
+       }
+}
+
 /// Returns a channel monitor given a channel id, making some naive assumptions
 #[macro_export]
 macro_rules! get_monitor {