Skip to content

Commit 8ae097a

Browse files
committed
getcoins.py:if address empty - generate p2tr
1 parent 161c874 commit 8ae097a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

getcoins.py

+3
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ def print_report():
3636
if args.address == '':
3737
# get address for receiving coins
3838
args.address = json.loads(subprocess.check_output([args.cmd] + ['exec','-it','playground-lnd', 'lncli', '--macaroonpath', '/root/.lnd/data/chain/bitcoin/signet/admin.macaroon', 'newaddress', 'p2wkh']))["address"]
39+
if args.address == '':
40+
# get address for receiving coins
41+
args.address = json.loads(subprocess.check_output([args.cmd] + ['exec','-it','playground-lnd', 'lncli', '--macaroonpath', '/root/.lnd/data/chain/bitcoin/signet/admin.macaroon', 'newaddress', 'p2tr']))["address"]
3942
data = {'address': args.address}
4043
else:
4144
data = {'address': args.address}

0 commit comments

Comments
 (0)