Refactor Log code, add LogJournal adapter

This commit is contained in:
Vinnie Falco
2013-09-12 15:03:39 -07:00
parent 5038a65acd
commit b839ae0552
25 changed files with 802 additions and 577 deletions

View File

@@ -12,6 +12,15 @@ RippleAddress::RippleAddress ()
nVersion = VER_NONE;
}
RipplePublicKey RippleAddress::toRipplePublicKey () const
{
Blob const& b (getNodePublic ());
check_precondition (b.size () == RipplePublicKey::sizeInBytes);
return RipplePublicKey (&b [0]);
}
void RippleAddress::clear ()
{
nVersion = VER_NONE;

View File

@@ -31,6 +31,11 @@ private:
public:
RippleAddress ();
// Convert to a binary public key. If the underlying data
// is not appropriate, this will cause a fatal error.
//
RipplePublicKey toRipplePublicKey () const;
// For public and private key, checks if they are legal.
bool isValid () const
{