Skip to content

Instantly share code, notes, and snippets.

@lucas-maicoin
Last active October 26, 2018 11:56
Show Gist options
  • Save lucas-maicoin/8bcb48f91e720d87262e216c67f6711c to your computer and use it in GitHub Desktop.
Save lucas-maicoin/8bcb48f91e720d87262e216c67f6711c to your computer and use it in GitHub Desktop.
EOS build process

1. build

$ git clone https://github.com/EOS-Mainnet/eos -b mainnet-1.4.1
$ cd eos && git submodule update --init --recursive
$ ./eosio_build.sh -s EOS
$ cd build && make install

2. generate config.ini and download genesis.json

wget https://raw.githubusercontent.com/CryptoLions/EOS-MainNet/master/genesis.json
nodeos --genesis-json mainnet-genesis.json
# press ctrl-c to exit

3. add some peers to config.ini

vim ~/.local/share/eosio/nodeos/config/
# some peers can be found here: 
# https://eosnodes.privex.io/?config=1
# https://github.com/CryptoLions/EOS-MainNet/blob/master/config.ini#L88

4. add plugins to config.ini

plugin = eosio::chain_api_plugin 
plugin = eosio::http_plugin 
plugin = eosio::history_api_plugin
# plugin = eosio::wallet_api_plugin ( not required after v1.2)

5. start node process to sync blocks

nodeos
# if needs to resync, try `nodeos --delete-all-blocks`
# if nodeos does not restart cleanly, try `nodeos --replay-blockchain`
# if that does not work, try `nodeos --hard-replay-blockchain`

6. start wallet process if it isn't running

keosd --http-server-address=127.0.0.1:8900 --wallet-dir=/home/ubuntu/eosio-wallet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment