net: deserialize the entire version message locally
commit2046617b5e06ddb7f960b28219c155995542f029
authorCory Fields <cory-nospam-@coryfields.com>
Wed, 18 Jan 2017 23:15:00 +0000 (18 18:15 -0500)
committerCory Fields <cory-nospam-@coryfields.com>
Thu, 2 Feb 2017 21:13:52 +0000 (2 16:13 -0500)
tree53a62fc8ab3fc3361f026f7c1f6429d0456a5887
parent80ff0344aebbdebdfa7433d855b0aa9de6c4bed3
net: deserialize the entire version message locally

This avoids having some vars set if the version negotiation fails.

Also copy it all into CNode at the same site. nVersion and
fSuccessfullyConnected are set last, as they are the gates for the other vars.
Make them atomic for that reason.
src/net.h
src/net_processing.cpp