mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-22 22:45:27 +01:00
Allocate off ctx instead of tmpctx in encode_short_channel_ids_start(const tal_t *ctx)
This commit is contained in:
parent
2c7170b858
commit
7969cc335e
1 changed files with 1 additions and 1 deletions
|
@ -197,7 +197,7 @@ static struct peer *find_peer(struct daemon *daemon, const struct pubkey *id)
|
|||
|
||||
static u8 *encode_short_channel_ids_start(const tal_t *ctx)
|
||||
{
|
||||
u8 *encoded = tal_arr(tmpctx, u8, 0);
|
||||
u8 *encoded = tal_arr(ctx, u8, 0);
|
||||
towire_u8(&encoded, SHORTIDS_ZLIB);
|
||||
return encoded;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue