mirror of
https://github.com/curly60e/pyblock.git
synced 2026-08-20 13:28:10 +02:00
Update donation.py
This commit is contained in:
parent
301ba9d004
commit
be5a80fcaa
1 changed files with 9 additions and 11 deletions
|
|
@ -114,23 +114,21 @@ def donationLNTst():
|
|||
lnbc1W = lnbc1R[1]
|
||||
ln = str(lnbc1W)
|
||||
ln1 = ln.strip('"')
|
||||
node_not = input("Do you have Node? Y/n: ")
|
||||
node_not = input("Are you Satoshi? Y/n: ")
|
||||
if node_not in ["Y", "y"]:
|
||||
lndconnectload = {"ip_port":"", "tls":"", "macaroon":"", "ln":""}
|
||||
lndconnectData = pickle.load(open("blndconnect.conf", "rb")) # Load the file 'bclock.conf'
|
||||
lndconnectload = lndconnectData # Copy the variable pathv to 'path'
|
||||
if lndconnectload['ip_port']:
|
||||
print("\nInvoice: " + ln1 + "\n")
|
||||
payinvoice()
|
||||
elif lndconnectload['ln']:
|
||||
print("\nInvoice: " + ln1 + "\n")
|
||||
localpayinvoice()
|
||||
print("\033[1;30;47m")
|
||||
qr.add_data(ln1)
|
||||
qr.print_ascii()
|
||||
print("\033[0;37;40m")
|
||||
print("LNURL: " + ln1)
|
||||
qr.clear()
|
||||
response.close()
|
||||
elif node_not in ["N", "n"]:
|
||||
print("\033[1;30;47m")
|
||||
qr.add_data(ln1)
|
||||
qr.print_ascii()
|
||||
print("\033[0;37;40m")
|
||||
print("LND Invoice: " + ln1)
|
||||
print("LNURL: " + ln1)
|
||||
qr.clear()
|
||||
response.close()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue