@@ -28,18 +28,17 @@ settxnpropagationfreq freq
28
28
29
29
## addnode
30
30
31
- 尝试将Peer节点添加到或从节点连接列表中删除。
31
+ Attempts add or remove a node from the addnode list. Or try a connection to a node once.
32
32
33
- 参数 :
33
+ Param :
34
34
35
- - ` node ` (string, required) 要添加或删除的节点的IP地址和端口。
36
- - ` command ` (string, required) 操作类型,可以是 ` add ` 、 ` remove ` 或 ` onetry ` 。
35
+ - ` node ` (string, required)
36
+ - ` command ` (string, required)
37
37
38
38
``` text
39
39
addnode "node" "add|remove|onetry"
40
40
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.
43
42
44
43
Arguments:
45
44
1. "node" (string, required) The node (see getpeerinfo for nodes)
@@ -50,10 +49,9 @@ Examples:
50
49
> 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/
51
50
```
52
51
53
-
54
52
## clearbanned
55
53
56
- 清除所有被禁止的IP地址。
54
+ Clear all banned IPs.
57
55
58
56
``` text
59
57
clearbanned
@@ -69,7 +67,7 @@ Examples:
69
67
70
68
断开与指定节点的连接。
71
69
72
- 参数 :
70
+ Param :
73
71
74
72
- ` address ` (string, optional) 要断开连接的节点的IP地址和端口。
75
73
- ` nodeid ` (string, optional) 要断开连接的节点的ID。
@@ -96,17 +94,16 @@ Examples:
96
94
97
95
## getaddednodeinfo
98
96
99
- 获取已添加的节点信息。
97
+ Returns information about the given added node, or all added nodes(note that onetry addnodes are not listed here)
100
98
101
- 参数 :
99
+ Param :
102
100
103
- - ` node ` (string, optional) 要获取信息的节点的IP地址和端口。
101
+ - ` node ` (string, optional)
104
102
105
103
``` text
106
104
getaddednodeinfo ( "node" )
107
105
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)
110
107
111
108
Arguments:
112
109
1. "node" (string, optional) If provided, return information about this specific node, otherwise all nodes are returned.
@@ -134,7 +131,7 @@ Examples:
134
131
135
132
## getconnectioncount
136
133
137
- 获取当前连接的节点数量。
134
+ Returns the number of connections to other nodes.
138
135
139
136
``` text
140
137
getconnectioncount
@@ -151,7 +148,7 @@ Examples:
151
148
152
149
## getexcessiveblock
153
150
154
- 获取当前节点的接受的最大区块大小。
151
+ Return the excessive block size.
155
152
156
153
``` text
157
154
getexcessiveblock
@@ -167,7 +164,8 @@ Examples:
167
164
168
165
## getnettotals
169
166
170
- 获取网络流量统计信息。
167
+ Returns information about network traffic, including bytes in, bytes out,
168
+ and current time.
171
169
172
170
``` text
173
171
getnettotals
@@ -198,7 +196,7 @@ Examples:
198
196
199
197
## getnetworkinfo
200
198
201
- 获取网络综合信息。
199
+ Returns an object containing various state info regarding P2P networking.
202
200
203
201
``` text
204
202
getnetworkinfo
@@ -252,7 +250,7 @@ Examples:
252
250
253
251
## getpeerinfo
254
252
255
- 获取当前连接的Peer节点信息。
253
+ Returns data about each connected network node as a json array of objects.
256
254
257
255
``` text
258
256
getpeerinfo
@@ -331,7 +329,7 @@ Examples:
331
329
332
330
## listbanned
333
331
334
- 列出所有被禁止的IP地址。
332
+ List all banned IPs/Subnets.
335
333
336
334
``` text
337
335
listbanned
@@ -345,7 +343,9 @@ Examples:
345
343
346
344
## ping
347
345
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.
349
349
350
350
``` text
351
351
ping
@@ -361,14 +361,14 @@ Examples:
361
361
362
362
## setban
363
363
364
- 禁止或解禁指定IP地址。
364
+ Attempts add or remove a IP/Subnet from the banned list.
365
365
366
- 参数 :
366
+ Param :
367
367
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)
372
372
373
373
``` text
374
374
setban "subnet" "add|remove" (bantime) (absolute)
@@ -389,11 +389,11 @@ Examples:
389
389
390
390
## setblockmaxsize
391
391
392
- 设置节点挖矿产出的的最大区块大小。
392
+ Sets maximum size of produced block.
393
393
394
- 参数 :
394
+ Param :
395
395
396
- - ` blockSize ` (numeric, required) 区块大小字节数。
396
+ - ` blockSize ` (numeric, required)
397
397
398
398
``` text
399
399
setblockmaxsize blockSize
@@ -409,11 +409,12 @@ Examples:
409
409
410
410
## setexcessiveblock
411
411
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.
413
414
414
- 参数 :
415
+ Param :
415
416
416
- - ` blockSize ` (numeric, required) 区块大小字节数。
417
+ - ` blockSize ` (numeric, required)
417
418
418
419
``` text
419
420
setexcessiveblock blockSize
@@ -429,11 +430,11 @@ Examples:
429
430
430
431
## setnetworkactive
431
432
432
- 启用或禁用P2P网络。
433
+ Disable/enable all p2p network activity.
433
434
434
- 参数 :
435
+ Param :
435
436
436
- - state ` true|false ` (boolean, required) 是否启用P2P网络。
437
+ - state ` true|false ` (boolean, required)
437
438
438
439
``` text
439
440
setnetworkactive true|false
@@ -458,11 +459,11 @@ Enable networking
458
459
459
460
## settxnpropagationfreq
460
461
461
- 设置交易传播频率。
462
+ Set the frequency (in milli-seconds) the transaction propagator runs at.
462
463
463
- 参数 :
464
+ Param :
464
465
465
- - ` freq ` (numeric, required) 传播频率毫秒。
466
+ - ` freq ` (numeric, required)
466
467
467
468
``` text
468
469
settxnpropagationfreq freq
0 commit comments