@@ -287,6 +287,63 @@ By default, the returned state is the one at the latest block, but you may speci
287
287
288
288
$ aergocli getstate --address " AmNvFyqKFGVWvQ3MTi3eMFiNB9zvL9cK43B9c9bzcA732YZjZgfn" --root " 9NBSjkcNTdE5ciBxfb52RmsVW7vgX5voRsv6KcosiNjE"
289
289
290
+ Show connected peers
291
+ ~~~~~~~~~~~~~~~~~~~~
292
+
293
+ Use getpeers to show list of peers connected to a aergosvr.
294
+
295
+ It shows remote peers by default, but with :code: `--self ` options, local aergosvr itself is shown in list. You can find it by checking :code: `Self ` property.
296
+
297
+ .. code-block :: shell
298
+
299
+ [
300
+ {
301
+ " Address" : {
302
+ " Address" : " 13.124.83.51" ,
303
+ " Port" : " 7846" ,
304
+ " PeerId" : " 16Uiu2HAmQn3nFBGhJM7TnZRguLhgUx1HnpNL2easdt2JrxdbFjtb"
305
+ },
306
+ " BestBlock" : {
307
+ " BlockHash" : " BXAFbTbwEuywukzBqRKdCsuUpinnNQsVJCAXNVJAR6F4" ,
308
+ " BlockNo" : 1251651
309
+ },
310
+ " LastCheck" : " 2019-02-27T11:26:38.481451+09:00" ,
311
+ " State" : " RUNNING" ,
312
+ " Hidden" : false,
313
+ " Self" : true
314
+ },
315
+ {
316
+ " Address" : {
317
+ " Address" : " 13.211.156.203" ,
318
+ " Port" : " 7846" ,
319
+ " PeerId" : " 16Uiu2HAkvbHmK1Ke1hqAHmahwTGE4ndkdMdXJeXFE3kgBs17k2oQ"
320
+ },
321
+ " BestBlock" : {
322
+ " BlockHash" : " AF68dtMMHd1h5LjxSyYY9AomMve6Qk2kBRSoQuuuSkhM" ,
323
+ " BlockNo" : 1251650
324
+ },
325
+ " LastCheck" : " 2019-02-27T11:26:38.349938+09:00" ,
326
+ " State" : " RUNNING" ,
327
+ " Hidden" : false,
328
+ " Self" : false
329
+ },
330
+ {
331
+ " Address" : {
332
+ " Address" : " 203.109.12.23" ,
333
+ " Port" : " 7846" ,
334
+ " PeerId" : " 16Uiu2HAmAnQ5jjk7huhepfFtDFFCreuJ21nHYBApVpg8G7EBdwme"
335
+ },
336
+ " BestBlock" : {
337
+ " BlockHash" : " BXAFbTbwEuywukzBqRKdCsuUpinnNQsVJCAXNVJAR6F4" ,
338
+ " BlockNo" : 1251651
339
+ },
340
+ " LastCheck" : " 2019-02-27T11:26:38.364262+09:00" ,
341
+ " State" : " RUNNING" ,
342
+ " Hidden" : false,
343
+ " Self" : false
344
+ }
345
+ ]
346
+
290
347
291
348
Example without aergosvr
292
349
------------------------
@@ -349,60 +406,3 @@ Unlike using aergosrv, parameter :code:`--address` and :code:`--password` are ne
349
406
" Sign" : " AN1rKvt8EZHKEE2wNPXAhGcDA4pMo7yRRjTWCcpyrW9QCMv6nMhvhqriWujHdaDJgJ6ft6VLDActEFtUFA2pRnRJFVFSWxPSR"
350
407
}
351
408
}
352
-
353
- Show connected peers
354
- ~~~~~~~~~~~~~~~~~~~~
355
-
356
- Use getpeers to show list of peers connected to a aergosvr.
357
-
358
- It shows remote peers by default, but with :code: `--self ` options, local aergosvr itself is shown in list. You can find it by checking :code: `Self ` property.
359
-
360
- .. code-block :: shell
361
-
362
- [
363
- {
364
- " Address" : {
365
- " Address" : " 13.124.83.51" ,
366
- " Port" : " 7846" ,
367
- " PeerId" : " 16Uiu2HAmQn3nFBGhJM7TnZRguLhgUx1HnpNL2easdt2JrxdbFjtb"
368
- },
369
- " BestBlock" : {
370
- " BlockHash" : " BXAFbTbwEuywukzBqRKdCsuUpinnNQsVJCAXNVJAR6F4" ,
371
- " BlockNo" : 1251651
372
- },
373
- " LastCheck" : " 2019-02-27T11:26:38.481451+09:00" ,
374
- " State" : " RUNNING" ,
375
- " Hidden" : false,
376
- " Self" : true
377
- },
378
- {
379
- " Address" : {
380
- " Address" : " 13.211.156.203" ,
381
- " Port" : " 7846" ,
382
- " PeerId" : " 16Uiu2HAkvbHmK1Ke1hqAHmahwTGE4ndkdMdXJeXFE3kgBs17k2oQ"
383
- },
384
- " BestBlock" : {
385
- " BlockHash" : " AF68dtMMHd1h5LjxSyYY9AomMve6Qk2kBRSoQuuuSkhM" ,
386
- " BlockNo" : 1251650
387
- },
388
- " LastCheck" : " 2019-02-27T11:26:38.349938+09:00" ,
389
- " State" : " RUNNING" ,
390
- " Hidden" : false,
391
- " Self" : false
392
- },
393
- {
394
- " Address" : {
395
- " Address" : " 203.109.12.23" ,
396
- " Port" : " 7846" ,
397
- " PeerId" : " 16Uiu2HAmAnQ5jjk7huhepfFtDFFCreuJ21nHYBApVpg8G7EBdwme"
398
- },
399
- " BestBlock" : {
400
- " BlockHash" : " BXAFbTbwEuywukzBqRKdCsuUpinnNQsVJCAXNVJAR6F4" ,
401
- " BlockNo" : 1251651
402
- },
403
- " LastCheck" : " 2019-02-27T11:26:38.364262+09:00" ,
404
- " State" : " RUNNING" ,
405
- " Hidden" : false,
406
- " Self" : false
407
- }
408
- ]
0 commit comments