mirror of
https://github.com/curly60e/pyblock.git
synced 2026-08-14 12:43:15 +02:00
Input changes for Path
I added a line that allow to put the path to Bitcoin-cli.
This commit is contained in:
parent
8a91e86376
commit
c0475ee0e5
1 changed files with 9 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue