修改readme
Showing
1 changed file
with
39 additions
and
0 deletions
| ... | @@ -12,6 +12,7 @@ see [egg docs][egg] for more detail. | ... | @@ -12,6 +12,7 @@ see [egg docs][egg] for more detail. |
| 12 | 12 | ||
| 13 | ```bash | 13 | ```bash |
| 14 | $ npm i | 14 | $ npm i |
| 15 | $ npm run init | ||
| 15 | $ npm run dev | 16 | $ npm run dev |
| 16 | $ open http://localhost:7001/ | 17 | $ open http://localhost:7001/ |
| 17 | ``` | 18 | ``` |
| ... | @@ -29,5 +30,43 @@ $ npm stop | ... | @@ -29,5 +30,43 @@ $ npm stop |
| 29 | - Use `npm test` to run unit test. | 30 | - Use `npm test` to run unit test. |
| 30 | - Use `npm run autod` to auto detect dependencies upgrade, see [autod](https://www.npmjs.com/package/autod) for more detail. | 31 | - Use `npm run autod` to auto detect dependencies upgrade, see [autod](https://www.npmjs.com/package/autod) for more detail. |
| 31 | 32 | ||
| 33 | ## 配置 | ||
| 34 | |||
| 35 | 1. 必须提供mem_accounts.json文件在config下配置,该文件为json数组是区块链账户结构如下 | ||
| 36 | ``` | ||
| 37 | { "RECORDS": [ | ||
| 38 | { | ||
| 39 | "username": "", | ||
| 40 | "is_delegate": "0", | ||
| 41 | "u_isdelegate": "0", | ||
| 42 | "second_signature": "0", | ||
| 43 | "u_second_signature": "0", | ||
| 44 | "u_username": "", | ||
| 45 | "address": "DC6exGCAR24euF8fhd9abfHKQk169udiCG", | ||
| 46 | "publicKey": "41b2d3beec35225152e3daa25a489c0fb1aceecdff977b4d5fdeb8ad9df95acc", | ||
| 47 | "second_public_key": "", | ||
| 48 | "balance": "-1000000000000000000", | ||
| 49 | "u_balance": "-1000000000000000000", | ||
| 50 | "vote": "0", | ||
| 51 | "rate": "0", | ||
| 52 | "delegates": "", | ||
| 53 | "u_delegates": "", | ||
| 54 | "multisignatures": "", | ||
| 55 | "u_multisignatures": "", | ||
| 56 | "multimin": "0", | ||
| 57 | "u_multimin": "0", | ||
| 58 | "multilifetime": "0", | ||
| 59 | "u_multilifetime": "0", | ||
| 60 | "block_id": "6b914799f1ca868d561ddc15e96fc12aedd7e82648c4779e366c9b2b7bbff70fceb9dc3e337d11aca7f5e3e79e116e108924e6fe5eb036145713500478843456", | ||
| 61 | "nameexist": "0", | ||
| 62 | "u_nameexist": "0", | ||
| 63 | "producedblocks": "1", | ||
| 64 | "missedblocks": "0", | ||
| 65 | "fees": "0", | ||
| 66 | "rewards": "0", | ||
| 67 | "lock_height": "0" | ||
| 68 | }]} | ||
| 69 | ``` | ||
| 70 | |||
| 32 | 71 | ||
| 33 | [egg]: https://eggjs.org | 72 | [egg]: https://eggjs.org |
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
-
Please register or sign in to post a comment