-
Notifications
You must be signed in to change notification settings - Fork 176
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tighten up P2P relay and orphan management in order to perfect high-BPS block exchange #359
Tighten up P2P relay and orphan management in order to perfect high-BPS block exchange #359
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks sound logic-wise. Comments primarily for readability.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Previous review had misaligned suggestions. Deleted those and put this one up.
61dd275
to
2ced245
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tested extensively on a slow laptop and I don't observe the repetitive IBD loop. IBD still happens after some time, but only on my very slow machine. The faster desktop is able to keep up without further IBD after the first.
…PS block exchange (kaspanet#359) * complete revalidate orphans correctly * improve test * names and comments * close the sync gap between consensus and the block orphan pool * renames and comments * orphan ibd heuristic * explain the ibd heuristic * simplify orphan output case + review comments * remove todo and explain why * log orphan-related events via the event logger * add nodnsseed cmd flag which disable DNS seeding for peers * bump version to 0.13.1 * updated sync gap comment * update fn doc * typo * fix logs
Includes 3 major components which can be reviewed separately:
The end result tested via an internal TN11 testnet shows that with all the above, on-going P2P block exchange is smooth also on a 10BPS network and between peers with RTT > block time (=100ms)