diff options
author | Pieter Wuille <pieter.wuille@gmail.com> | 2011-07-14 05:29:09 -0700 |
---|---|---|
committer | Pieter Wuille <pieter.wuille@gmail.com> | 2011-07-14 05:29:09 -0700 |
commit | 24271c542b9a0d6016badf5438fb7e5ff7961ace (patch) | |
tree | 8f99f62a11748d3f64200e9e44419dde3cbde7eb /src/net.h | |
parent | 36cd1ad5c90957608f711f79c7c2d8ef8a05c252 (diff) | |
parent | d655a26c9dd157a9e4bf08bff14bfaa69791287a (diff) |
Merge pull request #412 from sgimenez/db-transactions
Single DB transactions
Diffstat (limited to 'src/net.h')
-rw-r--r-- | src/net.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -14,6 +14,7 @@ class CMessageHeader; class CAddress; +class CAddrDB; class CInv; class CRequestTracker; class CNode; @@ -39,7 +40,7 @@ bool ConnectSocket(const CAddress& addrConnect, SOCKET& hSocketRet, int nTimeout bool Lookup(const char *pszName, std::vector<CAddress>& vaddr, int nServices, int nMaxSolutions, bool fAllowLookup = false, int portDefault = 0, bool fAllowPort = false); bool Lookup(const char *pszName, CAddress& addr, int nServices, bool fAllowLookup = false, int portDefault = 0, bool fAllowPort = false); bool GetMyExternalIP(unsigned int& ipRet); -bool AddAddress(CAddress addr, int64 nTimePenalty=0); +bool AddAddress(CAddress addr, int64 nTimePenalty=0, CAddrDB *pAddrDB=NULL); void AddressCurrentlyConnected(const CAddress& addr); CNode* FindNode(unsigned int ip); CNode* ConnectNode(CAddress addrConnect, int64 nTimeout=0); |