-
Notifications
You must be signed in to change notification settings - Fork 27
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
Backport eosio/eos 2.1 version of net_plugin #169
Conversation
I'm not really sure how to approach reviewing this. I originally started looking it as a diff from 2.1 vs Mandel and then backing out changes from that diff that are included in mandel via other PRs (like #56) but this was still unwieldy to really grok. I've at least run a node connected to some mainnet peers and all seems well. Anything specific that would be interesting to double check? |
That is the main thing. This PR includes special handling to "lie" to |
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.
hold up
plugins/net_plugin/net_plugin.cpp
Outdated
} | ||
uint32_t num = ++peer_requested->last; | ||
if(num == peer_requested->end_block) { | ||
peer_requested.reset(); | ||
fc_ilog( logger, "completing enqueue_sync_block ${num} to ${p}", ("num", num)("p", peer_name()) ); | ||
peer_ilog( this, "completing enqueue_sync_block ${num}", ("num", num) ); |
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.
This log is rather chatty. I guess I (normally) don't have any nodes syncing from me to have noticed before. Is it important to log every time some node requests some blocks from me?
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.
I'll change that to peer_dlog
, does seem to be a bit chatty.
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.
Been playing around with different combinations of nodeos versions connected to each other. Never saw any issues.
Changed to use message_header_size to simplify the code.
--p2p-keepalive-interval-ms
see net_plugin monitor heartbeat of peers EOSIO/eos#9694