mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
common/onion_decode: put final flag in onion_payload.
You can use rs->nextcase, but we don't always keep that around, so keep a flag in onion_payload. We'll use this in the "do we need to return a blinded error code" patch. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -14,6 +14,8 @@ enum onion_payload_type {
|
||||
|
||||
struct onion_payload {
|
||||
enum onion_payload_type type;
|
||||
/* Is this the final hop? */
|
||||
bool final;
|
||||
|
||||
struct amount_msat amt_to_forward;
|
||||
u32 outgoing_cltv;
|
||||
|
||||
Reference in New Issue
Block a user