diff --git a/lightningd/peer_htlcs.c b/lightningd/peer_htlcs.c index c623fea652c2..4145047f91cd 100644 --- a/lightningd/peer_htlcs.c +++ b/lightningd/peer_htlcs.c @@ -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, @@ -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 *