Update spvblock.py

This commit is contained in:
Satoshi Nakamoto 2022-12-31 00:01:42 +01:00 committed by GitHub
parent f06dd7f8ba
commit 27719512d8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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