# Configurando e Mantendo um Validator Node na Polkadot e Kusama # Intro ### Artur Gontijo - Engenheiro de Computação (Unicamp 2011) - Tech Lead na [SingularityNET](https://beta.singularitynet.io/) (2018) - Kusama Validator desde de Abril/2020 (`GontaValidator_1`) - Polkadot Validator desde de Dezembro/2020 (`GontaValidator_1`) - `arturgontijo` no [LinkedIn](https://www.linkedin.com/in/arturgontijo/) e [Github](https://github.com/arturgontijo) - `arturgontijo#7612` no Discord e `GontaJones` no Element # Tutorial (Wiki) - https://wiki.polkadot.network/docs/maintain-guides-how-to-validate-polkadot # Hardware - `CPU` - `i7-7700K` - `Storage` - `200GB` (pruning=archive) or `100GB` (pruning=1000) - `Memory` - `8GB` ### Contabo VPS: - https://contabo.com/en/vps/ ($11.99/mo) ### Posso rodar em casa? - Desde que você se lembre que valores reais estão em jogo. =) # Usando Releases (binário) - https://github.com/paritytech/polkadot/releases ``` mkdir ~/polkadot cd ~/polkadot RELEASE=v0.9.11 wget https://github.com/paritytech/polkadot/releases/download/$RELEASE/polkadot chmod a+x polkadot ./polkadot \ --name "PortugueseValidator" \ --validator \ --wasm-execution Compiled \ --telemetry-url 'wss://telemetry-backend.w3f.community/submit 1' ``` # Usando Docker ### Instalando o Docker: - https://docs.docker.com/engine/install/ ### DockerHub Images: - https://hub.docker.com/r/parity/polkadot/tags ### Iniciando um Container com um Polkadot Validator Node: ``` docker pull parity/polkadot POLKADOT_STORAGE=~/.local/share/polkadot/docker mkdir -p $POLKADOT_STORAGE docker run \ --name POLKADOT_VALIDATOR \ --network host \ -v $POLKADOT_STORAGE:/polkadot/.local/share/polkadot \ -dti parity/polkadot:latest \ --name "PortugueseValidator" \ --validator \ --wasm-execution Compiled \ --telemetry-url 'wss://telemetry-backend.w3f.community/submit 1' ``` ### Iniciando um Container com um Kusama Validator Node: ``` docker pull parity/polkadot KUSAMA_STORAGE=~/.local/share/kusama/docker mkdir -p $KUSAMA_STORAGE docker run \ --name KUSAMA_VALIDATOR \ --network host \ -v $KUSAMA_STORAGE:/polkadot/.local/share/polkadot \ -dti parity/polkadot:latest \ --name "PortugueseValidator" \ --chain kusama \ --validator \ --wasm-execution Compiled \ --unsafe-pruning \ --pruning 1000 \ --telemetry-url 'wss://telemetry-backend.w3f.community/submit 1' ``` # Telemetry - https://telemetry.w3f.community/#list/Polkadot - https://telemetry.w3f.community/#list/Kusama # Polkashots ### Baixando os snapshots dos Databases: - https://dot-rocksdb.polkashots.io/ (7.7G) - https://ksm-rocksdb.polkashots.io/ (39.3G) # Thousand Validators Programme - https://wiki.polkadot.network/docs/thousand-validators ### Kusama Requirements: - Verified identity ([instructions](https://wiki.polkadot.network/docs/learn-identity#setting-an-identity)) - Connect to dedicated telemetry (`telemetry-backend.w3f.community`) - Minimum of `50 KSM` self-stake - No more than `10%` commission - Separate controller and stash (or have a Staking proxy set up) - Must be on the `latest` release - Max `two` nodes (under same sub/super identity) - [Form](https://forms.gle/xqYLoceTwg1qvc9i6) ### Polkadot Requirements: - Verified identity ([instructions](https://wiki.polkadot.network/docs/learn-identity#setting-an-identity)) - Connect to dedicated telemetry (`telemetry-backend.w3f.community`) - Rank `25` or higher on `Kusama Thousand Validators Programme` - Minimum of `5_000 DOT` self-stake (exceptions by approval for good intentions) - No more than `3%` commission - Separate controller and stash (or have a Staking proxy set up) - Must be on the `latest` release - [Form](https://docs.google.com/forms/d/e/1FAIpQLSdS-alI-J2wgIRCQVjQC7ZbFiTnf36hYBdmO-1ARMjKbC7H9w/viewform) # Updates ### Canais de comunicação: - https://app.element.io/#/room/#kusama-announce:matrix.parity.io - https://discord.gg/PuM8AQTm - Canais privados para o 1kV Programme. ### Bonding DOT/KSM - https://wiki.polkadot.network/docs/maintain-guides-how-to-validate-polkadot#bond-dot ### Demo (Westend): - Criar duas Accounts: - Stash (Cold Wallet) - Controller (Hot Wallet) - Transferir `WND` para ambas Accounts: - faucet: [#westend_faucet:matrix.org](https://matrix.to/#/#westend_faucet:matrix.org) - [polkadot.js.org@parity](https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fwestend-rpc.polkadot.io#/staking/actions) - [polkadot.js.org@onfinality](https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fwestend.api.onfinality.io%2Fpublic-ws#/staking/actions) ### Generating Session Key: ``` curl \ -H "Content-Type: application/json" \ -d '{"id":1, "jsonrpc":"2.0", "method": "author_rotateKeys", "params":[]}' \ http://localhost:9933 ```
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up