contrib: Add the addrtype argument to newaddr

Signed-off-by: Christian Decker <decker.christian@gmail.com>
This commit is contained in:
Christian Decker 2018-02-05 19:10:23 +01:00 committed by Rusty Russell
parent 3d27bbb47d
commit b2cec18a81
1 changed files with 2 additions and 2 deletions

View File

@ -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):
"""