gossipd: use ctx arg in create_channel_update.

Turns out it was always `tmpctx` anyway, so this isn't a real bug right now.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell 2018-08-24 14:50:06 +09:30 committed by Christian Decker
parent 2db77f5d1d
commit b10bae1ceb

View file

@ -1024,7 +1024,7 @@ static u8 *create_channel_update(const tal_t *ctx,
if (disable)
flags |= ROUTING_FLAGS_DISABLED;
update = towire_channel_update(tmpctx, &dummy_sig,
update = towire_channel_update(ctx, &dummy_sig,
&rstate->chain_hash,
&chan->scid,
timestamp,