mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-02 18:35:00 +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:
parent
473dbd4921
commit
1c1fb1ca51
1 changed files with 2 additions and 0 deletions
|
@ -17,6 +17,7 @@
|
||||||
#include <lightningd/log.h>
|
#include <lightningd/log.h>
|
||||||
#include <onchaind/onchain_wire.h>
|
#include <onchaind/onchain_wire.h>
|
||||||
#include <wally_bip32.h>
|
#include <wally_bip32.h>
|
||||||
|
#include <wire/gen_onion_wire.h>
|
||||||
|
|
||||||
enum onion_type;
|
enum onion_type;
|
||||||
struct amount_msat;
|
struct amount_msat;
|
||||||
|
@ -171,6 +172,7 @@ struct forwarding {
|
||||||
struct amount_msat msat_in, msat_out, fee;
|
struct amount_msat msat_in, msat_out, fee;
|
||||||
struct sha256_double *payment_hash;
|
struct sha256_double *payment_hash;
|
||||||
enum forward_status status;
|
enum forward_status status;
|
||||||
|
enum onion_type failcode;
|
||||||
struct timeabs received_time;
|
struct timeabs received_time;
|
||||||
/* May not be present if the HTLC was not resolved yet. */
|
/* May not be present if the HTLC was not resolved yet. */
|
||||||
struct timeabs *resolved_time;
|
struct timeabs *resolved_time;
|
||||||
|
|
Loading…
Add table
Reference in a new issue