Update PyBlock.py

This commit is contained in:
Satoshi Nakamoto 2022-12-25 03:32:46 +01:00 committed by GitHub
parent cc69210e6f
commit fecf0227a4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -656,6 +656,17 @@ def dumppk(): #
except:
walletmenuLOCALOnchainONLY()
def wallmenu(): #
try:
clear()
blogo()
output = render("Wallet info", colors=['yellow'], align='left', font='tiny')
print(output)
bitcoincli = " getwalletinfo"
os.system(path['bitcoincli'] + bitcoincli)
input("\a\nContinue...")
except:
walletmenuLOCALOnchainONLY()
def getblockcount(): # get access to bitcoin-cli with the command getblockcount
bitcoincli = " getblockcount"
@ -1414,6 +1425,7 @@ def walletmenuLOCALOnchainONLY():
\u001b[38;5;202mA.\033[0;37;40m Deposit
\u001b[38;5;202mB.\033[0;37;40m Show transactions
\u001b[38;5;202mC.\033[0;37;40m Dump Private Key
\u001b[38;5;202mD.\033[0;37;40m Info
\u001b[33;1mR.\033[0;37;40m Return
\n\n\x1b[?25h""".format(n,d['blocks'], version, checkupdate()))
walletmenuLOCALcontrolAOnchainONLY(input("\033[1;32;40mSelect option: \033[0;37;40m"))
@ -6209,6 +6221,8 @@ def walletmenuLOCALcontrolAOnchainONLY(walletmnu):
gettransactionsOnchain()
elif walletmnu in ["C", "c"]:
dumppk()
elif walletmnu in ["D", "d"]:
wallmenu()
def bitcoincoremenuLOCALcontrolO(oreturn):
if oreturn in ["A", "a"]: