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

Function destroy_log_book

lightningd/log.c:261–270  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

259}
260
261static void destroy_log_book(struct log_book *log)
262{
263 size_t num = log->num_entries;
264
265 for (size_t i = 0; i < num; i++)
266 delete_entry(log, &log->log[i]);
267
268 assert(log->num_entries == 0);
269 assert(log->mem_used == 0);
270}
271
272struct log_book *new_log_book(struct lightningd *ld, size_t max_mem)
273{

Callers

nothing calls this directly

Calls 1

delete_entryFunction · 0.85

Tested by

no test coverage detected