Update donation.py

This commit is contained in:
Satoshi Nakamoto 2022-03-18 21:46:16 +01:00 committed by GitHub
parent 301ba9d004
commit be5a80fcaa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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()