Skip to content

Commit 200ecfc

Browse files
committed
finish network.md
1 parent 2d946a9 commit 200ecfc

File tree

3 files changed

+52
-51
lines changed

3 files changed

+52
-51
lines changed

docs/nodes/usage/mvc-cli/control.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ uptime
1818

1919
## activezmqnotifications
2020

21-
获取当前节点的ZMQ通知状态,开放哪些端口,以及对应的地址等信息。
21+
Get the active zmq notifications and their addresses
2222

2323
```text
2424
activezmqnotifications
@@ -41,7 +41,7 @@ Examples:
4141

4242
> Deprecated
4343
44-
获取当前节点的信息,包括版本、区块高度、连接数等。
44+
DEPRECATED. Returns an object containing various state info.
4545

4646
```text
4747
getinfo
@@ -79,7 +79,7 @@ Examples:
7979

8080
## getmemoryinfo
8181

82-
获取当前节点的内存池使用情况。
82+
Returns an object containing information about memory usage.
8383

8484
```text
8585
getmemoryinfo
@@ -104,7 +104,7 @@ Examples:
104104

105105
## help
106106

107-
获取帮助信息。
107+
List all commands, or get help for a specified command.
108108

109109
```text
110110
help ( "command" )
@@ -126,7 +126,7 @@ Examples:
126126

127127
## stop
128128

129-
停止当前节点。
129+
Stop MVC server.
130130

131131
```text
132132
stop
@@ -136,7 +136,7 @@ Stop MVC server.
136136

137137
## uptime
138138

139-
获取当前节点的运行时间。
139+
Returns the total uptime of the server.
140140

141141
```text
142142
uptime

docs/nodes/usage/mvc-cli/generating.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ generatetoaddress nblocks address (maxtries)
1616

1717
## generate
1818

19-
尝试在节点上挖矿,生成指定数量的区块。
19+
Mine up to nblocks blocks immediately (before the RPC call returns) to an address in the wallet.
2020

21-
参数
21+
Param
2222

23-
- `nblocks` (numeric, required) 要生成的区块数量。
24-
- `maxtries` (numeric, optional) 最大尝试次数(默认为1000000)。
23+
- `nblocks` (numeric, required)
24+
- `maxtries` (numeric, optional)
2525

2626
```text
2727
generate nblocks ( maxtries )
@@ -44,9 +44,9 @@ Generate 11 blocks
4444

4545
## generatetoaddress
4646

47-
尝试在节点上挖矿,生成指定数量的区块,并将奖励发送到指定地址。
47+
Mine blocks immediately to a specified address (before the RPC call returns)
4848

49-
参数
49+
Param
5050

5151
- `nblocks` (numeric, required) 要生成的区块数量。
5252
- `address` (string, required) 奖励发送到的地址。

docs/nodes/usage/mvc-cli/network.md

+40-39
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,17 @@ settxnpropagationfreq freq
2828

2929
## addnode
3030

31-
尝试将Peer节点添加到或从节点连接列表中删除。
31+
Attempts add or remove a node from the addnode list. Or try a connection to a node once.
3232

33-
参数
33+
Param
3434

35-
- `node` (string, required) 要添加或删除的节点的IP地址和端口。
36-
- `command` (string, required) 操作类型,可以是`add``remove``onetry`
35+
- `node` (string, required)
36+
- `command` (string, required)
3737

3838
```text
3939
addnode "node" "add|remove|onetry"
4040
41-
Attempts add or remove a node from the addnode list.
42-
Or try a connection to a node once.
41+
Attempts add or remove a node from the addnode list. Or try a connection to a node once.
4342
4443
Arguments:
4544
1. "node" (string, required) The node (see getpeerinfo for nodes)
@@ -50,10 +49,9 @@ Examples:
5049
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "addnode", "params": ["192.168.0.6:9883", "onetry"] }' -H 'content-type: text/plain;' http://127.0.0.1:9882/
5150
```
5251

53-
5452
## clearbanned
5553

56-
清除所有被禁止的IP地址。
54+
Clear all banned IPs.
5755

5856
```text
5957
clearbanned
@@ -69,7 +67,7 @@ Examples:
6967

7068
断开与指定节点的连接。
7169

72-
参数
70+
Param
7371

7472
- `address` (string, optional) 要断开连接的节点的IP地址和端口。
7573
- `nodeid` (string, optional) 要断开连接的节点的ID。
@@ -96,17 +94,16 @@ Examples:
9694

9795
## getaddednodeinfo
9896

99-
获取已添加的节点信息。
97+
Returns information about the given added node, or all added nodes(note that onetry addnodes are not listed here)
10098

101-
参数
99+
Param
102100

103-
- `node` (string, optional) 要获取信息的节点的IP地址和端口。
101+
- `node` (string, optional)
104102

105103
```text
106104
getaddednodeinfo ( "node" )
107105
108-
Returns information about the given added node, or all added nodes
109-
(note that onetry addnodes are not listed here)
106+
Returns information about the given added node, or all added nodes(note that onetry addnodes are not listed here)
110107
111108
Arguments:
112109
1. "node" (string, optional) If provided, return information about this specific node, otherwise all nodes are returned.
@@ -134,7 +131,7 @@ Examples:
134131

135132
## getconnectioncount
136133

137-
获取当前连接的节点数量。
134+
Returns the number of connections to other nodes.
138135

139136
```text
140137
getconnectioncount
@@ -151,7 +148,7 @@ Examples:
151148

152149
## getexcessiveblock
153150

154-
获取当前节点的接受的最大区块大小。
151+
Return the excessive block size.
155152

156153
```text
157154
getexcessiveblock
@@ -167,7 +164,8 @@ Examples:
167164

168165
## getnettotals
169166

170-
获取网络流量统计信息。
167+
Returns information about network traffic, including bytes in, bytes out,
168+
and current time.
171169

172170
```text
173171
getnettotals
@@ -198,7 +196,7 @@ Examples:
198196

199197
## getnetworkinfo
200198

201-
获取网络综合信息。
199+
Returns an object containing various state info regarding P2P networking.
202200

203201
```text
204202
getnetworkinfo
@@ -252,7 +250,7 @@ Examples:
252250

253251
## getpeerinfo
254252

255-
获取当前连接的Peer节点信息。
253+
Returns data about each connected network node as a json array of objects.
256254

257255
```text
258256
getpeerinfo
@@ -331,7 +329,7 @@ Examples:
331329

332330
## listbanned
333331

334-
列出所有被禁止的IP地址。
332+
List all banned IPs/Subnets.
335333

336334
```text
337335
listbanned
@@ -345,7 +343,9 @@ Examples:
345343

346344
## ping
347345

348-
Ping所有peer的节点,衡量网络状况,网络状况更新后可以使用getpeerinfo查看。
346+
Requests that a ping be sent to all other nodes, to measure ping time.
347+
Results provided in getpeerinfo, pingtime and pingwait fields are decimal seconds.
348+
Ping command is handled in queue with all other commands, so it measures processing backlog, not just network ping.
349349

350350
```text
351351
ping
@@ -361,14 +361,14 @@ Examples:
361361

362362
## setban
363363

364-
禁止或解禁指定IP地址。
364+
Attempts add or remove a IP/Subnet from the banned list.
365365

366-
参数
366+
Param
367367

368-
- `subnet` (string, required) 要禁止或解禁的IP地址。
369-
- `command` (string, required) 操作类型,可以是`add``remove`
370-
- `bantime` (numeric, optional) 禁止时间,单位为秒。
371-
- `absolute` (boolean, optional) 是否使用绝对时间。
368+
- `subnet` (string, required)
369+
- `command` (string, required)
370+
- `bantime` (numeric, optional)
371+
- `absolute` (boolean, optional)
372372

373373
```text
374374
setban "subnet" "add|remove" (bantime) (absolute)
@@ -389,11 +389,11 @@ Examples:
389389

390390
## setblockmaxsize
391391

392-
设置节点挖矿产出的的最大区块大小。
392+
Sets maximum size of produced block.
393393

394-
参数
394+
Param
395395

396-
- `blockSize` (numeric, required) 区块大小字节数。
396+
- `blockSize` (numeric, required)
397397

398398
```text
399399
setblockmaxsize blockSize
@@ -409,11 +409,12 @@ Examples:
409409

410410
## setexcessiveblock
411411

412-
设置节点接受的最大区块大小。
412+
Set the excessive block size. Excessive blocks will not be used in the active chain or relayed. This discourages the
413+
propagation of blocks that you consider excessively large.
413414

414-
参数
415+
Param
415416

416-
- `blockSize` (numeric, required) 区块大小字节数。
417+
- `blockSize` (numeric, required)
417418

418419
```text
419420
setexcessiveblock blockSize
@@ -429,11 +430,11 @@ Examples:
429430

430431
## setnetworkactive
431432

432-
启用或禁用P2P网络。
433+
Disable/enable all p2p network activity.
433434

434-
参数
435+
Param
435436

436-
- state `true|false` (boolean, required) 是否启用P2P网络。
437+
- state `true|false` (boolean, required)
437438

438439
```text
439440
setnetworkactive true|false
@@ -458,11 +459,11 @@ Enable networking
458459

459460
## settxnpropagationfreq
460461

461-
设置交易传播频率。
462+
Set the frequency (in milli-seconds) the transaction propagator runs at.
462463

463-
参数
464+
Param
464465

465-
- `freq` (numeric, required) 传播频率毫秒。
466+
- `freq` (numeric, required)
466467

467468
```text
468469
settxnpropagationfreq freq

0 commit comments

Comments
 (0)