diff --git a/pybitblock/PyBlock.py b/pybitblock/PyBlock.py index e13fe6e..017342f 100644 --- a/pybitblock/PyBlock.py +++ b/pybitblock/PyBlock.py @@ -33,7 +33,7 @@ from PIL import Image from robohash import Robohash -version = "1.1.12-alpha6" +version = "1.1.12-alpha7" def close(): print("<<< Ctr + C.\n\n") @@ -87,7 +87,7 @@ def slHASHConn(): input("\a\nContinue...") except: pass - + def slPOOLConn(): try: conn = """curl -s https://insights.braiins.com/api/v1.0/pool-stats?json=1 | jq -C '.[]' | tr -d '{|}|]|,' | xargs -L 1 | grep -E " " """ @@ -101,7 +101,7 @@ def slPOOLConn(): input("\a\nContinue...") except: pass - + def slHISTConn(): try: conn = """curl -s https://insights.braiins.com/api/v1.0/hashrate-and-difficulty-history?json=1 | jq -C '.[]' | tr -d '{|}|]|,' | xargs -L 1 | grep -E " " """ @@ -115,7 +115,7 @@ def slHISTConn(): input("\a\nContinue...") except: pass - + def getPoolSlushCheck(): s = "" @@ -5358,7 +5358,7 @@ def mainmenuLOCALcontrolOnchainONLY(menuS): #Execution of the Main Menu options clear() blogo() callGitWardenTerminal() - + elif menuS in ["ma"]: clear() blogo() @@ -5374,7 +5374,7 @@ def mainmenuLOCALcontrolOnchainONLY(menuS): #Execution of the Main Menu options elif menuS in ["md"]: clear() blogo() - slHISTConn() + slHISTConn() elif menuS in ["mm"]: clear() blogo() diff --git a/pybitblock/nodeconnection.py b/pybitblock/nodeconnection.py index ee21b8b..95bff8b 100644 --- a/pybitblock/nodeconnection.py +++ b/pybitblock/nodeconnection.py @@ -713,7 +713,7 @@ def localchatsendB(): amount = input("\nAmount in sats: ") else: break - os.system("""lncli sendpayment --keysend --d=""" + node + " --amt=" + amount + """ --data 7629171=""" + hex_encoded_message + """) + os.system("""lncli sendpayment --keysend --d=""" + node + " --amt=" + amount + """ --data 7629171=""" + hex_encoded_message) input("\nContinue...") except: pass @@ -738,7 +738,6 @@ def localchatlistB(): def localchatsendC(): try: - try: closed() print("\n\tWrite.\n") lncli = " sendpayment " @@ -749,7 +748,7 @@ def localchatsendC(): hex_encoded_message = encoded_message.hex() print(encoded_message.hex()) input("\nContinue...") - + while True: if amount in ["", "0"]: amount = input("\nAmount in sats: ")