Browse Source

contrib: Add the addrtype argument to newaddr

Signed-off-by: Christian Decker <decker.christian@gmail.com>
ppa-0.6.1
Christian Decker 7 years ago
committed by Rusty Russell
parent
commit
b2cec18a81
  1. 4
      contrib/pylightning/lightning/lightning.py

4
contrib/pylightning/lightning/lightning.py

@ -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…
Cancel
Save