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

Function closing_dev_memleak

closingd/closingd.c:553–565  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

551#if DEVELOPER
552/* FIXME: We should talk to lightningd anyway, rather than doing this */
553static void closing_dev_memleak(const tal_t *ctx,
554 u8 *scriptpubkey[NUM_SIDES],
555 const u8 *funding_wscript)
556{
557 struct htable *memtable = memleak_start(tmpctx);
558
559 memleak_ptr(memtable, ctx);
560 memleak_ptr(memtable, scriptpubkey[LOCAL]);
561 memleak_ptr(memtable, scriptpubkey[REMOTE]);
562 memleak_ptr(memtable, funding_wscript);
563
564 dump_memleak(memtable, memleak_status_broken);
565}
566#endif /* DEVELOPER */
567
568/* Figure out what weight we actually expect for this closing tx (using zero fees

Callers 1

mainFunction · 0.85

Calls 3

memleak_startFunction · 0.50
memleak_ptrFunction · 0.50
dump_memleakFunction · 0.50

Tested by

no test coverage detected