From fecf0227a46124f73ed3dd1a735dbdb45fb9be6e Mon Sep 17 00:00:00 2001 From: Satoshi Nakamoto <65907137+SatoshiNakamotoBitcoin@users.noreply.github.com> Date: Sun, 25 Dec 2022 03:32:46 +0100 Subject: [PATCH] Update PyBlock.py --- pybitblock/PyBlock.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/pybitblock/PyBlock.py b/pybitblock/PyBlock.py index be71513..bd346f5 100644 --- a/pybitblock/PyBlock.py +++ b/pybitblock/PyBlock.py @@ -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"]: