Skip to content

Commit

Permalink
getcoins.py:if address empty - generate p2tr
Browse files Browse the repository at this point in the history
  • Loading branch information
RandyMcMillan committed Jun 17, 2024
1 parent 161c874 commit 8ae097a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions getcoins.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ def print_report():
if args.address == '':
# get address for receiving coins
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"]
if args.address == '':
# get address for receiving coins
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"]
data = {'address': args.address}
else:
data = {'address': args.address}
Expand Down

0 comments on commit 8ae097a

Please sign in to comment.