Skip to content

Syncing the EOS blockchain data to mongodb database.

Notifications You must be signed in to change notification settings

threadshare/eos-sync

Repository files navigation

EOS-Sync

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

点击查看中文

Clone project

git clone git@github.com: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.ini /data/eos/nodeos-data-volume/nodeos-data-mainnet
cp -r genesis.json /data/eos/nodeos-data-volume/nodeos-data-mainnet

The third step, start synchronizing data:

docker-compose -f docker-compose-mainnet.yml up -d

View synchronized data

Enter mongo to view synchronized data:

docker-compose -f docker-compose-mainnet.yml 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

About

Syncing the EOS blockchain data to mongodb database.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages