Commit 3b4e386c 3b4e386cfded1e189db24f381851dcf3d1dee303 by wulianyou

修改readme

1 parent 8ab54868
Showing 1 changed file with 39 additions and 0 deletions
......@@ -12,6 +12,7 @@ see [egg docs][egg] for more detail.
```bash
$ npm i
$ npm run init
$ npm run dev
$ open http://localhost:7001/
```
......@@ -29,5 +30,43 @@ $ npm stop
- Use `npm test` to run unit test.
- Use `npm run autod` to auto detect dependencies upgrade, see [autod](https://www.npmjs.com/package/autod) for more detail.
## 配置
1. 必须提供mem_accounts.json文件在config下配置,该文件为json数组是区块链账户结构如下
```
{ "RECORDS": [
{
"username": "",
"is_delegate": "0",
"u_isdelegate": "0",
"second_signature": "0",
"u_second_signature": "0",
"u_username": "",
"address": "DC6exGCAR24euF8fhd9abfHKQk169udiCG",
"publicKey": "41b2d3beec35225152e3daa25a489c0fb1aceecdff977b4d5fdeb8ad9df95acc",
"second_public_key": "",
"balance": "-1000000000000000000",
"u_balance": "-1000000000000000000",
"vote": "0",
"rate": "0",
"delegates": "",
"u_delegates": "",
"multisignatures": "",
"u_multisignatures": "",
"multimin": "0",
"u_multimin": "0",
"multilifetime": "0",
"u_multilifetime": "0",
"block_id": "6b914799f1ca868d561ddc15e96fc12aedd7e82648c4779e366c9b2b7bbff70fceb9dc3e337d11aca7f5e3e79e116e108924e6fe5eb036145713500478843456",
"nameexist": "0",
"u_nameexist": "0",
"producedblocks": "1",
"missedblocks": "0",
"fees": "0",
"rewards": "0",
"lock_height": "0"
}]}
```
[egg]: https://eggjs.org
\ No newline at end of file
......