MCPcopy Create free account
hub / github.com/ElementsProject/lightning / fromwire_struct_open_channel

Function fromwire_struct_open_channel

wire/test/run-peer-wire.c:307–333  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

305}
306
307static struct msg_open_channel *fromwire_struct_open_channel(const tal_t *ctx, const void *p)
308{
309 struct msg_open_channel *s = tal(ctx, struct msg_open_channel);
310
311 if (fromwire_open_channel(s, p,
312 &s->chain_hash,
313 &s->temporary_channel_id,
314 &s->funding_satoshis,
315 &s->push_msat,
316 &s->dust_limit_satoshis,
317 &s->max_htlc_value_in_flight_msat,
318 &s->channel_reserve_satoshis,
319 &s->htlc_minimum_msat,
320 &s->feerate_per_kw,
321 &s->to_self_delay,
322 &s->max_accepted_htlcs,
323 &s->funding_pubkey,
324 &s->revocation_basepoint,
325 &s->payment_basepoint,
326 &s->delayed_payment_basepoint,
327 &s->htlc_basepoint,
328 &s->first_per_commitment_point,
329 &s->channel_flags,
330 &s->tlvs))
331 return s;
332 return tal_free(s);
333}
334
335static void *towire_struct_accept_channel(const tal_t *ctx,
336 const struct msg_accept_channel *s)

Callers 1

mainFunction · 0.85

Calls 1

tal_freeFunction · 0.85

Tested by

no test coverage detected