Created
March 23, 2019 21:16
-
-
Save morris-ribs/83c924a347384dae1aba432064dbaab7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import requests | |
import json | |
from flask import Flask, request, Response | |
from flask_cors import CORS | |
from blockchain import Blockchain | |
app = Flask(__name__) | |
CORS(app) | |
app_port = sys.argv[1] | |
current_node_url = "http://localhost:"+app_port | |
b = Blockchain(current_node_url) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment