Add path expansion to transaction engine.

This commit is contained in:
Arthur Britto
2012-08-03 14:57:52 -07:00
parent 42bd29c212
commit 1a6a6231cc
4 changed files with 98 additions and 17 deletions

View File

@@ -101,10 +101,12 @@ enum TransactionEngineParams
};
typedef struct {
uint16 uFlags; // --> from path
uint16 uFlags; // --> From path.
uint160 uAccountID; // --> recieving/sending account
uint160 uCurrencyID; // --> currency to recieve
uint160 uAccountID; // --> Recieving/sending account.
uint160 uCurrencyID; // --> Currency to recieve.
// --- For offer's next has currency out.
uint160 uIssuerID; // --> Currency's issuer
// Computed by Reverse.
STAmount saRevRedeem; // <-- Amount to redeem to next.
@@ -119,10 +121,12 @@ typedef struct {
// Hold a path state under incremental application.
class PathState
{
protected:
bool pushNode(int iType, uint160 uAccountID, uint160 uCurrencyID, uint160 uIssuerID);
public:
typedef boost::shared_ptr<PathState> pointer;
std::vector<paymentNode> vpnNodes;
LedgerEntrySet lesEntries;