def route_attack2_replace_blockchain(): Blockchain_Attack.attack2_replace_blockchain(blockchain) response = { 'message': 'Run consensus in other nodes', } return jsonify(response), 200
def route_attack1_invalid_block(): Blockchain_Attack.attack1_invalid_hashchain(blockchain); response = { 'message' : 'I modified current blockchain. Try /block/list again!', } return jsonify(response),200
def route_attack0_invalid_timestamp(): Blockchain_Attack.attack0_invalid_timestamp(blockchain) response = { 'message': 'I modified current blockchain. Try /block/list again!', } return jsonify(response), 200