Skip to content

Commit a234301

Browse files
authored
Merge pull request #324 from benbaley/master
rm fast mode sync
2 parents 14d237e + aa61347 commit a234301

7 files changed

Lines changed: 9 additions & 9 deletions

File tree

docs/PlatON共识方案.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ Due to the asynchronous parallelism of the CBFT consensus, the latest blocks are
271271

272272
Here is an overview of the block synchronization mechanism:
273273

274-
- Newly added nodes update blocks to mainnet height via ETH-P2P with fast synchronization or full synchronization
274+
- Newly added nodes update blocks to mainnet height via ETH-P2P with snap synchronization or full synchronization
275275

276276
- Consensus nodes use CBFT-P2P's heartbeat mechanism to keep the block height consistent with other nodes
277277

docs/PlatON命令行工具.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ PLATON OPTIONS:
4242
--networkid value Network identifier (integer, 1=Frontier, 2=Morden (disused), 3=Ropsten, 4=Rinkeby) (default: 1)
4343
--main Mainnet network: pre-configured main network (default network)
4444
--testnet Testnet network: pre-configured test network
45-
--syncmode "full" Blockchain sync mode ("fast", "full", or "light")
45+
--syncmode "full" Blockchain sync mode ("snap" or "full")
4646
--identity value Custom node name
4747
--lightkdf Reduce key-derivation RAM & CPU usage at some expense of KDF strength
4848

docs/成为主网验证节点.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ nohup platon --identity platon --datadir ./data --port 16789 --http.port 6789 --
184184
| --nodekey | Specify the node private key file |
185185
| --cbft.blskey | Specify the node bls private key file |
186186
| --verbosity | The level of logging, 0: CRIT; 1: ERROR; 2: WARN; 3: INFO; 4: DEBUG; 5: TRACE |
187-
| --syncmode | fast: Fast synchronization mode, full: All synchronous mode |
187+
| --syncmode | snap: Snap synchronization mode, full: All synchronous mode |
188188
| --db.nogc | Enable archive mode, when this switch is turned on, the garbage collection mechanism will no longer work, so the CPU overhead will be reduced and the corresponding disk overhead will be increased |
189189
| --allow-insecure-unlock | Enable unlockAccount function |
190190

docs/成为开发网验证节点.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ cd ~/platon-node/ && nohup platon --identity platon-node --datadir ./data --port
189189
| --nodekey | Specify the node private key file |
190190
| --cbft.blskey | Specify the node bls private key file |
191191
| --verbosity | The level of logging, 0: CRIT; 1: ERROR; 2: WARN; 3: INFO; 4: DEBUG; 5: TRACE |
192-
| --syncmode | fast: Fast synchronization mode, full: All synchronous mode |
192+
| --syncmode | snap: Snap synchronization mode, full: All synchronous mode |
193193
| --db.nogc | Enable archive mode, when this switch is turned on, the garbage collection mechanism will no longer work, so the CPU overhead will be reduced and the corresponding disk overhead will be increased |
194194

195195
See more parameters with the command `platon --help`

website/i18n/zh-CN/docusaurus-plugin-content-docs/current/PlatON命令行工具.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ PLATON OPTIONS:
4545
--networkid value Network identifier (integer, 1=Frontier, 2=Morden (disused), 3=Ropsten, 4=Rinkeby) (default: 1)
4646
--main Mainnet network: pre-configured main network (default network)
4747
--testnet Testnet network: pre-configured test network
48-
--syncmode "full" Blockchain sync mode ("fast", "full", or "light")
48+
--syncmode "full" Blockchain sync mode ("snap" or "full")
4949
--identity value Custom node name
5050
--lightkdf Reduce key-derivation RAM & CPU usage at some expense of KDF strength
5151

website/i18n/zh-CN/docusaurus-plugin-content-docs/current/成为主网验证节点.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ cd ~/platon-node
168168
执行以下命令即可启动验证节点加入PlatON主网络
169169

170170
```bash
171-
nohup platon --identity platon --datadir ./data --port 16789 --http.port 6789 --http.api "platon,net,web3,admin,personal" --http --nodekey ./data/nodekey --cbft.blskey ./data/blskey --verbosity 1 --http.addr 127.0.0.1 --syncmode "fast" --db.nogc > ./data/platon.log 2>&1 &
171+
nohup platon --identity platon --datadir ./data --port 16789 --http.port 6789 --http.api "platon,net,web3,admin,personal" --http --nodekey ./data/nodekey --cbft.blskey ./data/blskey --verbosity 1 --http.addr 127.0.0.1 --syncmode "snap" --db.nogc > ./data/platon.log 2>&1 &
172172
```
173173

174174
**提示:**
@@ -185,7 +185,7 @@ nohup platon --identity platon --datadir ./data --port 16789 --http.port 6789 --
185185
| --nodekey | 指定节点私钥文件 |
186186
| --cbft.blskey | 指定节点 bls 私钥文件 |
187187
| --verbosity | 日志级别,0: CRIT; 1: ERROR; 2: WARN; 3: INFO; 4: DEBUG; 5: TRACE |
188-
| --syncmode | fast:快速同步模式,full:全同步模式 |
188+
| --syncmode | snap:快照同步模式,full:全同步模式 |
189189
| –-db.nogc | 开启归档模式,开启该开关后,节点数据不再启用垃圾回收机制,所以CPU开销会有所降低,相应的磁盘开销会增大 |
190190
| --allow-insecure-unlock | 启用unlockAccount功能 |
191191

website/i18n/zh-CN/docusaurus-plugin-content-docs/current/成为开发网验证节点.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ cd ~/platon-node && wget https://download.platon.network/platon/devnet3/platon/1
181181
开发2网示例:
182182

183183
```shell
184-
cd ~/platon-node/ && nohup platon --identity platon-node --datadir ./data --port 16789 --http.port 6789 --http.api "db,platon,net,web3,admin,personal" --http --nodekey ./data/nodekey --cbft.blskey ./data/blskey --verbosity 1 --http.addr 127.0.0.1 --bootnodes enode://4ea24accba3da480021bd8c9699e702d9bec0e5f3d7dd1a354697e83b67a4c275b3fb2a21a3be2438a3430fd4b8a9f97acf1c090c1ade599a619fedeac1fb730@devnet3node1.platon.network:16789 --syncmode "fast" > ./data/platon.log 2>&1 &
184+
cd ~/platon-node/ && nohup platon --identity platon-node --datadir ./data --port 16789 --http.port 6789 --http.api "db,platon,net,web3,admin,personal" --http --nodekey ./data/nodekey --cbft.blskey ./data/blskey --verbosity 1 --http.addr 127.0.0.1 --bootnodes enode://4ea24accba3da480021bd8c9699e702d9bec0e5f3d7dd1a354697e83b67a4c275b3fb2a21a3be2438a3430fd4b8a9f97acf1c090c1ade599a619fedeac1fb730@devnet3node1.platon.network:16789 --syncmode "snap" > ./data/platon.log 2>&1 &
185185
```
186186

187187

@@ -199,7 +199,7 @@ cd ~/platon-node/ && nohup platon --identity platon-node --datadir ./data --port
199199
| --nodekey | 指定节点私钥文件 |
200200
| --cbft.blskey | 指定节点 bls 私钥文件 |
201201
| --verbosity | 日志级别,0: CRIT; 1: ERROR; 2: WARN; 3: INFO; 4: DEBUG; 5: TRACE |
202-
| --syncmode | fast:快速同步模式,full:全同步模式 |
202+
| --syncmode | snap:快照同步模式,full:全同步模式 |
203203
| –db.nogc | 开启归档模式,开启该开关后,节点数据不再启用垃圾回收机制,所以CPU开销会有所降低,相应的磁盘开销会增大 |
204204

205205
更多参数意义通过`platon --help`命令查看。

0 commit comments

Comments
 (0)