Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Check the sync is working with closed inbound #4052

Closed
sridharmeganathan opened this issue Aug 7, 2019 · 1 comment
Closed

Check the sync is working with closed inbound #4052

sridharmeganathan opened this issue Aug 7, 2019 · 1 comment
Assignees
Milestone

Comments

@sridharmeganathan
Copy link
Contributor

sridharmeganathan commented Aug 7, 2019

Verify that the node can sync while the inbound wsPort is closed.

Scenarios to check:

  1. Node can sync from genesis
  2. Node can sync after reaching the max network height
@jondubois
Copy link
Contributor

I tested the scenarios on devnet (running only v2.3 nodes).

I verified the first sync scenario by running the node on localhost with a fresh database and connecting to devnet. The node was able to sync from scratch.

To verify the second scenario, I ssh'ed into a node on devnet which was already at a good height. I also watched the HTTP API endpoint /api/blocks to monitor the current height and checked that it was receiving blocks passively from the network. Then I blocked the inbound wsPort (port 5000) using firewall rules on Digital Ocean.

  • The logs indicated that the node was still synching.
  • The node height continued to increment every 10 seconds.
  • Opening the port allowed the node to exit sync mode and return to receiving blocks passively.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants