I have a running EOS blockchain with a connected peer (running) created by following the documentation tutorial https://developers.eos.io/welcome/latest/tutorials/bios-boot-sequence. So, my config file is not on the default path. The respective files are stored on the path /home/user/biosboot/genesis
. Now to get the Peers information using the reference of NET API Plugin, I am calling the API https://developers.eos.io/manuals/eos/latest/nodeos/plugins/net_api_plugin/api-reference/index#operation/connections at my endpoint. It returns the list of peers connected but not with accurate values. For example:
Genesis node
cleos --url http://genesisip:8889 get info
returns head_block_num
as 10385207
Connected Peer
cleos --url http://connectedip:8889 get info
returns head_block_num
as 10385207
Now On POSTMAN, I call POST http://genesisip:8889/v1/net/connections
it returns (***
are edited by me),
[
{
"peer": "",
"connecting": false,
"syncing": false,
"last_handshake": {
"network_version": 1207,
"chain_id": "***",
"node_id": "***",
"key": "***",
"time": "1612778978797327000",
"token": "0000000000000000000000000000000000000000000000000000000000000000",
"sig": "***",
"p2p_address": "connectedip:8888 - 540c0e9",
"last_irreversible_block_num": 1445747,
"last_irreversible_block_id": "***",
"head_num": 1445748,
"head_id": "***",
"os": "linux",
"agent": "\"EOS Test Agent\"",
"generation": 3
}
}
]
All information of connected peer is completely different.chain_id
is the same, head_num
should be in the range of 10385207
. why peer
is empty? Why connecting
and syncing
are false? Do I need to pass any parameters related to the file's path? Please help.