Add getJson to PathState.

This commit is contained in:
Arthur Britto
2012-08-14 18:18:15 -07:00
parent 872314f933
commit 8ef27615dc
2 changed files with 65 additions and 19 deletions

View File

@@ -151,6 +151,8 @@ public:
bool bPartialPayment
);
Json::Value getJson() const;
static PathState::pointer createPathState(
int iIndex,
const LedgerEntrySet& lesSource,
@@ -187,14 +189,6 @@ private:
bool dirFirst(const uint256& uRootIndex, SLE::pointer& sleNode, unsigned int& uDirEntry, uint256& uEntryIndex);
bool dirNext(const uint256& uRootIndex, SLE::pointer& sleNode, unsigned int& uDirEntry, uint256& uEntryIndex);
#ifdef WORK_IN_PROGRESS
typedef struct {
std::vector<paymentNode> vpnNodes;
bool bAllowPartial;
} paymentGroup;
#endif
TransactionEngineResult setAuthorized(const SerializedTransaction& txn, bool bMustSetGenerator);
TransactionEngineResult takeOffers(