mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 23:24:27 +01:00
pytest: reduce accuracy of valgrind if SLOW_MACHINE.
Reduces node_factory.line_graph(5) time on my laptop from 48s to 42s. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
Christian Decker
parent
23af241c60
commit
c85a433d9a
@@ -601,6 +601,9 @@ class LightningNode(object):
|
||||
'--error-exitcode=7',
|
||||
'--log-file={}/valgrind-errors.%p'.format(self.daemon.lightning_dir)
|
||||
]
|
||||
# Reduce precision of errors, speeding startup and reducing memory greatly:
|
||||
if SLOW_MACHINE:
|
||||
self.daemon.cmd_prefix += ['--read-inline-info=no']
|
||||
|
||||
def connect(self, remote_node):
|
||||
self.rpc.connect(remote_node.info['id'], '127.0.0.1', remote_node.daemon.port)
|
||||
|
||||
Reference in New Issue
Block a user