Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/PlatON共识方案.md
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ Due to the asynchronous parallelism of the CBFT consensus, the latest blocks are

Here is an overview of the block synchronization mechanism:

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

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

Expand Down
2 changes: 1 addition & 1 deletion docs/PlatON命令行工具.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ PLATON OPTIONS:
--networkid value Network identifier (integer, 1=Frontier, 2=Morden (disused), 3=Ropsten, 4=Rinkeby) (default: 1)
--main Mainnet network: pre-configured main network (default network)
--testnet Testnet network: pre-configured test network
--syncmode "full" Blockchain sync mode ("fast", "full", or "light")
--syncmode "full" Blockchain sync mode ("snap" or "full")
--identity value Custom node name
--lightkdf Reduce key-derivation RAM & CPU usage at some expense of KDF strength

Expand Down
2 changes: 1 addition & 1 deletion docs/成为主网验证节点.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ nohup platon --identity platon --datadir ./data --port 16789 --http.port 6789 --
| --nodekey | Specify the node private key file |
| --cbft.blskey | Specify the node bls private key file |
| --verbosity | The level of logging, 0: CRIT; 1: ERROR; 2: WARN; 3: INFO; 4: DEBUG; 5: TRACE |
| --syncmode | fast: Fast synchronization mode, full: All synchronous mode |
| --syncmode | snap: Snap synchronization mode, full: All synchronous mode |
| --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 |
| --allow-insecure-unlock | Enable unlockAccount function |

Expand Down
2 changes: 1 addition & 1 deletion docs/成为开发网验证节点.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ cd ~/platon-node/ && nohup platon --identity platon-node --datadir ./data --port
| --nodekey | Specify the node private key file |
| --cbft.blskey | Specify the node bls private key file |
| --verbosity | The level of logging, 0: CRIT; 1: ERROR; 2: WARN; 3: INFO; 4: DEBUG; 5: TRACE |
| --syncmode | fast: Fast synchronization mode, full: All synchronous mode |
| --syncmode | snap: Snap synchronization mode, full: All synchronous mode |
| --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 |

See more parameters with the command `platon --help`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ PLATON OPTIONS:
--networkid value Network identifier (integer, 1=Frontier, 2=Morden (disused), 3=Ropsten, 4=Rinkeby) (default: 1)
--main Mainnet network: pre-configured main network (default network)
--testnet Testnet network: pre-configured test network
--syncmode "full" Blockchain sync mode ("fast", "full", or "light")
--syncmode "full" Blockchain sync mode ("snap" or "full")
--identity value Custom node name
--lightkdf Reduce key-derivation RAM & CPU usage at some expense of KDF strength

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ cd ~/platon-node
执行以下命令即可启动验证节点加入PlatON主网络

```bash
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 &
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 &
```

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ cd ~/platon-node && wget https://download.platon.network/platon/devnet3/platon/1
开发2网示例:

```shell
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 &
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 &
```


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

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