mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 07:04:22 +01:00
lightningd: remove support for legacy onion format.
As per proposal in https://github.com/lightning/bolts/pull/962 Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Changelog-Removed: protocol: support for legacy onion format removed, since everyone supports the new one.
This commit is contained in:
@@ -16,10 +16,7 @@ struct legacy_payload {
|
||||
/* struct holding the information necessary to call createonion */
|
||||
struct createonion_hop {
|
||||
struct node_id pubkey;
|
||||
|
||||
enum route_hop_style style;
|
||||
struct tlv_tlv_payload *tlv_payload;
|
||||
struct legacy_payload *legacy_payload;
|
||||
};
|
||||
|
||||
struct createonion_request {
|
||||
@@ -176,8 +173,6 @@ struct payment {
|
||||
|
||||
/* Real destination we want to route to */
|
||||
struct node_id *destination;
|
||||
/* Do we know for sure that this supports OPT_VAR_ONION? */
|
||||
bool destination_has_tlv;
|
||||
|
||||
/* Payment hash extracted from the invoice if any. */
|
||||
struct sha256 *payment_hash;
|
||||
|
||||
Reference in New Issue
Block a user