• R/O
  • HTTP
  • SSH
  • HTTPS

vapor: Commit

Golang implemented sidechain for Bytom


Commit MetaInfo

Revision3bec46955378dea87e54d5f4029e01a4fdae5e2d (tree)
Time2019-08-08 15:18:09
Authorwz <mars@byto...>
Commiterwz

Log Message

modify readme

Change Summary

Incremental Difference

--- a/cmd/votereward/README.md
+++ b/cmd/votereward/README.md
@@ -1,10 +1,20 @@
1-A `reward.json` would look like this:
1+## database
2+
3+- Create a MySQL database locally or with server installation
4+- Import table structure to MySQL database, table structure path: vapor/toolbar/vote_reward/database/dump_reward.sql
5+
6+
7+
8+## configuration file
9+
10+- Default file name:reward.json
11+- A `reward.json` would look like this:
212
313 ```json
414 {
5- "node_ip": "http://127.0.0.1:9889",
6- "chain_id": "solonet",
7- "mysql": {
15+ "node_ip": "http://127.0.0.1:9889", // node API address, replace with self node API address
16+ "chain_id": "mainnet", //Node network type
17+ "mysql": { // Mysql connection information
818 "connection": {
919 "host": "192.168.30.186",
1020 "port": 3306,
@@ -12,14 +22,14 @@ A `reward.json` would look like this:
1222 "password": "123456",
1323 "database": "reward"
1424 },
15- "log_mode": false
25+ "log_mode": false // default
1626 },
1727 "reward_config": {
18- "xpub": "9742a39a0bcfb5b7ac8f56f1894fbb694b53ebf58f9a032c36cc22d57a06e49e94ff7199063fb7a78190624fa3530f611404b56fc9af91dcaf4639614512cb64",
19- "account_id": "bd775113-49e0-4678-94bf-2b853f1afe80",
20- "password": "123456",
21- "reward_ratio": 20,
22- "mining_address": "sp1qfpgjve27gx0r9t7vud8vypplkzytgrvqr74rwz"
28+ "xpub": "9742a39a0bcfb5b7ac8f56f1894fbb694b53ebf58f9a032c36cc22d57a06e49e94ff7199063fb7a78190624fa3530f611404b56fc9af91dcaf4639614512cb64", // Node public key (from dashboard Settings), replaced with its own
29+ "account_id": "bd775113-49e0-4678-94bf-2b853f1afe80", // accountID
30+ "password": "123456",// The password corresponding to the account ID
31+ "reward_ratio": 20,// The percentage of a reward given to a voter per block
32+ "mining_address": "sp1qfpgjve27gx0r9t7vud8vypplkzytgrvqr74rwz" // The address that receives the block reward, use the get-mining- address for mining address, for example, curl -x POST http://127.0.0.1:9889/get-mining-address -d '{}'
2333 }
2434 }
2535 ```
@@ -49,3 +59,8 @@ example:
4959 ./votereward reward --reward_start_height 6000 --reward_end_height 7200
5060 ```
5161
62+
63+
64+Note:
65+
66+When an error (Gas credit has been spent) is returned, UTXO needs to be merged.
\ No newline at end of file
Show on old repository browser