Skip to content

efsn staking guide

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

FSN staking guide

This document mainly describes how to deploy FSN node and staking.

Deploy FSN node

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

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 compilation and deployment

  1. Synchronize code

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

  1. Compile the source (golang > 1.11):

cd efsn && make efsn

  1. Create/config mining account

./build/bin/efsn account new --datadir nodedata 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}

  1. Run mining node

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

For testnet, please add the --testnet parameter.

nohup ./build/bin/efsn --testnet --datadir ./testnetdata/ --mine --autobt --unlock 0x8888bf3930c1201a21133937ad5c83eb4ded8888 --password passwd.txt --mine --autobt &

As a synchronized node, it can use the --gcmode=archive parameter to query all historical data. At block height 770,000, it occupies more than 100G of hard disk space. In this mode, it is necessary to prepare server storage space in advance (>300G is recommended).The default non-archive mode runs about 1G, but it is not possible to query some historical data.