mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Make debug easier.
This commit is contained in:
@@ -4,6 +4,8 @@
|
|||||||
#include <boost/lexical_cast.hpp>
|
#include <boost/lexical_cast.hpp>
|
||||||
#include <boost/make_shared.hpp>
|
#include <boost/make_shared.hpp>
|
||||||
|
|
||||||
|
#include "../json/writer.h"
|
||||||
|
|
||||||
#include "Ledger.h"
|
#include "Ledger.h"
|
||||||
#include "Serializer.h"
|
#include "Serializer.h"
|
||||||
|
|
||||||
@@ -29,4 +31,12 @@ void AccountState::addJson(Json::Value& val)
|
|||||||
val = mLedgerEntry->getJson(0);
|
val = mLedgerEntry->getJson(0);
|
||||||
if (!mValid) val["Invalid"] = true;
|
if (!mValid) val["Invalid"] = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void AccountState::dump()
|
||||||
|
{
|
||||||
|
Json::Value j(Json::objectValue);
|
||||||
|
Json::StyledStreamWriter ssw;
|
||||||
|
ssw.write(std::cerr, j);
|
||||||
|
}
|
||||||
|
|
||||||
// vim:ts=4
|
// vim:ts=4
|
||||||
|
|||||||
@@ -38,6 +38,7 @@ public:
|
|||||||
|
|
||||||
std::vector<unsigned char> getRaw() const;
|
std::vector<unsigned char> getRaw() const;
|
||||||
void addJson(Json::Value& value);
|
void addJson(Json::Value& value);
|
||||||
|
void dump();
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user