diff --git a/Python-BlockClock.py b/Python-BlockClock.py index 520fdfd..83182b5 100644 --- a/Python-BlockClock.py +++ b/Python-BlockClock.py @@ -1,14 +1,18 @@ import os import time as t + def getblock(): #get access to bitcoin-cli with the command getblockchaininfo - bitcoincli = "PUT YOUR BITCOIN-CLI PATH WITH THE ARGUMENT 'getblockchaininfo'" - os.system(bitcoincli) - + bitcoincli = " getblockchaininfo" #get blockchain information + os.system(path + bitcoincli) + def clear(): #clear the screen os.system('cls' if os.name=='nt' else 'clear') - - + +clear() +path = input("Path to your Bitcoin-cli: ") + + while True: #Loop clear() #call clear function that clears the screen getblock() #call getblock function