contrib: Add the addrtype argument to newaddr
Signed-off-by: Christian Decker <decker.christian@gmail.com>
This commit is contained in:
parent
3d27bbb47d
commit
b2cec18a81
|
@ -298,11 +298,11 @@ class LightningRpc(UnixDomainSocketRpc):
|
|||
"""
|
||||
return self._call("withdraw", args=[destination, satoshi])
|
||||
|
||||
def newaddr(self):
|
||||
def newaddr(self, addrtype='p2sh-segwit'):
|
||||
"""
|
||||
Get a new address to fund a channel
|
||||
"""
|
||||
return self._call("newaddr")
|
||||
return self._call("newaddr", [addrtype])
|
||||
|
||||
def listfunds(self):
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue