Skip to content

Commit d639864

Browse files
fixup! wip: adding channel_id and txid inside the hook
1 parent 218478f commit d639864

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightningd/opening_control.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -922,13 +922,13 @@ static char *opening_on_funding_tx(struct subd *openingd, const u8 *msg)
922922
{
923923
struct onfunding_channel_tx_hook_payload *payload;
924924
payload = tal(openingd, struct onfunding_channel_tx_hook_payload);
925+
payload->cid = tal(payload, struct channel_id);
925926
payload->openingd = openingd;
926927

927928
if (!fromwire_openingd_on_funding_tx(msg, msg, &payload->tx, payload->cid))
928929
return tal_fmt(tmpctx, "Unexpected encoding of openingd_on_funding_tx msg: %s",
929930
tal_hex(tmpctx, msg));
930931
assert(plugin_hook_call_onfunding_channel_tx(openingd->ld, NULL, payload));
931-
// FIXME(bitfinix): return an error
932932
return NULL;
933933
}
934934

0 commit comments

Comments
 (0)