The currently deployed network (165.22.134.182) includes 2 producers running on same server. The network producer status can be viewed here:
https://feesimpletracker.io/producers
The following instructions describe the steps for adding a new producer to the network. For this example, the new producer named prodwallet11
is located on the feesimplewallet
server.
Create a new account named prodwallet11
with https://fsmanager.io
Can also request faucet with https://feesimplewallet.io/
Remember to store the private key :)
A running producer normally occupies between 1.5GB RAM and 2GB RAM. However, your server should have min 4GB RAM.
Access to the server.
Download and install the EOSIO software (including nodeos
, cleos
and keosd
) version 1.6
https://github.com/EOSIO/eos/releases/tag/v1.6.0
Git clone the following:
git clone https://github.com/FeeSimple/add-block-producer.git
cd in the sub-folder start-new-producer
To start the producer:
-
Set the params
producerKeyPair
andproducerName
in the scriptscript_start_producer.sh
-
To start the producer, run this cmd
./script_start_producer.sh
-
To see log output, run this cmd
tail -f stderr
-
To restart the producer with preserved blockchain data, run this cmd
./script_restart_producer.sh
.
This can be done on your localhost
or any other server that has the cleos
and keosd
installed.
Execute the following commands:
- Start wallet manager
keosd
keosd --http-server-address=127.0.0.1:6666 --http-validate-host=false &
- Create wallet (if not yet)
cleos wallet create --to-console
or unlock the existing wallet
cleos --wallet-url http://localhost:6666 wallet unlock
- Check the list of current producers
cleos --wallet-url http://localhost:6666 --url http://165.22.134.182:8877 system listproducers
- Import priv key of the producer account to be registered (e.g.
prodwallet11
)
cleos --wallet-url http://localhost:6666 --url http://165.22.134.182:8877 wallet import --private-key 5JhV5JtjxfKH8rYmoq75fSa8kJMKexLnB74cC48C1uCvgCwZBzR
- Register the producer with its pub key
cleos --wallet-url http://localhost:6666 --url http://165.22.134.182:8877 system regproducer prodwallet11 EOS7d4fQXjJnvsverft9ooGd2YnkzSd1xRLgFAUA6BrwDctUavxtt https://prodwallet11.com/EOS7d4fQXjJnvsverft9ooGd2YnkzSd1xRLgFAUA6BrwDctUavxtt
- Approve the producer from any other user account (e.g.
usertrung123
)
cleos --wallet-url http://localhost:6666 --url http://165.22.134.182:8877 system voteproducer approve usertrung123 prodwallet11
Notice
Private key of the voting user account (e.g. usertrung123
) must be imported before being able to use it
- Check if the new producer is incorporated into the network by viewing this:
https://feesimpletracker.io/producers
Notice
The producer name is identical to the account name used in the command system regproducer
This is done by executing the following commands:
// Unapprove producer
cleos --wallet-url http://localhost:6666 --url http://165.22.134.182:8877 system voteproducer unapprove usertrung123 prodwallet11
// Unregister as producer
cleos --wallet-url http://localhost:6666 --url http://165.22.134.182:8877 system unregprod prodwallet11
Notice
After unregistered, the producer is still producing blocks and is not removed from the active producer list. An explanation can be found here:
To turn off the producer so that it stops producing blocks, simply terminate the producer process.
// Find the producer proc ID
ps aux | grep nodeos
// Kill it
kill -9 {PID}
ssh root@165.22.134.182
pm2 status
pm2 restart all
Open this link with a web browser:
http://165.22.134.182:8877/v1/chain/get_info
cd ~/eos-release1.1/tutorials/bios-boot-tutorial
pm2 delete all
./cleanup.sh`
pm2 start script_bios_boot.sh
cd ~/bios_boot_script
killall mongod
./script_mongo_start.sh
Observe MongoDB server log with ./script_mongo_view_log.sh
cd ~/eos-tracker/nodeos/client_node_connect_to_network_mongo
rm -rf blocks
rm -rf state
pm2 start script_client_nodeos.sh