From 27719512d855ebd71853db11f7bc33385500fa45 Mon Sep 17 00:00:00 2001 From: Satoshi Nakamoto <65907137+SatoshiNakamotoBitcoin@users.noreply.github.com> Date: Sat, 31 Dec 2022 00:01:42 +0100 Subject: [PATCH] Update spvblock.py --- pybitblock/SPV/spvblock.py | 130 +++++++++++++++++++------------------ 1 file changed, 66 insertions(+), 64 deletions(-) diff --git a/pybitblock/SPV/spvblock.py b/pybitblock/SPV/spvblock.py index bf99a00..344a9f8 100644 --- a/pybitblock/SPV/spvblock.py +++ b/pybitblock/SPV/spvblock.py @@ -3650,6 +3650,45 @@ def callGitWardenTerminal(): os.system("cd warden_terminal && python3 node_warden.py") #---------------------------------Nostr Terminal---------------------------------- + +def callGitNostrLinTerminal(): + try: + clear() + blogo() + output = render( + "Nostr Console Linux", colors=['yellow'], align='left', font='tiny' + ) + if os.path.isdir ('nostr_console_pyblock'): + os.system("cd nostr_console_pyblock && rm -rf nostr_console_linux_amd64 && wget https://raw.githubusercontent.com/curly60e/pyblock/master/pybitblock/nostr_console_pyblock/nostr_console_linux_amd64 && chmod 777 *") + else: # Check if the file 'bclock.conf' is in the same folder + os.system("mkdir nostr_console_pyblock && cd nostr_console_pyblock && wget https://raw.githubusercontent.com/curly60e/pyblock/master/pybitblock/nostr_console_pyblock/nostr_console_linux_amd64 && chmod 777 *") + clear() + blogo() + print(output) + responseC = input("Paste your PrivateKey: ") + os.system(f"cd nostr_console_pyblock && ./nostr_console_linux_amd64 -k {responseC} -r wss://relay.stoner.com,wss://nostr.w3ird.tech,wss://nostr.bongbong.com,wss://nostr.hugo.md,wss://nostr.slothy.win,wss://nostr.robotechy.com,wss://nostr.nodeofsven.com,wss://nostrrelay.com,wss://nostr.mwmdev.com,wss://nostr.sandwich.farm -l") + except: + menuSelection() + +def callGitNostrLinarmTerminal(): + try: + clear() + blogo() + output = render( + "Nostr Console Linux", colors=['yellow'], align='left', font='tiny' + ) + if os.path.isdir ('nostr_console_pyblock'): + os.system("cd nostr_console_pyblock && rm -rf nostr_console_linux_arm64 && wget https://raw.githubusercontent.com/curly60e/pyblock/master/pybitblock/nostr_console_pyblock/nostr_console_linux_arm64 && chmod 777 *") + else: # Check if the file 'bclock.conf' is in the same folder + os.system("mkdir nostr_console_pyblock && cd nostr_console_pyblock && wget https://raw.githubusercontent.com/curly60e/pyblock/master/pybitblock/nostr_console_pyblock/nostr_console_linux_arm64 && chmod 777 *") + clear() + blogo() + print(output) + responseC = input("Paste your PrivateKey: ") + os.system(f"cd nostr_console_pyblock && ./nostr_console_linux_arm64 -k {responseC} -r wss://relay.stoner.com,wss://nostr.w3ird.tech,wss://nostr.bongbong.com,wss://nostr.hugo.md,wss://nostr.slothy.win,wss://nostr.robotechy.com,wss://nostr.nodeofsven.com,wss://nostrrelay.com,wss://nostr.mwmdev.com,wss://nostr.sandwich.farm -l") + except: + menuSelection() + def callGitNostrMacTerminal(): try: clear() @@ -3670,6 +3709,25 @@ def callGitNostrMacTerminal(): except: menuSelection() +def callGitNostrMacarmTerminal(): + try: + clear() + blogo() + output = render( + "Nostr Console macOS", colors=['yellow'], align='left', font='tiny' + ) + if os.path.isdir ('nostr_console_pyblock'): + os.system("cd nostr_console_pyblock && rm -rf nostr_console_elf64 && wget https://raw.githubusercontent.com/curly60e/pyblock/master/pybitblock/nostr_console_pyblock/nostr_console_elf64 && chmod 777 *") + else: # Check if the file 'bclock.conf' is in the same folder + os.system("mkdir nostr_console_pyblock && cd nostr_console_pyblock && wget https://raw.githubusercontent.com/curly60e/pyblock/master/pybitblock/nostr_console_pyblock/nostr_console_elf64 && chmod 777 *") + clear() + blogo() + print(output) + responseC = input("Paste your PrivateKey: ") + os.system(f"cd nostr_console_pyblock && ./nostr_console_elf64 -k {responseC} -r wss://relay.stoner.com,wss://nostr.w3ird.tech,wss://nostr.bongbong.com,wss://nostr.hugo.md,wss://nostr.slothy.win,wss://nostr.robotechy.com,wss://nostr.nodeofsven.com,wss://nostrrelay.com,wss://nostr.mwmdev.com,wss://nostr.sandwich.farm -l") + except: + menuSelection() + def callGitNostrWinTerminal(): try: clear() @@ -3689,63 +3747,6 @@ def callGitNostrWinTerminal(): except: menuSelection() -def callGitNostrLinTerminal(): - try: - clear() - blogo() - output = render( - "Nostr Console Linux", colors=['yellow'], align='left', font='tiny' - ) - if os.path.isdir ('nostr_console_pyblock'): - os.system("cd nostr_console_pyblock && rm -rf nostr_console_linux_amd64 && wget https://raw.githubusercontent.com/curly60e/pyblock/master/pybitblock/nostr_console_pyblock/nostr_console_linux_amd64 && chmod 777 *") - else: # Check if the file 'bclock.conf' is in the same folder - os.system("mkdir nostr_console_pyblock && cd nostr_console_pyblock && wget https://raw.githubusercontent.com/curly60e/pyblock/master/pybitblock/nostr_console_pyblock/nostr_console_linux_amd64 && chmod 777 *") - clear() - blogo() - print(output) - responseC = input("Paste your PrivateKey: ") - os.system(f"cd nostr_console_pyblock && ./nostr_console_linux_amd64 -k {responseC} -r wss://relay.stoner.com,wss://nostr.w3ird.tech,wss://nostr.bongbong.com,wss://nostr.hugo.md,wss://nostr.slothy.win,wss://nostr.robotechy.com,wss://nostr.nodeofsven.com,wss://nostrrelay.com,wss://nostr.mwmdev.com,wss://nostr.sandwich.farm -l") - except: - menuSelection() - -def callGitNostrMacarmTerminal(): - try: - clear() - blogo() - output = render( - "Nostr Console Linux", colors=['yellow'], align='left', font='tiny' - ) - if os.path.isdir ('nostr_console_pyblock'): - os.system("cd nostr_console_pyblock && rm -rf nostr_console_elf64 && wget https://raw.githubusercontent.com/curly60e/pyblock/master/pybitblock/nostr_console_pyblock/nostr_console_elf64 && chmod 777 *") - else: # Check if the file 'bclock.conf' is in the same folder - os.system("mkdir nostr_console_pyblock && cd nostr_console_pyblock && wget https://raw.githubusercontent.com/curly60e/pyblock/master/pybitblock/nostr_console_pyblock/nostr_console_elf64 && chmod 777 *") - clear() - blogo() - print(output) - responseC = input("Paste your PrivateKey: ") - os.system(f"cd nostr_console_pyblock && ./nostr_console_elf64 -k {responseC} -r wss://relay.stoner.com,wss://nostr.w3ird.tech,wss://nostr.bongbong.com,wss://nostr.hugo.md,wss://nostr.slothy.win,wss://nostr.robotechy.com,wss://nostr.nodeofsven.com,wss://nostrrelay.com,wss://nostr.mwmdev.com,wss://nostr.sandwich.farm -l") - except: - menuSelection() - -def callGitNostrLinarmTerminal(): - try: - clear() - blogo() - output = render( - "Nostr Console Linux", colors=['yellow'], align='left', font='tiny' - ) - if os.path.isdir ('nostr_console_pyblock'): - os.system("cd nostr_console_pyblock && rm -rf nostr_console_linux_arm64 && wget https://raw.githubusercontent.com/curly60e/pyblock/master/pybitblock/nostr_console_pyblock/nostr_console_linux_arm64 && chmod 777 *") - else: # Check if the file 'bclock.conf' is in the same folder - os.system("mkdir nostr_console_pyblock && cd nostr_console_pyblock && wget https://raw.githubusercontent.com/curly60e/pyblock/master/pybitblock/nostr_console_pyblock/nostr_console_linux_arm64 && chmod 777 *") - clear() - blogo() - print(output) - responseC = input("Paste your PrivateKey: ") - os.system(f"cd nostr_console_pyblock && ./nostr_console_linux_arm64 -k {responseC} -r wss://relay.stoner.com,wss://nostr.w3ird.tech,wss://nostr.bongbong.com,wss://nostr.hugo.md,wss://nostr.slothy.win,wss://nostr.robotechy.com,wss://nostr.nodeofsven.com,wss://nostrrelay.com,wss://nostr.mwmdev.com,wss://nostr.sandwich.farm -l") - except: - menuSelection() - def callGitNostrSeedTerminal(): try: clear() @@ -3765,6 +3766,7 @@ def callGitNostrSeedTerminal(): input("\a\nContinue...") except: menuSelection() + #---------------------------------Cashu---------------------------------- def callGitCashu(): if not os.path.isdir('Cashu'): @@ -5167,8 +5169,8 @@ def nostrConn(): \033[1;37;40mVersion\033[0;37;40m: {} \033[1;32;40mA.\033[0;37;40m Linux x64 - \033[1;32;40mB.\033[0;37;40m Mac x64 - \033[1;32;40mC.\033[0;37;40m Linux arm64 + \033[1;32;40mB.\033[0;37;40m Linux arm64 + \033[1;32;40mC.\033[0;37;40m Mac x64 \033[1;32;40mD.\033[0;37;40m Mac arm64 (SOON) \033[1;32;40mE.\033[0;37;40m Windows \033[1;32;40mS.\033[0;37;40m Bip39 @@ -7772,14 +7774,14 @@ def menuFOnchainONLY(menuV): # Tester Donation access Menu def nostrmenu(menunos): if menunos in ["A", "a"]: callGitNostrLinTerminal() - elif menunos in ["E", "e"]: - callGitNostrWinTerminal() elif menunos in ["B", "b"]: + callGitNostrLinarmTerminal() + elif menunos in ["C", "c"]: callGitNostrMacTerminal() elif menunos in ["D", "d"]: - nostrConn() - elif menunos in ["C", "c"]: - callGitNostrLinarmTerminal() + nostrConn() + elif menunos in ["E", "e"]: + callGitNostrWinTerminal() elif menunos in ["S", "s"]: callGitNostrSeedTerminal()