Simplify RipplePublicKey:

This implements the bare minimum necessary to store a 33 byte public
key and use it in ordered containers. It is an efficient and well
defined alternative to RippleAddress when the caller only needs
a node public key.
This commit is contained in:
Vinnie Falco
2014-12-12 14:20:28 -08:00
parent 2f6af906f4
commit 28b09bde4b
7 changed files with 89 additions and 40 deletions

View File

@@ -492,7 +492,7 @@ ConnectAttempt::onReadBody (error_code ec,
"Cluster name: " << name;
auto const result = overlay_.peerFinder().activate (
slot_, RipplePublicKey(publicKey), cluster);
slot_, publicKey.toPublicKey(), cluster);
if (result != PeerFinder::Result::success)
return fail("Outbound slots full");
@@ -605,7 +605,7 @@ ConnectAttempt::processResponse (beast::http::message const& m,
"Cluster name: " << name;
auto const result = overlay_.peerFinder().activate (slot_,
RipplePublicKey(publicKey), clusterNode);
publicKey.toPublicKey(), clusterNode);
if (result != PeerFinder::Result::success)
return fail("Outbound slots full");