handle pc1 announce and reduce chance to sample random peer

(will remove random sample sometime in the future)
This commit is contained in:
2024-06-22 17:01:52 +02:00
parent e9f22bc9ae
commit bcde244a3c
3 changed files with 52 additions and 7 deletions

View File

@@ -18,7 +18,7 @@ struct SHA1Digest {
bool operator==(const SHA1Digest& other) const { return data == other.data; }
bool operator!=(const SHA1Digest& other) const { return data != other.data; }
size_t size(void) const { return data.size(); }
constexpr size_t size(void) const { return data.size(); }
};
std::ostream& operator<<(std::ostream& out, const SHA1Digest& v);