Giter Site home page Giter Site logo

aleph-testnet's Introduction

Aleph-Testnet

Aleph Zero Blockchain python scripts for running TestNet and DevNet.

Usage instructions

  • Create an account on AWS, set up credentials, and a default region as described here.
  • Put keys for ssh in key_pairs (both the private key e.g. aleph.pem and its fingerprint (aleph.fingerprint))
  • Put SSL certificates in the nginx/cert directory (self-signed.crt and self-signed.key)
  • Make sure you have the aleph node binary inside a bin directory (needed for committee key generation step, cp <...>/aleph-node/target/release/aleph-node bin/)
  • Install packages needed for orchestrating experiments: GNU parallel, fabric, zip, unzip and Python 3 packages (with pip install -r requirements.txt).
  • Then, run ipython -i shell.py. This opens a shell with procedures orchestrating experiments. The main procedure is setup_nodes(n_processes, chain_type, regions, instance_type, volume_size, tag) that prepares the n_processes spread uniformly across specified regions using EC2 machines of instance_type. E.g. setup_nodes(4, 'dev', ['eu-west-1'], 't2.micro', 8, 'my_devnet'). After it succeeds, the dispatch task has to be run.
  • run_task('some-task', tag=tag) procedure calls the task some_task defined in fabfile.py for all machines that was created with the tag, note the change s/-/_,
  • run_cmd(shell_cmd, tag) dispatches the shell_cmd on all machines.
  • To terminate instances run ti(tag).

TODOs

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.