From ee2f554376249220636170a3c96e95e0ecf557dd Mon Sep 17 00:00:00 2001 From: Satoshi Nakamoto <65907137+SatoshiNakamotoBitcoin@users.noreply.github.com> Date: Wed, 16 Mar 2022 20:02:11 +0100 Subject: [PATCH] Update spvblock.py --- pybitblock/SPV/spvblock.py | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/pybitblock/SPV/spvblock.py b/pybitblock/SPV/spvblock.py index d4b977a..bc2faf4 100644 --- a/pybitblock/SPV/spvblock.py +++ b/pybitblock/SPV/spvblock.py @@ -650,9 +650,18 @@ You can decode that block in HEX and see what's inside.\033[0;37;40m""") break def runthenumbers(): - bitcoincli = " gettxoutsetinfo" - os.system(path['bitcoincli'] + bitcoincli) - input("\nContinue...") + try: + conn = """curl -s https://get.txoutset.info/ """ + a = os.popen(conn).read() + clear() + blogo() + closed() + output = render("run the numbers", colors=['yellow'], align='left', font='tiny') + print(output) + print(a) + input("\a\nContinue...") + except: + pass def countdownblock(): bitcoinclient = f'{path["bitcoincli"]} getblockcount'