![]() |
Bitcoin ABC 0.32.4
P2P Digital Currency
|
#include <db.h>
Public Member Functions | |
| void | GetStats (CAddrDbStats &stats) const |
| void | ResetIgnores () |
| std::vector< CAddrReport > | GetAll () |
| template<typename Stream > | |
| void | Serialize (Stream &s) const |
| template<typename Stream > | |
| void | Unserialize (Stream &s) |
| void | Add (const CAddress &addr, bool fForce=false) |
| void | Add (const std::vector< CAddress > &vAddr, bool fForce=false) |
| void | GetMany (std::vector< CServiceResult > &ips, int max) |
| void | ResultMany (const std::vector< CServiceResult > &ips) |
| void | GetIPs (std::set< CNetAddr > &ips, uint64_t requestedFlags, uint32_t max, const bool *nets) |
Public Attributes | |
| std::map< CService, int64_t > | banned |
Protected Member Functions | |
| void | Add_ (const CAddress &addr, bool force) |
| bool | Get_ (CServiceResult &ip) |
| void | Good_ (const CService &ip, int clientV, std::string clientSV, int blocks, uint64_t services, bool checkpointVerified) |
| void | Bad_ (const CService &ip, int ban) |
| int | Lookup_ (const CService &ip) |
| void | GetIPs_ (std::set< CNetAddr > &ips, uint64_t requestedFlags, uint32_t max, const bool *nets) |
Private Attributes | |
| RecursiveMutex | cs |
| int | nId |
| std::map< int, SeederAddrInfo > | idToInfo |
| std::map< CService, int > | ipToId |
| std::deque< int > | ourId |
| std::set< int > | unkId |
| std::set< int > | goodId |
seen nodes
/ \
(a) banned nodes available nodes-----------— / | \ tracked nodes (b) unknown nodes (e) active nodes / \ (d) good nodes (c) non-good nodes
|
inline |
|
inline |
|
protected |
|
protected |
|
protected |
|
inline |
|
inline |
|
protected |
|
inline |
|
inline |
|
protected |
|
protected |
|
inline |
|
inline |
|
inline |
|
inline |
|
mutableprivate |
|
private |