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