Validators work

This commit is contained in:
Vinnie Falco
2013-10-04 00:46:07 -07:00
parent a2aa938e10
commit 678c241962
9 changed files with 431 additions and 235 deletions

View File

@@ -88,14 +88,14 @@ bool Utilities::parseInfoLine (
std::string const encodedKey (match [1]);
std::string const commentText (match [2]);
RippleAddress deprecatedPublicKey;
std::pair <RipplePublicKey, bool> result (
RipplePublicKey::from_string (encodedKey));
if (deprecatedPublicKey.setNodePublic (encodedKey))
if (result.second)
{
// We got a public key.
RipplePublicKey publicKey (deprecatedPublicKey);
info.label = commentText;
info.publicKey = publicKey;
info.publicKey = result.first;
success = true;
}
else