From 1c1fb1ca51c533e619dcf72745e9fc0efa3a051c Mon Sep 17 00:00:00 2001 From: trueptolemy <823220586@qq.com> Date: Mon, 15 Apr 2019 21:31:56 +0800 Subject: [PATCH] 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. --- wallet/wallet.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wallet/wallet.h b/wallet/wallet.h index 6cb4b1e6c..261a15207 100644 --- a/wallet/wallet.h +++ b/wallet/wallet.h @@ -17,6 +17,7 @@ #include #include #include +#include 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;