lightningd: require explicit LIGHTNINGD_DEV_MEMLEAK env var to do memleak.

Otherwise every allocation and free is slowed down.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2017-12-17 13:47:12 +10:30
committed by Christian Decker
parent 6b9c525f35
commit e695e5db09
3 changed files with 7 additions and 1 deletions

View File

@@ -108,6 +108,7 @@ class NodeFactory(object):
daemon.cmd_line.append("--dev-disconnect=dev_disconnect")
if DEVELOPER:
daemon.cmd_line.append("--dev-fail-on-subdaemon-fail")
daemon.env["LIGHTNINGD_DEV_MEMLEAK"] = "1"
if VALGRIND:
daemon.env["LIGHTNINGD_DEV_NO_BACKTRACE"] = "1"
opts = [] if options is None else options