Get the node info.
Usage
visionWeb.vs.getNodeInfo();
Parameters
No need to pass parameters.
Returns
Object
Example
visionWeb.vs.getNodeInfo();
> {
activeConnectCount: 3,
beginSyncNum: 115684,
block: 'Num:115688,ID:000000000001c3e8b70960a264b101e09b22d520276d293cfa3ee5d893dd95f0',
cheatWitnessInfoMap: {},
configNodeInfo: {
activeNodeSize: 1,
allowAdaptiveEntropy : 1,
allowCreationOfContracts: 1,
backupListenPort: 10001,
backupMemberSize: 0,
backupPriority: 8,
codeVersion: '1.0.0',
dbVersion: 2,
discoverEnable: true,
listenPort: 18888,
maxConnectCount: 30,
maxTimeRatio: 5,
minParticipationRate: 15,
minTimeRatio: 0,
p2pVersion: '20201214',
passiveNodeSize: 0,
sameIpMaxConnectCount: 2,
sendNodeSize: 0,
supportConstant: true,
versionNum: '13215'
},
currentConnectCount: 3,
machineInfo: {
cpuCount: 2,
cpuRate: 0.13083555640243902,
deadLockThreadCount: 0,
deadLockThreadInfoList: [],
freeMemory: 246640640,
javaVersion: '1.8.0_271',
jvmFreeMemory: 798131872,
jvmTotalMemory: 865075200,
memoryDescInfoList: [ [Object], [Object], [Object], [Object], [Object], [Object] ],
osName: 'Linux 4.4.0-1092-aws',
processCpuRate: 0.012218940548780487,
threadCount: 120,
totalMemory: 3892129792
},
passiveConnectCount: 0,
peerList: [
{
active: true,
avgLatency: 5,
blockInPorcSize: 0,
connectTime: 1608096287526,
disconnectTimes: 0,
headBlockTimeWeBothHave: 0,
headBlockWeBothHave: 'Num:28117,ID:0000000000006dd501c0553056ff56821a616254579e6c0c284a6ecd9fe4b1a6',
host: '13.59.86.251',
inFlow: 6668,
lastBlockUpdateTime: 1608096292512,
lastSyncBlock: '',
localDisconnectReason: '',
needSyncFromPeer: false,
needSyncFromUs: false,
nodeCount: 3,
nodeId: '99b561bb4d5bafec67a0f103fda9ca88f93af7f8e09f0f75df25f24659ff5ffe53d7e9b1259a3a2ed67cf60e347fc6d213add165a06d9fe8bb611e3b386f7a55',
port: 18888,
remainNum: 0,
remoteDisconnectReason: '',
score: 276,
syncBlockRequestedSize: 0,
syncFlag: false,
syncToFetchSize: 0,
syncToFetchSizePeekNum: -1,
unFetchSynNum: 0
},
{
active: true,
avgLatency: 5,
blockInPorcSize: 0,
connectTime: 1608096287525,
disconnectTimes: 0,
headBlockTimeWeBothHave: 0,
headBlockWeBothHave: 'Num:28117,ID:0000000000006dd501c0553056ff56821a616254579e6c0c284a6ecd9fe4b1a6',
host: '18.191.240.158',
inFlow: 6491,
lastBlockUpdateTime: 1608096292512,
lastSyncBlock: '',
localDisconnectReason: '',
needSyncFromPeer: false,
needSyncFromUs: false,
nodeCount: 3,
nodeId: 'e02ce2f25d487d1850905830dedd3d14d8c5ffb512d92367a86580baadc3d4c5d4704e7e6f0ac159c049848ac734d8648de6329e311b7c5a47aeea6073d19d1e',
port: 18888,
remainNum: 0,
remoteDisconnectReason: '',
score: 288,
syncBlockRequestedSize: 0,
syncFlag: false,
syncToFetchSize: 0,
syncToFetchSizePeekNum: -1,
unFetchSynNum: 0
},
{
active: true,
avgLatency: 5,
blockInPorcSize: 0,
connectTime: 1608096287525,
disconnectTimes: 0,
headBlockTimeWeBothHave: 0,
headBlockWeBothHave: 'Num:28117,ID:0000000000006dd501c0553056ff56821a616254579e6c0c284a6ecd9fe4b1a6',
host: '3.128.171.189',
inFlow: 6845,
lastBlockUpdateTime: 1608096292513,
lastSyncBlock: '',
localDisconnectReason: '',
needSyncFromPeer: false,
needSyncFromUs: false,
nodeCount: 3,
nodeId: '3a4043cece3d271c53f2f2dff2ef3771ef53cf583847da01b5d60cbb89ca293eeabcd9ea8e60096b61a4eca58d34253128b014892733e64a088387725d9ccb7b',
port: 18888,
remainNum: 0,
remoteDisconnectReason: '',
score: 240,
syncBlockRequestedSize: 0,
syncFlag: false,
syncToFetchSize: 0,
syncToFetchSizePeekNum: -1,
unFetchSynNum: 0
}
],
solidityBlock: 'Num:115686,ID:000000000001c3e61093dd47e895e14a9abf6bcf4b92646bc7d7708e53b29023',
totalFlow: 20004
}