During #23577 (moved), we discovered that there's a lot of code in setup_introduce1_data() that's duplicated in service_intro_point_new() and hs_desc_lspec_to_trunnel().
In #23576 (moved), we removed the duplication across setup_introduce1_data() and service_intro_point_new(), creating node_get_link_specifier_smartlist().
So we should clean that up at some point, but it's complicated, because the intro point functions use hs_desc_link_specifier_t. (See #22781 (moved))
Fixing #23576 (moved) removes the duplication across setup_introduce1_data() and service_intro_point_new().
Trac: Parent: #23576 (moved)to#22781 (moved) Description: During #23577 (moved), we discovered that there's a lot of code in setup_introduce1_data() that's duplicated in service_intro_point_new() and hs_desc_lspec_to_trunnel().
So we should clean that up at some point, but it's complicated, because the intro point functions use hs_desc_link_specifier_t.
Or we could add comments in the duplicate code to tell us to check the other functions when any one of them changes.
to
During #23577 (moved), we discovered that there's a lot of code in setup_introduce1_data() that's duplicated in service_intro_point_new() and hs_desc_lspec_to_trunnel().
In #23576 (moved), we removed the duplication across setup_introduce1_data() and service_intro_point_new(), creating node_get_link_specifier_smartlist().
So we should clean that up at some point, but it's complicated, because the intro point functions use hs_desc_link_specifier_t. (See #22781 (moved))