Skip to content

Commit 6edb5d5

Browse files
fixup! lightningd: handling the endorsed field
Signed-off-by: Vincenzo Palazzo <[email protected]>
1 parent 2207d74 commit 6edb5d5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lightningd/pay.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1063,10 +1063,10 @@ send_payment_core(struct lightningd *ld,
10631063
struct secret *path_secrets,
10641064
const struct sha256 *local_invreq_id)
10651065
{
1066+
bool *endorsed;
10661067
const struct wallet_payment *old_payment;
10671068
struct channel *channel;
10681069
const u8 *failmsg;
1069-
const bool *endorsed;
10701070
struct htlc_out *hout;
10711071
struct routing_failure *fail;
10721072
struct command_result *ret;
@@ -1120,6 +1120,7 @@ send_payment_core(struct lightningd *ld,
11201120
*
11211121
* We wait that someone else smarted than me will provide the way to
11221122
* calculate it for now it is just a placeholder. */
1123+
endorsed = NULL;
11231124
*endorsed = false;
11241125
failmsg = send_onion(tmpctx, ld, packet, first_hop, msat,
11251126
rhash, NULL, partid,

0 commit comments

Comments
 (0)