On master (6fef85bfa3cd7f76e83b8b57f9e4acd63eb664ec) CNode has two members to keep protocol version:
nRecvVersionfor received messagesnSendVersionfor messages to send
After exchanging with VERSION and VERACK messages via protocol version INIT_PROTO_VERSION, both nodes set nRecvVersion and nSendVersion to the same value which is the greatest common protocol version.
This PR:
- replaces two
CNodemembers,nRecvVersionnSendVersion, withm_greatest_common_version - removes duplicated getter and setter
There is no change in behavior on the P2P network.