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

Function closing_dev_memleak

closingd/closingd.c:566–578  ·  view source on GitHub ↗

FIXME: We should talk to lightningd anyway, rather than doing this */

Source from the content-addressed store, hash-verified

564
565/* FIXME: We should talk to lightningd anyway, rather than doing this */
566static void closing_dev_memleak(const tal_t *ctx,
567 u8 *scriptpubkey[NUM_SIDES],
568 const u8 *funding_wscript)
569{
570 struct htable *memtable = memleak_start(tmpctx);
571
572 memleak_ptr(memtable, ctx);
573 memleak_ptr(memtable, scriptpubkey[LOCAL]);
574 memleak_ptr(memtable, scriptpubkey[REMOTE]);
575 memleak_ptr(memtable, funding_wscript);
576
577 dump_memleak(memtable, memleak_status_broken, NULL);
578}
579
580/* Figure out what weight we actually expect for this closing tx (using zero fees
581 * gives the largest possible tx: larger values might omit outputs). */

Callers 1

mainFunction · 0.85

Calls 2

memleak_startFunction · 0.50
memleak_ptrFunction · 0.50

Tested by

no test coverage detected