-
Notifications
You must be signed in to change notification settings - Fork 33
efsn staking guide
FSN node supports two deployment methods:
-
one-click deployment via docker image. docker image address: https://hub.docker.com/u/fusionnetwork
-
source code compilation and deployment https://github.com/FUSIONFoundation/efsn
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
git clone https://github.com/FUSIONFoundation/efsn.git
cd efsn && make efsn
./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/
.
echo "yourpassword" > password.txt
# tree
.
├── efsn
├── nodedata
│ └── keystore
│ └── UTC--2020-03-07T03-41-56.883633615Z--157422629cbda982ff38afa87d20b2d8a23a0785
└── password.txt
2 directories, 3 files
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 &