cosme12 / SimpleCoin

Just a really simple, insecure and incomplete implementation of a blockchain for a cryptocurrency made in Python as educational material. In other words, a simple Bitcoin clone.
http://copitosystem.com
MIT License
1.78k stars 395 forks source link

Added a condition if there is a post request and update request dosen't match the miner's address. #49

Open abhinavsagar opened 5 years ago

abhinavsagar commented 5 years ago

When the miner receives a POST request from the wallet and the update request dosen't match the miner's address then display appropriate message to the user.

elif request.method == 'POST' and request.args.post("update") !=MINER_ADDRESS: print("Transaction submission failed. Address not verified\n")