Merge pull request #2215

06aea2cf move get_proof_of_trust_hash from util.h to p2p_protocol_defs.h (moneromooo-monero)
This commit is contained in:
Riccardo Spagni 2017-08-07 15:10:42 +02:00
commit a6ea26e7fa
No known key found for this signature in database
GPG key ID: 55432DF31CCD4FCD
3 changed files with 9 additions and 10 deletions

View file

@ -40,7 +40,6 @@
#include <string>
#include "crypto/hash.h"
#include "p2p/p2p_protocol_defs.h"
/*! \brief Various Tools
*
@ -108,14 +107,6 @@ namespace tools
bool sanitize_locale();
inline crypto::hash get_proof_of_trust_hash(const nodetool::proof_of_trust& pot)
{
std::string s;
s.append(reinterpret_cast<const char*>(&pot.peer_id), sizeof(pot.peer_id));
s.append(reinterpret_cast<const char*>(&pot.time), sizeof(pot.time));
return crypto::cn_fast_hash(s.data(), s.size());
}
/*! \brief Defines a signal handler for win32 and *nix
*/
class signal_handler