From af49472b197ffe4f39371ee423c1dca4e9a00f85 Mon Sep 17 00:00:00 2001 From: kaifei Date: Thu, 9 Jan 2020 15:36:19 +0800 Subject: [PATCH 1/2] update readme --- README.md | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index d314800..16fbdb6 100644 --- a/README.md +++ b/README.md @@ -27,17 +27,16 @@ run script `mongodb.js` in `mongodb` folder to create database before run projec ### Db config -- DB_ADDR: `required` `string` 数据库连接地址(example: `127.0.0.1:27017, 127.0.0.2:27017, ...`) -- DB_USER: `required` `string` 数据库连接用户(example: `user`) -- DB_PASSWD: `required` `string` 数据库密码(example: `DB_PASSWD`) -- DB_DATABASE:`required` `string` 数据库名称(example:`DB_DATABASE`) +- DB_ADDR: `required` `string` mongodb addrs(example: `127.0.0.1:27017, 127.0.0.2:27017, ...`) +- DB_USER: `required` `string` mongodb user(example: `user`) +- DB_PASSWD: `required` `string` mongodb password(example: `DB_PASSWD`) +- DB_DATABASE:`required` `string` mongodb database name(example:`DB_DATABASE`) ### Server config -- SER_BC_FULL_NODE: `required` `string` 全节点地址(example: `tcp://127.0.0.1:26657, tcp://127.0.0.2:26657, ...`) +- SER_BC_FULL_NODE: `required` `string` full node url(example: `tcp://127.0.0.1:26657, tcp://127.0.0.2:26657, ...`) - SER_BC_CHAIN_ID: `required` `string` chain id(example: `rainbow-dev`) -- WORKER_NUM_CREATE_TASK: `required` `string` 执行任务创建的线程数(example: `2`) -- WORKER_NUM_EXECUTE_TASK: `required` `string` 执行任务执行的线程数(example: `30`) +- WORKER_NUM_CREATE_TASK: `required` `string` num of worker to create tasks(example: `2`) +- WORKER_NUM_EXECUTE_TASK: `required` `string` num of worker to execute tasks(example: `30`) -- NETWORK: `option` `string` 网络类型(example: `testnet,mainnet`) -- CRON_SAVE_VALIDATOR_HISTORY: `option` `string` 保存验证人历史的定时任务(default: `@daily`) +- NETWORK: `option` `string` network type(example: `testnet,mainnet`) From e2a0d7e9cc892db77069c327d5419cc95f3d2372 Mon Sep 17 00:00:00 2001 From: kaifei Date: Thu, 9 Jan 2020 15:44:14 +0800 Subject: [PATCH 2/2] update readme --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index 16fbdb6..4e46832 100644 --- a/README.md +++ b/README.md @@ -40,3 +40,15 @@ run script `mongodb.js` in `mongodb` folder to create database before run projec - WORKER_NUM_EXECUTE_TASK: `required` `string` num of worker to execute tasks(example: `30`) - NETWORK: `option` `string` network type(example: `testnet,mainnet`) + +## Note + +If you synchronizes irishub data from specify block height(such as:17908 current time:1576208532) +1. At first, stop the irishub-sync and run follow sql in mongodb + +``` +db.sync_task.insert({'start_height':NumberLong(17908),'end_height':NumberLong(0),'current_height':NumberLong(0),'status':'unhandled','last_update_time':NumberLong(1576208532)}) +``` + +2. Then, start irishub-sync +