mirror of
https://github.com/jwinterm/wownero.git
synced 2026-11-16 09:23:56 +01:00
move get_proof_of_trust_hash from util.h to p2p_protocol_defs.h
This avoids having to include p2p_protocol_defs.h in util.h, as util.h is used a lot, and p2p_protocol_defs.h includes a lot of other things that most users don't need.
This commit is contained in:
@@ -1382,7 +1382,7 @@ namespace nodetool
|
||||
}
|
||||
crypto::public_key pk = AUTO_VAL_INIT(pk);
|
||||
epee::string_tools::hex_to_pod(::config::P2P_REMOTE_DEBUG_TRUSTED_PUB_KEY, pk);
|
||||
crypto::hash h = tools::get_proof_of_trust_hash(tr);
|
||||
crypto::hash h = get_proof_of_trust_hash(tr);
|
||||
if(!crypto::check_signature(h, pk, tr.sign))
|
||||
{
|
||||
LOG_ERROR("check_trust failed: sign check failed");
|
||||
|
||||
Reference in New Issue
Block a user