Log proposals and validations (#5291)

Adds detailed log messages for each validation and proposal received from the network.
This commit is contained in:
Mark Travis
2025-02-14 17:48:12 -08:00
committed by GitHub
parent dd5e6559dd
commit db0fad6826
6 changed files with 59 additions and 0 deletions

View File

@@ -30,6 +30,7 @@
#include <functional>
#include <memory>
#include <optional>
#include <sstream>
namespace ripple {
@@ -141,6 +142,23 @@ public:
Blob
getSignature() const;
std::string
render() const
{
std::stringstream ss;
ss << "validation: "
<< " ledger_hash: " << getLedgerHash()
<< " consensus_hash: " << getConsensusHash()
<< " sign_time: " << to_string(getSignTime())
<< " seen_time: " << to_string(getSeenTime())
<< " signer_public_key: " << getSignerPublic()
<< " node_id: " << getNodeID() << " is_valid: " << isValid()
<< " is_full: " << isFull() << " is_trusted: " << isTrusted()
<< " signing_hash: " << getSigningHash()
<< " base58: " << toBase58(TokenType::NodePublic, getSignerPublic());
return ss.str();
}
private:
static SOTemplate const&
validationFormat();