OSDN Git Service

ee6c5d36a28e2cc7e9df6be525990c317e28cef1
[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   }
24 }
25 ```
26
27
28
29 tool use
30
31 params
32
33 ```shell
34 distribution of reward.
35
36 Usage:
37   reward [flags]
38
39 Flags:
40       --config_file string         config file. default: reward.json (default "reward.json")
41   -h, --help                       help for reward
42       --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
43       --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
44 ```
45
46 example:
47
48 ```shell
49 ./votereward reward --reward_start_height 6000 --reward_end_height 7200
50 ```
51