Input changes for Path

I added a line that allow to put the path to Bitcoin-cli.
This commit is contained in:
curly60e 2020-05-06 17:04:20 -03:00 committed by GitHub
parent 8a91e86376
commit c0475ee0e5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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