def list_blocks(): return BlockController.list_blocks()
def find_by_block_number(block_number): return BlockController.find_by_block_number(block_number)
def receive_block(): return BlockController.receive_block(request, miner_url)
def create_block(): return BlockController.create_block(miner_url)
def fetch_all_blocks(): return BlockController.fetch_all_blocks()
def receive_block(): return BlockController.receive_block(request)
def mine(): node_number = str(app.config['NODE_NUMBER']) node_url = 'http://node' + node_number + ':500' + node_number miner_address = app.config['NODE_ADDRESS'] return BlockController.mine(node_url, miner_address)