Hi, now I’m going to present a tutorial for Polkadot, I’m very excited about the next release of the mainnet network because it comes from the hand of Gav one of the creators of Ethereum and Founder of Parity, with all of this precedent, you can't ask for more.

Learn more about Polkadot

https://polkadot.network/

This is a simple guide and is not the proper or safe configuration for a network, you must take into account security measures before validating or connecting a server to a network. Having said that, we proceed.

A) Install from scratch

Let’s update the operating system set the time and install tools

sudo apt update && sudo apt upgrade -y sudo apt-get install build-essential sudo apt install pkg-config dpkg-reconfigure locales

We are going to expand the number of open files in Ubuntu

#check your user's per-process open file limit

ulimit -Sn

​

​#increase username's per process limit sudo vi /etc/security/limits.conf #Add this for update username soft nofile 2048

​

sudo reboot now

To install Polkadot we must install Rust to assist the installation, if you already have it installed you should only update it.

Instalar rust



sudo apt install make clang pkg-config libssl-dev curl https://sh.rustup.rs -sSf | shsudo apt install make clang pkg-config libssl-dev

To update Rust

rustup update

Install P olkadot PoC-4

We will install like

git clone https://github.com/paritytech/polkadot.git #For update start here cd polkadot cargo clean git checkout v0.4 git pull origin v0.4 ./scripts/init.sh ./scripts/build.sh cargo build --release

Depending on the hardware you can have a coffee or watch a series.

Ubuntu 18.04 2Cores 8GB RAM = 29m13s for done.

can check the installed version

polkadot — version

#polkadot 0.4.4-aa49754-x86_64-linux-gnu

Uninstall Polkadot

To uninstall it in less than what it took to install it

cargo uninstall polkadot

Synchronize the database

After having completed the installation 100% ok, you can start Polkadot and synchronize the last block.

polkadot --chain alex

To know the state of the network and the last block

https://telemetry.polkadot.io/#/Alexander

Synchronizing the last block may take more or less depending on your bandwidth, but it sure takes more than an hour.

You can also visit the Web Portfolio to explore Polkadot and create accounts to do Stake, delegate and more.

https://polkadot.js.org/apps/#/explorer

Create accounts to be a Validator

If your intention is to be a validator you will need to create three accounts

Two accounts to control DOTS coins and another to sign blocks

To differentiate the accounts we will call them:

Stash

Controller

Session (most be ed25519 )

For stash and controller accounts, it is allowed to use the default one sr25519 cryptography for the derivation of the key. BUT, when creating the Session Key make sure to select Edwards (ed25519) as an option Key pair crypto type in the Advanced creation options . Also, make sure to select seed and save it to use later when you start the validator node.

First, let’s create a Stash account

Create a Controller account

Repeat the steps, remember to save the seed to recover the account. For each account, you must select a password and save it.

Create a Session account:

Remember to save the key and make a backup for each account to recover them whenever you want.

At the end, you should have three accounts created and three backup files saved in local.

Get coins Testnet DOTs

To continue forward if you want to validate or delegate you will need coins with no value in the market that are free and you must request them.

Two options

Polkadot Faucet -300mDOTs every 24 hours for making a tweet.

Blockxlabs Faucet -You must register with the email.

If none of the above has worked for you, you can go to the official RIOT Polkadot chat and request a DOTs test in the chat Polkadot Watercooler

You must request the testnet coins in the account you have created called STASH or CONTROLLER, in these two accounts, you must have coins to be able to make transactions and stake. You will need a minimum of coins the current regulations require 100mDOTs (AKA 0.1 DOTs) is the minimum for the account to exist, you must have more if you want to make transactions and pay the fees. You can request the coins in the STASH account and transfer to the CONTROLLER the ones you want.

The account called SESSION should not have coins and it is not recommended that you have them.

Set up accounts to validate

To configure the validator we must configure the accounts, AKA next step.

Bond DOTs

https://polkadot.js.org/apps/#/staking/actions

Go to Staking / Account actions

When you do STAKE AkA Bond Funds; You get reward DOTs but you can also lose them for a slashed event. Stake is the action by which you ensure the network by making your DOTs serve as secured to the network, at any time you can stop staking, the coins are in your power at all times.

To configure the accounts:

The STASH account. BOND the DOTs of this account, these will make aKa Delegate stake. The Controller account. This account will decide when to start and stop Validate. The Session account. This account will be the one that will initiate the validator node.

To begin, first go to the Staking / Account actions page in the Polkadot portfolio panel, you will see the three accounts previously created.

Select the STASH account, in this example we have 200mDOTs, click on Bonds Founds, we will pay 100 mDOTs.

In the controller account, the account previously created as controller.

Value Bond will represent the total of the coins you want to stake, you can not use all the DOTs because you need to pay for the fees, at any time you can pay more or make an unbound, the period to recover them and have them available to transfer others will be 600 blocks.

Payment destination is the account where you want to send the obtained rewards. for more information about it here.

Once you have everything as explained, click on Bond with the Stash account password.

Configure the session Key

Now you must see the Set Session Key and Nominate button available in the Controller account.

Choose Set Session Key.

Select the Session account created above and click on Set Session Key.

Staking

Before this step, the node must be synchronized and you must stop it to start it with the validator key if your intention is to stake, before configuring it in the wallet.

You open the terminal, stop the node (CTRL + c) and start the node again with the seed of the previously created account Session with the following command.

polkadot \

--chain alex \

--validator \

--key <SESSION_ACCOUNT_SEED> \

--name <VALIDATOR_NAME_ON_TELEMETRY> \

--telemetry-url ws://telemetry.polkadot.io:1024

Then you must go to the Polkadot Substrate scanner Telemetry, after a few seconds you should be able to see the information of your node in the ALEXANDER network in the browser.

If you can not see the data of your node and the last block is not synchronized, you should ask for help in the chat, but if everything is fine, you must go to the next step.

Once the node is active and shown in Telemetry we must return to the portfolio to make Staking

Now you should be able to see that the controller account now has validate and nominate as available buttons, click on Validate

Unstake threshold represents how many times you want to be reported offline before being slashed and removed from the Validators set.

Payment preferences how much you will have of the rewards and how many you will distribute among your delegates. More info here.

Once this is all right you click on Stake

What is slashed?

It is a penalty because your node has been offline or unavailable, or because your validator tries to sign two blocks at the same time.

Validator Slashed = pierden DOTs el Validador y sus delegados.

Finally, go to Staking apps, select the tab “Satking Overview”, in this screen we can see the list of active slots and the number of Validators working, in addition, to see how many validators are in standby AkA are the following in the queue.

If there are slots available or you have enough DOTs you will be Validating, if you will not be in the queue of the following ones, your place in the queue will be determined by the amount of DOTs that you have delegates at that moment. You can ask to delegate to your node or delegate to others instead of validating, everything is possible in Polkadot.

Congratulations if you have finished the guide and you know what you have done!

Happy Validation or delegation.

Remember to delegate some DOTs when the main network is launched, or now on testnet.

https://meleatrust.com/polkadot/

Running nodes in Polkadot from POC-1 AkA the first testnet.

Ahoy!

Original version.

https://wiki.polkadot.network/en/latest/polkadot/node/guides/how-to-validate/

This guide is useful for make backups from the blockchain data.

https://medium.com/@meleacrypto/polkadot-node-how-to-make-backup-file-and-use-it-2f9df98a75a0?sk=d74a989c333c2a135b4c7a0197faa733

cheers!