public class PeerInfo extends Struct
A system peer info indicator, reported back over RPC
Constructor and Description |
---|
PeerInfo(java.lang.Object value) |
Modifier and Type | Method and Description |
---|---|
Hash |
getBestHash()
The best block hash for the peer
|
BlockNumber |
getBestNumber()
The best block hash for the peer
|
Text |
getPeerId()
The p2p network id for the peer
|
U32 |
getProtocolVersion()
The index of the peer in our list
|
Text |
getRoles()
The roles of the peer on the network
|
builder, eq, getEncodedLength, getField, isEmpty, toArray, toHex, toJson, toString, toU8a, with
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, values
clone, compute, computeIfAbsent, computeIfPresent, containsKey, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
finalize, getClass, notify, notifyAll, wait, wait, wait
getConstructorCodec, toU8a
public Hash getBestHash()
The best block hash for the peer
public BlockNumber getBestNumber()
The best block hash for the peer
public Text getPeerId()
The p2p network id for the peer
public U32 getProtocolVersion()
The index of the peer in our list
public Text getRoles()
The roles of the peer on the network