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:
@@ -94,7 +94,7 @@ public:
|
||||
std::multiset <beast::IP::Address> connectedAddresses_;
|
||||
|
||||
// Set of public keys belonging to active peers
|
||||
std::set <RipplePublicKey> keys_;
|
||||
std::set <PublicKey> keys_;
|
||||
|
||||
// A list of dynamic sources to consult as a fallback
|
||||
std::vector <beast::SharedPtr <Source>> m_sources;
|
||||
@@ -371,7 +371,7 @@ public:
|
||||
|
||||
Result
|
||||
activate (SlotImp::ptr const& slot,
|
||||
RipplePublicKey const& key, bool cluster)
|
||||
PublicKey const& key, bool cluster)
|
||||
{
|
||||
if (m_journal.debug) m_journal.debug << beast::leftw (18) <<
|
||||
"Logic handshake " << slot->remote_endpoint () <<
|
||||
|
||||
@@ -181,7 +181,7 @@ public:
|
||||
|
||||
Result
|
||||
activate (Slot::ptr const& slot,
|
||||
RipplePublicKey const& key, bool cluster) override
|
||||
PublicKey const& key, bool cluster) override
|
||||
{
|
||||
SlotImp::ptr impl (std::dynamic_pointer_cast <SlotImp> (slot));
|
||||
return m_logic.activate (impl, key, cluster);
|
||||
|
||||
@@ -78,7 +78,7 @@ public:
|
||||
return m_local_endpoint;
|
||||
}
|
||||
|
||||
boost::optional <RipplePublicKey> const& public_key () const
|
||||
boost::optional <PublicKey> const& public_key () const
|
||||
{
|
||||
return m_public_key;
|
||||
}
|
||||
@@ -106,7 +106,7 @@ public:
|
||||
m_remote_endpoint = endpoint;
|
||||
}
|
||||
|
||||
void public_key (RipplePublicKey const& key)
|
||||
void public_key (PublicKey const& key)
|
||||
{
|
||||
m_public_key = key;
|
||||
}
|
||||
@@ -160,7 +160,7 @@ private:
|
||||
State m_state;
|
||||
beast::IP::Endpoint m_remote_endpoint;
|
||||
boost::optional <beast::IP::Endpoint> m_local_endpoint;
|
||||
boost::optional <RipplePublicKey> m_public_key;
|
||||
boost::optional <PublicKey> m_public_key;
|
||||
|
||||
static std::int32_t BEAST_CONSTEXPR unknownPort = -1;
|
||||
std::atomic <std::int32_t> m_listening_port;
|
||||
|
||||
Reference in New Issue
Block a user