Bugfix: store source address in addrman
authorPieter Wuille <pieter.wuille@gmail.com>
Sat, 5 May 2012 19:27:52 +0000 (21:27 +0200)
committerLuke Dashjr <luke-jr+git@utopios.org>
Sun, 6 May 2012 05:33:38 +0000 (05:33 +0000)
src/addrman.h

index 91e1f87..5f1d7b2 100644 (file)
@@ -62,7 +62,7 @@ public:
         nRandomPos = -1;
     }
 
-    CAddrInfo(const CAddress &addrIn, const CNetAddr &addrSource) : CAddress(addrIn)
+    CAddrInfo(const CAddress &addrIn, const CNetAddr &addrSource) : CAddress(addrIn), source(addrSource)
     {
         Init();
     }