mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Remove RippleAddress:
The RippleAddress class was used to represent a number of fundamentally different types: account public keys, account secret keys, node public keys, node secret keys, seeds and generators. The class is replaced by the following types: * PublicKey for account and node public keys * SecretKey for account and node private keys * Generator for generating secp256k1 accounts * Seed for account, node and generator seeds
This commit is contained in:
@@ -86,7 +86,7 @@ public:
|
||||
private:
|
||||
bool addValidation (STValidation::ref val, std::string const& source) override
|
||||
{
|
||||
RippleAddress signer = val->getSignerPublic ();
|
||||
auto signer = val->getSignerPublic ();
|
||||
bool isCurrent = current (val);
|
||||
|
||||
if (!val->isTrusted() && app_.validators().trusted (signer))
|
||||
@@ -94,15 +94,16 @@ private:
|
||||
|
||||
if (!val->isTrusted ())
|
||||
{
|
||||
JLOG (j_.debug) << "Node " << signer.humanNodePublic ()
|
||||
<< " not in UNL st="
|
||||
<< val->getSignTime().time_since_epoch().count()
|
||||
<< ", hash=" << val->getLedgerHash ()
|
||||
<< ", shash=" << val->getSigningHash () << " src=" << source;
|
||||
JLOG (j_.trace) <<
|
||||
"Node " << toBase58 (TokenType::TOKEN_NODE_PUBLIC, signer) <<
|
||||
" not in UNL st=" << val->getSignTime().time_since_epoch().count() <<
|
||||
", hash=" << val->getLedgerHash () <<
|
||||
", shash=" << val->getSigningHash () <<
|
||||
" src=" << source;
|
||||
}
|
||||
|
||||
auto hash = val->getLedgerHash ();
|
||||
auto node = signer.getNodeID ();
|
||||
auto node = val->getNodeID ();
|
||||
|
||||
if (val->isTrusted () && isCurrent)
|
||||
{
|
||||
@@ -138,9 +139,11 @@ private:
|
||||
}
|
||||
}
|
||||
|
||||
JLOG (j_.debug) << "Val for " << hash << " from " << signer.humanNodePublic ()
|
||||
<< " added " << (val->isTrusted () ? "trusted/" : "UNtrusted/")
|
||||
<< (isCurrent ? "current" : "stale");
|
||||
JLOG (j_.debug) <<
|
||||
"Val for " << hash <<
|
||||
" from " << toBase58 (TokenType::TOKEN_NODE_PUBLIC, signer) <<
|
||||
" added " << (val->isTrusted () ? "trusted/" : "UNtrusted/") <<
|
||||
(isCurrent ? "current" : "stale");
|
||||
|
||||
if (val->isTrusted () && isCurrent)
|
||||
{
|
||||
@@ -482,7 +485,9 @@ private:
|
||||
it->add (s);
|
||||
*db << boost::str (
|
||||
insVal % to_string (it->getLedgerHash ()) %
|
||||
it->getSignerPublic ().humanNodePublic () %
|
||||
toBase58(
|
||||
TokenType::TOKEN_NODE_PUBLIC,
|
||||
it->getSignerPublic ()) %
|
||||
it->getSignTime().time_since_epoch().count() %
|
||||
sqlEscape (s.peekData ()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user