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

Function closing_dev_memleak

closingd/closingd.c:543–555  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

541
542/* FIXME: We should talk to lightningd anyway, rather than doing this */
543static void closing_dev_memleak(const tal_t *ctx,
544 u8 *scriptpubkey[NUM_SIDES],
545 const u8 *funding_wscript)
546{
547 struct htable *memtable = memleak_start(tmpctx);
548
549 memleak_ptr(memtable, ctx);
550 memleak_ptr(memtable, scriptpubkey[LOCAL]);
551 memleak_ptr(memtable, scriptpubkey[REMOTE]);
552 memleak_ptr(memtable, funding_wscript);
553
554 dump_memleak(memtable, memleak_status_broken, NULL);
555}
556
557/* Figure out what weight we actually expect for this closing tx (using zero fees
558 * 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