@ -297,11 +297,11 @@ static u8 *get_scid_array(const tal_t *ctx,
}
}
if ( json_tok_streq ( test_vector , encoding , " UNCOMPRESSED " ) ) {
if ( json_tok_streq ( test_vector , encoding , " UNCOMPRESSED " ) ) {
encoding_end_no_compress ( & encoded , 1 ) ;
encoding_end_no_compress ( & encoded , 1 ) ;
encoded [ 0 ] = SHORTIDS _UNCOMPRESSED;
encoded [ 0 ] = ARR _UNCOMPRESSED;
} else {
} else {
assert ( json_tok_streq ( test_vector , encoding , " COMPRESSED_ZLIB " ) ) ;
assert ( json_tok_streq ( test_vector , encoding , " COMPRESSED_ZLIB " ) ) ;
assert ( encoding_end_zlib ( & encoded , 1 ) ) ;
assert ( encoding_end_zlib ( & encoded , 1 ) ) ;
encoded [ 0 ] = SHORTIDS _ZLIB;
encoded [ 0 ] = ARR _ZLIB;
}
}
return encoded ;
return encoded ;
@ -380,13 +380,13 @@ static u8 *test_reply_channel_range(const char *test_vector, const jsmntok_t *ob
if ( json_tok_streq ( test_vector , encodingtok , " UNCOMPRESSED " ) ) {
if ( json_tok_streq ( test_vector , encodingtok , " UNCOMPRESSED " ) ) {
encoding_end_no_compress ( & tlvs - > timestamps_tlv - > encoded_timestamps ,
encoding_end_no_compress ( & tlvs - > timestamps_tlv - > encoded_timestamps ,
0 ) ;
0 ) ;
tlvs - > timestamps_tlv - > encoding_type = SHORTIDS _UNCOMPRESSED;
tlvs - > timestamps_tlv - > encoding_type = ARR _UNCOMPRESSED;
} else {
} else {
assert ( json_tok_streq ( test_vector , encodingtok ,
assert ( json_tok_streq ( test_vector , encodingtok ,
" COMPRESSED_ZLIB " ) ) ;
" COMPRESSED_ZLIB " ) ) ;
assert ( encoding_end_zlib ( & tlvs - > timestamps_tlv - > encoded_timestamps ,
assert ( encoding_end_zlib ( & tlvs - > timestamps_tlv - > encoded_timestamps ,
0 ) ) ;
0 ) ) ;
tlvs - > timestamps_tlv - > encoding_type = SHORTIDS _ZLIB;
tlvs - > timestamps_tlv - > encoding_type = ARR _ZLIB;
}
}
}
}
@ -443,11 +443,11 @@ get_query_flags_array(const tal_t *ctx,
}
}
if ( json_tok_streq ( test_vector , encoding , " UNCOMPRESSED " ) ) {
if ( json_tok_streq ( test_vector , encoding , " UNCOMPRESSED " ) ) {
encoding_end_no_compress ( & tlv - > encoded_query_flags , 0 ) ;
encoding_end_no_compress ( & tlv - > encoded_query_flags , 0 ) ;
tlv - > encoding_type = SHORTIDS _UNCOMPRESSED;
tlv - > encoding_type = ARR _UNCOMPRESSED;
} else {
} else {
assert ( json_tok_streq ( test_vector , encoding , " COMPRESSED_ZLIB " ) ) ;
assert ( json_tok_streq ( test_vector , encoding , " COMPRESSED_ZLIB " ) ) ;
assert ( encoding_end_zlib ( & tlv - > encoded_query_flags , 0 ) ) ;
assert ( encoding_end_zlib ( & tlv - > encoded_query_flags , 0 ) ) ;
tlv - > encoding_type = SHORTIDS _ZLIB;
tlv - > encoding_type = ARR _ZLIB;
}
}
return tlv ;
return tlv ;