Skip to content

Instantly share code, notes, and snippets.

@JackyWYX
Last active May 21, 2020 05:51
Show Gist options
  • Save JackyWYX/ce7578dd367a78516001080c0f177508 to your computer and use it in GitHub Desktop.
Save JackyWYX/ce7578dd367a78516001080c0f177508 to your computer and use it in GitHub Desktop.
#3060_test_log

Feature to be tested

After starting with port other than 9000, node is still able to sync to latest block.

Steps

  1. Set up accounts and test keys
  2. Run node with command which connect to mainnet and run on port 9002.
./node.sh -S -z -k 28142f0baf00edd18016d4d9d95f3844d7cff29e613b2a80b9623e1e38a0485c37a13f413499ce48f9bcae69c4d4b289.key -D -n 9002
  1. 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
    }
  }
}

Conclusion

Test passed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment