DECENT Mining Tutorial

DECENT Mining Tutorial

1. Prepare your account and private key.


2. Start the local node:

./decentd --rpc-endpoint 127.0.0.1:8090


3. When running for the first time, please open cli_wallet, set the password and import the key:

./cli_wallet -s ws://127.0.0.1:8090

Enter the command:

new>>> set_password <enter the client password to be created>

null

locked>>> unlock <client password>

null

unlocked>>> import_key <account> <private key>

true


3.1. If you have created a password in the DECENT client and imported the account, you only need to unlock it in cli_wallet:

locked>>> unlock <client password>



4. Create a miner identity:

unlocked >>> create_miner <account><your own url name (fill in at will)> ” true


If created correctly, it will display: (example)

{

"ref_block_num": 8335,

"ref_block_prefix": 760912907,

"expiration": "2017-05-24T11:45:45",

"operations": [[

12,{

"fee": {

"amount": "5000000000",

"asset_id": "1.3.0"

},

"miner_account": "1.2.16",

"url": "decentdev-ejossev",

"block_signing_key": "DCT7RZAJu7fLM5RS6GujZ8b9EjE3KLUzrXmAAi6QaUeiZTGHEVQXp"

}

]

],

"extensions": [],

"signatures": [ "20038dc5a699b030204ec3f70150d13c6a7b8a2ecb96aeddfe0927a4969e26ab1 818b17f149a5e4def18653626db3cf53b9bfe570adb257455b62c1207da29dacf"

]

}


4.1. Check ID and login key (signing_key):

unlocked>>> get_miner <account>

Note: You can also enter the "miner account" (miner_account, 1.2.16 in the example) in the "Account" field above.


If the miner is created correctly, it will display: (example)

{

"id": "1.4.12",

"miner_account": "1.2.16",

"last_aslot": 0,

"signing_key": "DCT7RZAJu7fLM5RS6GujZ8b9EjE3KLUzrXmAAi6QaUeiZTGHEVQXp",

"vote_id": "0:11",

"total_votes": 0,

"url": "decentdev-ejossev",

"total_missed": 0,

"last_confirmed_block_num": 0

}

With that, your miner identity is set up.



5. Activate the miner identity.


Close cli_wallet (shortcut ctrl-d), close decentd (shortcut ctrl-c). Re-load the miner, mentioning the new miner 1.4.12 and its key pair:

./decentd --rpc-endpoint 127.0.0.1:8090 --miner-id " 1.4.12 " --private-key

[" DCT7RZAJu7fLM5RS6GujZ8b9EjE3KLUzrXmAAi6QaUeiZTGHEVQXp ", " <private key> "]


Alternatively, you can add the following to your config.ini file:

miner-id = " 1.4.12 "

private-key = [" DCT7RZAJu7fLM5RS6GujZ8b9EjE3KLUzrXmAAi6QaUeiZTGHEVQXp ", " <private key> "]



6. Vote for miners:

unlocked>>> vote_for_miner <account> <other miner account> true true

[a transaction in json format]

Only the voted miners can participate in mining.


<<:  Bitcoin is so popular that students are taking out loans to invest, and they may regret more than just wasting tuition fees

>>:  In just a few months, two generations of "miners" experienced the baptism of ice and fire

Recommend

Where does a man with a lucky face have a mole?

Which parts of a man's body are blessed if he...

What does a mole on the chin mean?

There are many moles on our bodies, and they are ...

Microsoft exploring adding Ripple technology to blockchain toolkit

Microsoft has released an update to its blockchai...

What kind of woman brings good luck to her husband?

What kind of woman is the most prosperous for her...

Bitcoin, mainstream coins, and altcoins, how should you choose?

The most difficult part of buying coins is which ...

Shopping on Amazon Germany directly with Bitcoin?

Austrian bitcoin startup Coinimal has launched a ...

How to become protruding ears? Protruding ears are good.

For many people, they must have observed one thin...

People whose moods and emotions are directly revealed in their faces

People with higher emotional intelligence or kind...

Paxful launches mobile app to help unbanked users

Article content selection Paxful, an Estonian dig...

What is the personality fortune of a woman with double wisdom lines?

The wisdom line represents your brain and persona...

What do women with bad luck look like?

The destinies of different women are different. So...