From e24297a6565afbed33430ffae545dd7cdd13aa00 Mon Sep 17 00:00:00 2001 From: kumar Date: Wed, 4 Nov 2020 22:10:29 +0530 Subject: [PATCH] UI change: clear the screen before Welcome message --- simpleCoin/miner.py | 3 +++ simpleCoin/wallet.py | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/simpleCoin/miner.py b/simpleCoin/miner.py index 16c9252..f601c2d 100644 --- a/simpleCoin/miner.py +++ b/simpleCoin/miner.py @@ -1,3 +1,4 @@ +from os import system import time import hashlib import json @@ -249,6 +250,8 @@ def validate_signature(public_key, signature, message): def welcome_msg(): + # Clear the screen before welcome message + _ = system('clear') print(""" =========================================\n SIMPLE COIN v1.0.0 - BLOCKCHAIN SYSTEM\n =========================================\n\n diff --git a/simpleCoin/wallet.py b/simpleCoin/wallet.py index 7eeb992..e630375 100644 --- a/simpleCoin/wallet.py +++ b/simpleCoin/wallet.py @@ -17,7 +17,7 @@ transaction with same timestamp was added, they should remove it from the node_pending_transactions list to avoid it get processed more than 1 time. """ - +from os import system import requests import time import base64 @@ -126,6 +126,8 @@ def sign_ECDSA_msg(private_key): if __name__ == '__main__': + # Clear the screen before welcome message + _ = system('clear') print(""" =========================================\n SIMPLE COIN v1.0.0 - BLOCKCHAIN SYSTEM\n =========================================\n\n