Giter Site home page Giter Site logo

ethermint's Introduction

Ethermint

Overview

Ethereum as a TMSP application.

This means running an Ethereum EVM-based network that uses Tendermint consesnsus instead of proof-of-work. The way it's built makes it easy to use existing Ethereum tools (geth attach, web3) to interact with the node.

Docker image

An easy way to get started is to use the docker image:

docker run kobigurk/tmsp-ethereum

If you prefer instead to build locally, go to the docker directory and run docker built -t ethermint ..

After running the container, you can attach to it:

  • First, find its ID using docker ps and use it to find its IP using docker inspect CONTAINER_ID | grep IPAddress.
  • Use the IP address to attach with geth attach rpc:http://CONTAINER_IP:8545.

Development and building locally

Ethermint uses glide for package management. After running glide install, you may build the ethermint executable by changing to the cmd/ethermint directory and running go build ..

Running

Ethermint

You need to init the genesis block for tendermint and geth. This part is still very much a work-in-progress, but it's possible to work with it now. By running ./ethermint -datadir data init genesis.json, both the tendermint genesis and geth genesis will be generated. The tendermint genesis resides in ~/.tendermint. I recommend using the genesis.json that exists in the dev directory as it gives an initial balance to an address whose private key is in the geth_data folder. Its password is 123.

Mining reward and validator management

Ethermint implements hooks that can be customized for mining rewards and validator management. The default at this point is to not reward and not change the validator set. Example strategies can be found in the strategies folder.

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.