Skip to content

Instantly share code, notes, and snippets.

@emc2foundation
Last active October 8, 2018 05:22
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save emc2foundation/cdd1b4d7c91675f51965116257024736 to your computer and use it in GitHub Desktop.
Save emc2foundation/cdd1b4d7c91675f51965116257024736 to your computer and use it in GitHub Desktop.
EMC2 notary node set up instructions with config file.
rpcuser=einsteiniumuser
rpcpassword=probablychangethis
rpcbind=127.0.0.1
rpcallowip=127.0.0.1
rpcworkqueue=256
txindex=1
server=1

Make sure to open up port 41878 (EMC2 p2p port) on your firewall!
You can see your notary address on EMC2 here: https://deckersu.github.io/notaries_addresses.html

This script can be used to generate various kinds of WIFs:
https://github.com/DeckerSU/komodo_scripts/blob/master/genkomodo.php

To build EMC2 (Einsteinium) Core first clone official repo: git clone https://github.com/emc2foundation/einsteinium.git
Default branch with latest release code is "master" so make sure you are on that branch.

Then, in order to build EMC2 Core follow the instructions document found here: https://github.com/emc2foundation/einsteinium/blob/master/doc/build-unix.md

Once wallet is built use einsteinium.conf located in this gist as your config file. Make sure you change rpcuser and password for the one you want to use.
Default config file path on Linux is: /home/[username]/.einsteinium/einsteinium.conf

Run emc2 deamon with following command:
./src/einsteiniumd
Wait until wallet is fully synchronized with the network (this could take a while, aprx 2 hours).

After wallet is synced run the following command:
./src/einsteinium-cli importprivkey NOTARY_WIF
this could take a while and RPC will timeout, but it will still work.

Stop einsteinum core:
./src/einsteinium-cli stop

Restart with pubkey of imported NN address:
./src/einsteiniumd -pubkey=NOTARY_PUBKEY

To look at only dpow-related log lines:
tail -f ~/.einsteinium/debug.log | grep dpow:

If you encounter any problem please feel free to contact us on: developer@emc2.foundation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment