mirror of
https://github.com/curly60e/pyblock.git
synced 2026-08-15 12:50:38 +02:00
Update spvblock.py
This commit is contained in:
parent
5b291f74b7
commit
bb57404bcd
1 changed files with 7 additions and 9 deletions
|
|
@ -3862,22 +3862,20 @@ def callGitBpytop():
|
|||
#---------------------------------UTXOracle----------------------------------
|
||||
def callGitUTXOracle():
|
||||
try:
|
||||
conn = """curl -s 'https://utxo.live/oracle/' | html2text | grep -E "Date" -A 77 | grep -v "Date""""
|
||||
a = os.popen(conn).read()
|
||||
clear()
|
||||
blogo()
|
||||
closed()
|
||||
output = render(
|
||||
"UTXORACLE", colors=['yellow'], align='left', font='tiny'
|
||||
"utxoracle", colors=['yellow'], align='left', font='tiny'
|
||||
)
|
||||
if os.path.isdir ('utxoracle'):
|
||||
print("...Reading UTXOSet...")
|
||||
else: # Check if the file 'bclock.conf' is in the same folder
|
||||
os.system("mkdir utxoracle && cd utxoracle && wget https://utxo.live/oracle/UTXOracle.py")
|
||||
clear()
|
||||
blogo()
|
||||
|
||||
print(output)
|
||||
os.system(f"cd utxoracle && python3 UTXOracle.py")
|
||||
print(a)
|
||||
input("\a\nContinue...")
|
||||
except:
|
||||
menuSelection()
|
||||
pass
|
||||
#---------------------------------Cashu----------------------------------
|
||||
def callGitCashu():
|
||||
if not os.path.isdir('Cashu'):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue