diff options
| author | Pieter Wuille <[email protected]> | 2016-03-26 18:58:00 +0100 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2016-06-13 17:40:16 +0200 |
| commit | 3764dec36c815267174951a4c64e17c07ee6302f (patch) | |
| tree | 017bd6c2933f65f1b4ebbe34533e74c25e400dd0 /src/main.cpp | |
| parent | Merge #8141: Continuing port of java comparison tool (diff) | |
| download | discoin-3764dec36c815267174951a4c64e17c07ee6302f.tar.xz discoin-3764dec36c815267174951a4c64e17c07ee6302f.zip | |
Keep addrman's nService bits consistent with outbound observations
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index 6092e7a12..ac89945bf 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -4612,6 +4612,10 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv, CAddress addrFrom; uint64_t nNonce = 1; vRecv >> pfrom->nVersion >> pfrom->nServices >> nTime >> addrMe; + if (!pfrom->fInbound) + { + addrman.SetServices(pfrom->addr, pfrom->nServices); + } if (pfrom->nVersion < MIN_PEER_PROTO_VERSION) { // disconnect from peers older than this proto version |