mirror of
https://github.com/curly60e/pyblock.git
synced 2026-08-17 13:07:17 +02:00
Update PyBlock.py
This commit is contained in:
parent
cc69210e6f
commit
fecf0227a4
1 changed files with 14 additions and 0 deletions
|
|
@ -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"]:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue