Skip to content

Commit 92b0337

Browse files
niftyneicdecker
authored andcommitted
autodata: requests new line number, please
1 parent cb52e56 commit 92b0337

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

lightningd/peer_htlcs.c

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1085,12 +1085,6 @@ htlc_accepted_hook_final(struct htlc_accepted_hook_payload *request STEALS)
10851085
tal_free(request);
10861086
}
10871087

1088-
REGISTER_PLUGIN_HOOK(htlc_accepted,
1089-
htlc_accepted_hook_deserialize,
1090-
htlc_accepted_hook_final,
1091-
htlc_accepted_hook_serialize,
1092-
struct htlc_accepted_hook_payload *);
1093-
10941088
/* Apply tweak to ephemeral key if blinding is non-NULL, then do ECDH */
10951089
static bool ecdh_maybe_blinding(const struct pubkey *ephemeral_key,
10961090
const struct pubkey *blinding,
@@ -1120,6 +1114,14 @@ static bool ecdh_maybe_blinding(const struct pubkey *ephemeral_key,
11201114
return true;
11211115
}
11221116

1117+
/* AUTODATA wants a different line number */
1118+
REGISTER_PLUGIN_HOOK(htlc_accepted,
1119+
htlc_accepted_hook_deserialize,
1120+
htlc_accepted_hook_final,
1121+
htlc_accepted_hook_serialize,
1122+
struct htlc_accepted_hook_payload *);
1123+
1124+
11231125
/**
11241126
* Everyone is committed to this htlc of theirs
11251127
*

0 commit comments

Comments
 (0)