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