Code Monkey home page Code Monkey logo

ohie's Introduction

OHIE - Blockchain scaling

The repository contains C++ implementation of OHIE. The technical aspects of the approach are described in our paper.

Dependencies

The code has been tested on Ubuntu 16.04 with Boost ASIO library installed:

sudo apt-get install libboost-all-dev

Quick Test

  1. Compile the code make
  2. Run the script quick_test.sh

This will run OHIE network of 3 nodes -- their outputs are written in outputnodeX.txt. So, while running, for example, check the output with tail -f outputnode1.txt. At the end, make sure to kill the network, i.e. fuser -k *.

Parameters

There are many parameters that can be configured, starting form the IP address of the nodes, to number of chains, block sizes, mining times, etc:

  • For most widely used parameters, check the file _configuration.
  • For a full list of parameters, check configuration.cpp.
  • The list of network nodes (ip:port) is defined in a separate file, check _peers
  • To start a single node use
./Node <portNumber> <file_peers> 

Amazon EC2 Scripts

Large scale experiments (based on the above code) were conducted on Amazon EC2, using the scripts from amazonEC2 folder.

Note: For each AWS region you want to use, make sure you have the public key written in a file and stored in keys folder, and have the correct launching templates. Update regions.py to reflect the file paths and the templates.

ohie's People

Contributors

ivicanikolicsg avatar wangxuw avatar

Stargazers

byeddy avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.