|
|
|
@ -256,6 +256,9 @@ protected:
@@ -256,6 +256,9 @@ protected:
|
|
|
|
|
//! Mark an entry as currently-connected-to.
|
|
|
|
|
void Connected_(const CService &addr, int64_t nTime); |
|
|
|
|
|
|
|
|
|
//! Update an entry's service bits.
|
|
|
|
|
void SetServices_(const CService &addr, uint64_t nServices); |
|
|
|
|
|
|
|
|
|
public: |
|
|
|
|
/**
|
|
|
|
|
* serialized format: |
|
|
|
@ -589,6 +592,14 @@ public:
@@ -589,6 +592,14 @@ public:
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void SetServices(const CService &addr, uint64_t nServices) |
|
|
|
|
{ |
|
|
|
|
LOCK(cs); |
|
|
|
|
Check(); |
|
|
|
|
SetServices_(addr, nServices); |
|
|
|
|
Check(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
#endif // BITCOIN_ADDRMAN_H
|
|
|
|
|