mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 23:24:27 +01:00
wallet: add failcode field in forwarding struct
It's a optional field. We only set failcode for FORWARD_LOCAL_FAILED case, and set this field with 0 in other case.
This commit is contained in:
committed by
Christian Decker
parent
473dbd4921
commit
1c1fb1ca51
@@ -17,6 +17,7 @@
|
||||
#include <lightningd/log.h>
|
||||
#include <onchaind/onchain_wire.h>
|
||||
#include <wally_bip32.h>
|
||||
#include <wire/gen_onion_wire.h>
|
||||
|
||||
enum onion_type;
|
||||
struct amount_msat;
|
||||
@@ -171,6 +172,7 @@ struct forwarding {
|
||||
struct amount_msat msat_in, msat_out, fee;
|
||||
struct sha256_double *payment_hash;
|
||||
enum forward_status status;
|
||||
enum onion_type failcode;
|
||||
struct timeabs received_time;
|
||||
/* May not be present if the HTLC was not resolved yet. */
|
||||
struct timeabs *resolved_time;
|
||||
|
||||
Reference in New Issue
Block a user