arrow-left
All pages
gitbookPowered by GitBook
1 of 1

Loading...

How to become a block producing witness?

The following document provides an overview of how to become a witness node, the perks of becoming a witness, duties of a witness, and a brief description about the node types.

hashtag
Prerequisites to become a block producing witness:

  1. An existing account

  2. A machine running a witness_node that can be configured to produce blocks

hashtag
Steps to become a block producing witness node

hashtag
1. Create a Peerplays account

hashtag
Steps to register a new Peerplays account

The first peerplays account can be created in a flash using Peerplays DEX by following the steps in below document,

Peerplays provides two networks on which the user may create an account - main net and test net. To learn and familiarize the operations of a node use the test net account. After learning the process and to work on the real Peerplays network, use the main-net account. The will help you navigate Peerplays DEX and learn about its features and options in detail.

Click the URL below to create an account and then to login Peerplays DEX,

  1. Mainnet Peerplays DEX access

Click the below link to use the Main-net DEX:

  1. Testnet Peerplays DEX access

Click the below link to use the Test-net DEX:

Account creation with Peerplays DEX

Click the below link to learn in detail about the Peerplays account creation

hashtag
2. Upgrade account to lifetime membership

The account should have some PPY balance to become a lifetime member. To create a witness, the account must have a lifetime membership status.

Syntax:

Example:

Output:

hashtag
3. Configuring your account to serve as a block-producing Witness

Your account can be configured as an eligible "block producer" by using cli wallet. The commands to complete the configuration are explained in the below link.

hashtag
Create yourself as a witness

The next step is to create a witness

The URL in this command is your own URL which should point to a page which describes who you are and why you want to become a Peerplays witness. Note your block signing key after you enter this command.

circle-exclamation

To execute the command, some PPY is required.

Syntax:

Example:

Expected Output:

hashtag
Collecting the witness account info

The Block-signing key and private keys are required to get the witness id. From the above output the block-signing key is obtained and using that the private key can be generated.

Syntax:

Then dump your keys to check and compare. One of the returned values from the following command should match your block_signing_key.

Last we'll get your witness ID.

Example:

Expected Output:

hashtag
4. Adding witness id and private key pair into config.ini file

Exit the cli_wallet with the quit command. Back in the first command line window, we'll stop the node (Ctrl + c) and edit the config.ini file once again.

hashtag
5. Start the Witness and vote for yourself

Once again, we need to wait for the node to sync the blocks to use the cli_wallet. After the sync, you can vote for yourself. Back in the second command line window:

Syntax:

Example Output:

Now you can check your votes to verify it worked.

Syntax:

Example output:

Start the witness node and vote for yourself

Create a Peerplays account
Upgrade account to Lifetime membership
Configuring witness node as a Block producer
Adding witness id and private key pair into config.ini file
User Guidearrow-up-right
Becoming a Peerplays Witness | Peerplays Community Docscommunity.peerplays.comchevron-right
upgrade_account created-username true
upgrade_account testuser-01 true
create_witness created-username "https://your-url-to-witness-proposal" true
create_witness testuser-01 "test-witness" true
get_private_key YOURBLOCKSIGNINGKEY
dump_private_keys
get_witness created-username
get_private_key TEST5V---MWfn
dump_private_keys
get_witness testuser-01
nano $HOME/witness_node_data_dir/config.ini

witness-id = "your_witness_id"
private-key = ["block_signing_key", "private_key_for_your_block_signing_key"]
witness_node
cli_wallet
unlock your-password-here
vote_for_witness created-username created-username true true
get_witness your_witness_account 
Account Creation | Peerplays Community Docscommunity.peerplays.comchevron-right
https://testnet.peerplays.download/testnet.peerplays.downloadchevron-right
https://swap.peerplays.comswap.peerplays.comchevron-right
https://peerplays.gitbook.io/peerplays-infrastructure-docs/~/changes/0IXXeM79c2vnSTcZBjuH/witnesses/how-to-create-a-peerplays-accountpeerplays.gitbook.iochevron-right
Logo
Logo
Logo
Logo