Skip to content

Commit 6042968

Browse files
fixup! wip: adding channel_id and txid inside the hook
1 parent 01ff22e commit 6042968

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
@@ -924,13 +924,13 @@ static char *opening_on_funding_tx(struct subd *openingd, const u8 *msg)
924924
{
925925
struct onfunding_channel_tx_hook_payload *payload;
926926
payload = tal(openingd, struct onfunding_channel_tx_hook_payload);
927+
payload->cid = tal(payload, struct channel_id);
927928
payload->openingd = openingd;
928929

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

0 commit comments

Comments
 (0)