Giter Site home page Giter Site logo

eos-sync's Introduction

EOS-Sync

Quickly set up the EOS main network data synchronization to the mongodb database, operating steps:

点击查看中文

Install Dependencies

Clone project

git clone [email protected]:EOSpace/eos-sync.git
cd eos-sync

Setup in 5 seconds using the shell

./run.sh

Setup manually in 1 minute

The first step, create the desired directory:

mkdir -p /data/eos/nodeos-data-volume/nodeos-data-mainnet/mongo
mkdir -p /data/eos/nodeos-data-volume/nodeos-data-mainnet/data

The second step is to prepare the configuration file:

cp -r config /data/eos/nodeos-data-volume/nodeos-data-mainnet

The third step, start synchronizing data:

docker-compose -f docker-compose-mainnet-init.yaml up -d

View synchronized data

Enter mongo to view synchronized data:

docker-compose -f docker-compose-mainnet-init.yaml exec mongo /bin/bash
mongo admin -u root -p 111222

The synchronization result is as follows:

> use EOS;
switched to db EOS
> show tables;
accounts
actions
block_states
blocks
transaction_traces
transactions

Stop/Restart/Replay syncing

To stop the syncing process:

docker-compose -f docker-compose-mainnet.yaml down

To restart the syncing process:

docker-compose -f docker-compose-mainnet.yaml down
docker-compose -f docker-compose-mainnet.yaml up -d

To replay the blockchain:

docker-compose -f docker-compose-mainnet-replay.yaml down
docker-compose -f docker-compose-mainnet-replay.yaml up -d

eos-sync's People

Contributors

jafri avatar noprom avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

mazhuping

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.