mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-23 00:54:20 +01:00
txprepare: don't crash on empty args
add test for empty args check
This commit is contained in:
committed by
Christian Decker
parent
c2434ad4fb
commit
1763960c4a
@@ -1069,7 +1069,7 @@ class LightningRpc(UnixDomainSocketRpc):
|
||||
if 'destination' in kwargs or 'satoshi' in kwargs:
|
||||
return self._deprecated_txprepare(*args, **kwargs)
|
||||
|
||||
if not isinstance(args[0], list):
|
||||
if len(args) and not isinstance(args[0], list):
|
||||
return self._deprecated_txprepare(*args, **kwargs)
|
||||
|
||||
def _txprepare(outputs, feerate=None, minconf=None, utxos=None):
|
||||
|
||||
Reference in New Issue
Block a user