Skip to content

Commit

Permalink
autodata: requests new line number, please
Browse files Browse the repository at this point in the history
  • Loading branch information
niftynei authored and cdecker committed Jan 10, 2021
1 parent 7e32417 commit 9906236
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions lightningd/peer_htlcs.c
Original file line number Diff line number Diff line change
Expand Up @@ -1085,12 +1085,6 @@ htlc_accepted_hook_final(struct htlc_accepted_hook_payload *request STEALS)
tal_free(request);
}

REGISTER_PLUGIN_HOOK(htlc_accepted,
htlc_accepted_hook_deserialize,
htlc_accepted_hook_final,
htlc_accepted_hook_serialize,
struct htlc_accepted_hook_payload *);

/* Apply tweak to ephemeral key if blinding is non-NULL, then do ECDH */
static bool ecdh_maybe_blinding(const struct pubkey *ephemeral_key,
const struct pubkey *blinding,
Expand Down Expand Up @@ -1120,6 +1114,14 @@ static bool ecdh_maybe_blinding(const struct pubkey *ephemeral_key,
return true;
}

/* AUTODATA wants a different line number */
REGISTER_PLUGIN_HOOK(htlc_accepted,
htlc_accepted_hook_deserialize,
htlc_accepted_hook_final,
htlc_accepted_hook_serialize,
struct htlc_accepted_hook_payload *);


/**
* Everyone is committed to this htlc of theirs
*
Expand Down

0 comments on commit 9906236

Please sign in to comment.