Giter Club home page Giter Club logo

ergo's Introduction

Ergo

This repository contains the reference implementation of the Ergo Platform protocol, which is an alternative to the Bitcoin protocol.

Ergo Platform website: https://ergoplatform.org/

Differences from Bitcoin

Specifications

It will be a White Paper with a brief description, and also a Yellow Paper with detailed specification. At the moment, there is only Yellow Paper drafts, and currently the reference implementation code should be considered as a specification.

Installation

You can check our Wiki page for node installation and configuration guide.

Also, reference with Node Configuration File wiki page for creating your own configuration file.

Build from sources

In order to build the Ergo node from sources you need JDK (>= 1.8) and SBT to be installed on your machine.

In order to simply get a single jar run: sbt assembly - assembly would appear in target/scala-2.12/ directory.

If you want to create a package for a specific platform with launching scripts the one of the following packager commands could be chosen (depending on desired system type you want to build for):

  • universal:packageBin - Generates a universal zip file
  • universal:packageZipTarball - Generates a universal tgz file
  • debian:packageBin - Generates a deb
  • docker:publishLocal - Builds a Docker image using the local Docker server
  • rpm:packageBin - Generates an rpm
  • universal:packageOsxDmg - Generates a DMG file with the same contents as the universal zip/tgz.
  • windows:packageBin - Generates an MSI

The final build command should look like: sbt <packager_command>, example: sbt universal:packageBin. A resulted package could be found in the target/scala-2.12/<platform_type> directory.

Running the node

The node could be started in a few different ways:

  • In case you have only a jar: java -jar /path/to/ergo-<version>.jar --<networkId> -c /path/to/local.conf
  • Using start script from sbt-native-packager: sh /path/to/bin/ergo --<networkId> -c /path/to/local.conf

Available networkId options: mainnet, testnet, devnet.

Docker Quick Start

Ergo has officially supported Docker package. To run Ergo as a console application with logs in console:

sudo docker run --rm -p 9020:9020 -p 9052:9052 -v ergo-testnet:/home/ergo/.ergo ergoplatform/ergo

This will connect to Ergo testnet with default config and open ports 9020 and 9052 on host system. All data will be stored in your named Docker volume ergo-testnet.

To run specific Ergo version as a service with custom config:

sudo docker run -d \
    -p 9020:9020 \
    -p 9052:9052 \
    -v ergo:/home/ergo/.ergo \
    -v /path/on/host/system/to/myergo.conf:/etc/myergo.conf \
    ergoplatform/ergo:v2.0.3 --<networkId> -c /etc/myergo.conf

This will connect to Ergo mainnet or testnet respecting your configuration passed in myergo.conf. Every default config value would be overwritten with corresponding value in myergo.conf. This also would store your data in named Docker volume ergo (if you change default data location in your config file, do not forget mount ergo volume to new location in container) and open ports 9007 and 9052 on host system. Note that 9052 is used for API, so it is ok not to open it into whole Internet. Also, Ergo node works normally under NAT, so you can keep closed your 9007 port too, hence other nodes could not discover and connect to yours one, only your node could initiate connections.

Acknowledgements

YourKit supports open source projects with its full-featured Java Profiler. YourKit, LLC is the creator of YourKit Java Profiler and YourKit .NET Profiler, innovative and intelligent tools for profiling Java and .NET applications.

ergo's People

Contributors

catena2w avatar kushti avatar oskin1 avatar mike-aksarin avatar terjokhin avatar greenhat avatar tolsi avatar andyceo avatar victormikheev avatar ergomorphic avatar builat avatar ra3dnr avatar scalahub avatar aslesarenko avatar sergelogvinov avatar kaichaosun avatar nazeim avatar goral09 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.