Skip to content

Commit ff4b9d1

Browse files
ser_macros: rename check_tlv_order
.. to disamgibutate from check_encoded_tlv_order
1 parent 4ed06ba commit ff4b9d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lightning/src/util/ser_macros.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ macro_rules! encode_varint_length_prefixed_tlv {
113113
} }
114114
}
115115

116-
macro_rules! check_tlv_order {
116+
macro_rules! check_decoded_tlv_order {
117117
($last_seen_type: expr, $typ: expr, $type: expr, $field: ident, (default_value, $default: expr)) => {{
118118
#[allow(unused_comparisons)] // Note that $type may be 0 making the second comparison always true
119119
let invalid_order = ($last_seen_type.is_none() || $last_seen_type.unwrap() < $type) && $typ.0 > $type;
@@ -281,7 +281,7 @@ macro_rules! decode_tlv_stream_range {
281281
}
282282
// As we read types, make sure we hit every required type:
283283
$({
284-
check_tlv_order!(last_seen_type, typ, $type, $field, $fieldty);
284+
check_decoded_tlv_order!(last_seen_type, typ, $type, $field, $fieldty);
285285
})*
286286
last_seen_type = Some(typ.0);
287287

0 commit comments

Comments
 (0)