After starting with port other than 9000, node is still able to sync to latest block.
- Set up accounts and test keys
- Run node with command which connect to mainnet and run on port 9002.
./node.sh -S -z -k 28142f0baf00edd18016d4d9d95f3844d7cff29e613b2a80b9623e1e38a0485c37a13f413499ce48f9bcae69c4d4b289.key -D -n 9002
- After a while, RPC Querying with 9502 port return non zero block number.
$ ./hmy --node=localhost:9502 blockchain latest-headers
{
"id": "0",
"jsonrpc": "2.0",
"result": {
"beacon-chain-header": {
"block-header-hash": "0x8390f7eebe1c89ee4b74779a9778e19b6b56aef934a6a53b83c0d5eec83cdc3b",
"block-number": 1530,
"epoch": 0,
"shard-id": 0,
"view-id": 1529
},
"shard-chain-header": {
"block-header-hash": "0xf4a1dd72d9c37c77c74f5aec027f4a08956737e74011d1ac77081149b49c4033",
"block-number": 89,
"epoch": 0,
"shard-id": 1,
"view-id": 88
}
}
}
Test passed.