Merge #20146: net: Send post-verack handshake messages at most once
pull/764/headfa1f6f237d
net: Send post-verack handshake messages at most once (MarcoFalke) Pull request description: There is no need to send `SENDHEADERS` and `SENDCMPCT` messages as a reply to each `VERACK` that is received. For alive checks, a `PING`/`PONG` can be used. ACKs for top commit: jonatack: Concept ACKfa1f6f237d
this is the only code section that sets `fCurrentlyConnected` and `fSuccessfullyConnected` to true. Could add a test. I did not verify if this code is actually being called repeatedly post initial verack; was it? hebasto: ACKfa1f6f237d
, I have reviewed the code and it looks OK, I agree it can be merged. naumenkogs: ACKfa1f6f237d
laanwj: Code review ACKfa1f6f237d
Tree-SHA512: c841d5d3807254a49463bbcfac3b32881b34a9d3206899544c86322c20988e17ad2ae243cba227fd3825a914f0cb2584451edda2414aecee6d5e3f5a0636f08a
commit
661fe5d65c
Loading…
Reference in new issue