From be5a80fcaa6d1eb000fa426dc1a697b4db47d550 Mon Sep 17 00:00:00 2001 From: Satoshi Nakamoto <65907137+SatoshiNakamotoBitcoin@users.noreply.github.com> Date: Fri, 18 Mar 2022 21:46:16 +0100 Subject: [PATCH] Update donation.py --- pybitblock/SPV/donation.py | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/pybitblock/SPV/donation.py b/pybitblock/SPV/donation.py index e255bb2..2c8e554 100644 --- a/pybitblock/SPV/donation.py +++ b/pybitblock/SPV/donation.py @@ -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()