+
Skip to content

Conversation

mur-me
Copy link
Collaborator

@mur-me mur-me commented Apr 16, 2025

Issue

I've put the same ip from the cli setup, because previously bootnode was listening only localhost aka 127.0.0.1 by default.

Additionally, I've moved default port from 9500 to 9513 and 9800 to 9813, because when we have both harmony and bootnode on the same server - we are starting to play the game who is faster for takeover the port after server reboot.

Test

  • I've installed my updated version on the one of devnet bootnodes and what I have, as you can see it is listening on the 0.0.0.0 as original config from the cli:
sudo netstat -plnt | grep bootnode
tcp        0      0 0.0.0.0:9020            0.0.0.0:*               LISTEN      6636/bootnode       
tcp6       0      0 :::9813                 :::*                    LISTEN      6636/bootnode       
tcp6       0      0 :::9513                 :::*                    LISTEN      6636/bootnode   
  • Additionally, I was able to run curl request to the bootnode's RPC when I'm under VPN - it gives us possibilities to enhance our internal monitoring/integration tests in the future:
curl -H 'Content-Type:application/json' -X POST 'bootnodes_host:9513' -d '{"id":"1","jsonrpc":"2.0","method":"hmybootv2_getNodeMetadata","params":[]}' | jq
---
{
  "jsonrpc": "2.0",
  "id": "1",
  "result": {
    "network": "mainnet",
    "node-unix-start-time": 1744884005,
    "p2p-connectivity": {
      "connected": 2433,
      "not-connected": 5436,
      "total-known-peers": 7869
    },
    "peerid": "QmRdKvrGyWVxwXTcu4YiC5bPMLPqFSmneDG1jwuUnQcn2W",
    "version": "Harmony (C) 2025. bootnode, version v8688-v2025.4.0-15-g0b4aed9dd (uladzislau@ 2025-04-16T16:52:09+0300)"
  }
}

@mur-me mur-me force-pushed the chore_bootnode_sync_http_setup_with_cli_setup branch 2 times, most recently from 0b4aed9 to 4edd4a4 Compare April 16, 2025 14:18
@mur-me
Copy link
Collaborator Author

mur-me commented Apr 16, 2025

Travis CI for some reason don't like my commit + Gheis fix together, let's retry after merge of #4885

@mur-me mur-me changed the title Chore bootnode sync http setup with cli setup Chore bootnode sync the http and ws setup with cli variables Apr 16, 2025
@mur-me mur-me force-pushed the chore_bootnode_sync_http_setup_with_cli_setup branch from 4edd4a4 to b32164a Compare April 17, 2025 10:31
@mur-me mur-me changed the title Chore bootnode sync the http and ws setup with cli variables [bootnode] - sync the http and ws setup with cli IP variable Apr 17, 2025
@mur-me mur-me marked this pull request as ready for review April 17, 2025 10:42
@mur-me mur-me merged commit dd0dc92 into dev Apr 23, 2025
3 checks passed
@mur-me mur-me deleted the chore_bootnode_sync_http_setup_with_cli_setup branch April 23, 2025 08:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载