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

@@ -800,7 +800,7 @@ PeerImp::onMessage (std::shared_ptr <protocol::TMHello> const& m)
hello_ = *m;
auto const result = overlay_.peerFinder().activate (slot_,
RipplePublicKey (publicKey_), cluster);
publicKey_.toPublicKey(), cluster);
if (result == PeerFinder::Result::success)
{