pyln-testing: don't fail to start node if we have no Rust.

No cln-grpc means no "grpc-port" option!  I often test this way, with RUST=0
for speed.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell 2024-11-12 13:15:47 +10:30 committed by Vincenzo Palazzo
parent edc0eb6473
commit b34adc704b

View file

@ -830,7 +830,7 @@ class LightningNode(object):
if SLOW_MACHINE:
self.daemon.cmd_prefix += ['--read-inline-info=no']
if self.daemon.opts.get('disable-plugin') == 'cln-grpc':
if self.daemon.opts.get('disable-plugin') == 'cln-grpc' or env('RUST') == '0':
self.grpc_port = None
else:
if grpc_port: