Skip to content
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

P2P: Send handshake to peer to let it know it is not syncing from us #18

Closed
wants to merge 1 commit into from

Conversation

heifner
Copy link
Member

@heifner heifner commented Apr 10, 2024

Test failure: nodeos_forked_chain_if_lr_test https://github.com/AntelopeIO/spring/actions/runs/8624067947/job/23638727644
The logs showed the test failed because a peer (Node02) stopped receiving blocks. It stopped receiving blocks because the block producer (Node00) thought Node02 was syncing from it, so it didn't send current blocks.

Updated net_plugin to send handshakes (how a node knows a peer is not syncing from it) even if the peer thinks the other peer is syncing from the you. Also send handshake to peer when it informs you that it needs blocks, but you determine it does not.

Set peer_syncing_from_us to false for handshake case where it was missing (Block discrepancy is within network latency range).

@heifner heifner requested review from greg7mdp and linh2931 April 10, 2024 17:53
@heifner
Copy link
Member Author

heifner commented Apr 10, 2024

Closing to target savanna branch.

@heifner heifner closed this Apr 10, 2024
@heifner heifner deleted the net-plugin-sync-peer branch July 10, 2024 16:58
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