diff options
author | Riccardo Spagni <ric@spagni.net> | 2017-08-07 15:10:42 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2017-08-07 15:10:42 +0200 |
commit | a6ea26e7faad923f02402a2b7294d14edd7c2aa4 (patch) | |
tree | b168dd863dd4382040c7ae9cf037447a31707869 /src/common | |
parent | Merge pull request #2214 (diff) | |
parent | move get_proof_of_trust_hash from util.h to p2p_protocol_defs.h (diff) | |
download | monero-a6ea26e7faad923f02402a2b7294d14edd7c2aa4.tar.xz |
Merge pull request #2215
06aea2cf move get_proof_of_trust_hash from util.h to p2p_protocol_defs.h (moneromooo-monero)
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/util.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/common/util.h b/src/common/util.h index 4291d7e18..2452bc9d5 100644 --- a/src/common/util.h +++ b/src/common/util.h @@ -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 |