Browse Source

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.
htlc_accepted_hook
trueptolemy 6 years ago
committed by Christian Decker
parent
commit
1c1fb1ca51
  1. 2
      wallet/wallet.h

2
wallet/wallet.h

@ -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;

Loading…
Cancel
Save