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

Function towire_penalty_base

common/penalty_base.c:23–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21}
22
23void towire_penalty_base(u8 **pptr, const struct penalty_base *pbase)
24{
25 towire_u64(pptr, pbase->commitment_num);
26 towire_bitcoin_txid(pptr, &pbase->txid);
27 towire_u32(pptr, pbase->outnum);
28 towire_amount_sat(pptr, pbase->amount);
29}
30
31void fromwire_penalty_base(const u8 **pptr, size_t *max,
32 struct penalty_base *pbase)

Callers

nothing calls this directly

Calls 4

towire_bitcoin_txidFunction · 0.85
towire_amount_satFunction · 0.70
towire_u64Function · 0.50
towire_u32Function · 0.50

Tested by

no test coverage detected