Git Product home page Git Product logo

neo-node's Introduction

neo-logo

Current TravisCI build status. License Current neo-cli version.

Currently, neo-cli and neo-gui are integrated into one repository. You can enter the corresponding folder and follow the instructions to run each node.

Prerequisites

You will need Window, Linux or macOS. Ubuntu LTS 14, 16 and 18 are supported.

Install .NET Core.

On Linux, install the LevelDB and SQLite3 dev packages. E.g. on Ubuntu or Fedora:

sudo apt-get install libleveldb-dev sqlite3 libsqlite3-dev libunwind8-dev # Ubuntu
sudo dnf install leveldb-devel sqlite sqlite-devel libunwind-devel # Fedora

On macOS, install the LevelDB package. E.g. install via Homebrew:

brew install --ignore-dependencies --build-from-source leveldb

On Windows, use the Neo version of LevelDB.

Download pre-compiled binaries

See also official docs. Download and unzip the latest release.

On Linux, you can type the command:

./neo-cli

On Windows, you can just double click the exe to run the node.

Compile from source

Clone the neo-node repository.

For neo-cli, you can type the following commands:

cd neo-node/neo-cli
dotnet restore
dotnet publish -c Release

Next, you should enter the working directory (i.e. /bin/Debug, /bin/Release) and paste the libleveldb.dll here. In addition, you need to create Plugins folder and put the LevelDBStore or RocksDBStore or other supported storage engine, as well as the configuration file, in the Plugins folder.

Assuming you are in the working directory:

dotnet neo-cli.dll 

For neo-gui, you just need to enter the neo-node/neo-gui folder and follow the above steps to run the node.

Build into Docker

Clone the neo-node repository.

cd neo-node
docker build -t neo-cli .
docker run -p 10332:10332 -p 10333:10333 --name=neo-cli-mainnet neo-cli

After start the container successfully, use the following scripts to open neo-cli interactive window:

docker exec -it neo-cli-mainnet /bin/bash
screen -r node

Logging

To enable logs in neo-cli, you need to add the ApplicationLogs plugin. Please check here for more information.

Bootstrapping the network.

In order to synchronize the network faster, please check here.

Usage

For more information about these two nodes, you can refer to documentation to try out more features.

neo-node's People

Contributors

ashuaidehao avatar belane avatar coranos avatar corollari avatar davewk avatar erikzhang avatar fabwa avatar fyrchik avatar hal0x2328 avatar intelfx avatar ixje avatar jim8y avatar jsolman avatar lock9 avatar lysandergg avatar melanke avatar metachris avatar peterlinx avatar scottie avatar shargon avatar sjors avatar superboyiii avatar tiz-sharp avatar tommo-l avatar txhsl avatar vncoelho avatar wturyn-cf avatar yongjiema avatar zhangtao1596 avatar

Watchers

 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.