common/sphinx: rename hop_data to hop_data_legacy.

This highlights the various places we need to change.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2019-11-14 10:43:53 +10:30
committed by Christian Decker
parent 2821187fdc
commit a76518a029
5 changed files with 6 additions and 11 deletions

View File

@@ -61,7 +61,7 @@ struct sphinx_path;
* * [`u32`:`outgoing_cltv_value`]
* * [`12*byte`:`padding`]
*/
struct hop_data {
struct hop_data_legacy {
u8 realm;
struct short_channel_id channel_id;
struct amount_msat amt_forward;
@@ -80,7 +80,7 @@ struct route_step {
struct onionpacket *next;
enum sphinx_payload_type type;
union {
struct hop_data v0;
struct hop_data_legacy v0;
} payload;
u8 *raw_payload;
};