mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-07 16:14:26 +01:00
contrib: Add the addrtype argument to newaddr
Signed-off-by: Christian Decker <decker.christian@gmail.com>
This commit is contained in:
committed by
Rusty Russell
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):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user