OSDN Git Service

Alternate nodes assign rewards
[bytom/vapor.git] / cmd / votereward / README.md
1 A `reward.json` would look like this:
2
3 ```json
4 {
5   "node_ip": "http://127.0.0.1:9889",
6   "chain_id": "solonet",
7   "mysql": {
8     "connection": {
9       "host": "192.168.30.186",
10       "port": 3306,
11       "username": "root",
12       "password": "123456",
13       "database": "reward"
14     },
15     "log_mode": false
16   },
17   "reward_config": {
18     "xpub": "9742a39a0bcfb5b7ac8f56f1894fbb694b53ebf58f9a032c36cc22d57a06e49e94ff7199063fb7a78190624fa3530f611404b56fc9af91dcaf4639614512cb64",
19     "account_id": "bd775113-49e0-4678-94bf-2b853f1afe80",
20     "password": "123456",
21     "reward_ratio": 20,
22     "mining_address": "sp1qfpgjve27gx0r9t7vud8vypplkzytgrvqr74rwz",
23     "alternative_nodes_reward_consensus_cycle": 0
24   }
25 }
26 ```
27
28
29
30 tool use
31
32 params
33
34 ```shell
35 distribution of reward.
36
37 Usage:
38   reward [flags]
39
40 Flags:
41       --config_file string         config file. default: reward.json (default "reward.json")
42   -h, --help                       help for reward
43       --reward_end_height uint     The end height of the distributive income reward interval, It is a multiple of the dpos consensus cycle(1200). example: 2400
44       --reward_start_height uint   The starting height of the distributive income reward interval, It is a multiple of the dpos consensus cycle(1200). example: 1200
45 ```
46
47 example:
48
49 ```shell
50 ./votereward reward --reward_start_height 6000 --reward_end_height 7200
51 ```
52