Skip to content

efsn staking guide

zhaojun.sh edited this page Mar 7, 2020 · 5 revisions

FSN staking guide

FSN node supports two deployment methods:

  1. one-click deployment via docker image. docker image address: https://hub.docker.com/u/fusionnetwork

  2. source code compilation and deployment https://github.com/FUSIONFoundation/efsn

1. Docker deployment

Run the command on a Linux system:

bash -c "$(curl -fsSL https://raw.githubusercontent.com/FUSIONFoundation/efsn/master/QuickNodeSetup/fsnNode.sh)"

If you select miner during the deployment process, you need to enter the keystore file content and password. For details, please refer to: https://fusionnetworks.zendesk.com/hc/en-us/categories/360001967614-Staking-On-Fusion-MainNet

2. Source code deployment

1. Synchronize code

git clone https://github.com/FUSIONFoundation/efsn.git

2. Compile the source code(golang > 1.11):

cd efsn && make efsn

3. Config mining account

Create account:

./build/bin/efsn account new --datadir nodedata

Logs:

INFO [03-07|11:41:51.216] Maximum peer count                       ETH=25 LES=0 total=25
Your new account is locked with a password. Please give a password. Do not forget this password.
Passphrase: 
Repeat passphrase: 
Address: {157422629cbda982ff38afa87d20b2d8a23a0785}

If you also have an account, you can copy the account keystore file to nodedata/keystore/.

Config the password file:

echo "yourpassword" > password.txt

# tree
.
├── efsn
├── nodedata
│   └── keystore
│       └── UTC--2020-03-07T03-41-56.883633615Z--157422629cbda982ff38afa87d20b2d8a23a0785
└── password.txt

2 directories, 3 files

4. Run mining node

nohup ./build/bin/efsn --datadir ./nodedata/ --mine --autobt --unlock 0x157422629cbda982ff38afa87d20b2d8a23a0785 --password password.txt &

For testnet, please add the --testnet parameter.

nohup ./build/bin/efsn --testnet --datadir ./nodedata/ --mine --autobt --unlock 0x157422629cbda982ff38afa87d20b2d8a23a0785 --password password.txt &