extra peer logging

This commit is contained in:
Vito
2025-06-02 22:14:14 +02:00
parent 72b19a1c89
commit e80f46f296

View File

@@ -2414,6 +2414,21 @@ PeerImp::onMessage(std::shared_ptr<protocol::TMValidation> const& m)
return ret;
}();
JLOG(p_journal_.debug()) << [this, &val]() -> auto {
std::stringstream ss;
ss << "PEER_IMP_VALIDATION: " << val->render() << " master_key: ";
auto master =
app_.validators().getTrustedKey(val->getSignerPublic());
if (master)
{
ss << toBase58(TokenType::NodePublic, *master);
}
else
{
ss << "none";
}
return ss.str();
}();
std::weak_ptr<PeerImp> weak = shared_from_this();
app_.getJobQueue().addJob(
isTrusted ? jtVALIDATION_t : jtVALIDATION_ut,