Path finding fixes:

Track path finding and order book creation time and latency.
Use a ledger snapshot for path finding.
You can't call getCurrentLedger from an unlocked context.
Pathfinding called from the transaction sign function held the master lock.
This commit is contained in:
JoelKatz
2013-02-12 20:39:00 -08:00
parent ef5069a706
commit cb111b6318
8 changed files with 62 additions and 28 deletions

View File

@@ -37,13 +37,15 @@ enum JobType
jtDEATH = 14, // job of death, used internally
// special types not dispatched by the job pool
jtPEER = 17,
jtDISK = 18,
jtRPC = 19,
jtACCEPTLEDGER = 20,
jtTXN_PROC = 21,
jtPEER = 24,
jtDISK = 25,
jtRPC = 26,
jtACCEPTLEDGER = 27,
jtTXN_PROC = 28,
jtOB_SETUP = 29,
jtPATH_FIND = 30
}; // CAUTION: If you add new types, add them to JobType.cpp too
#define NUM_JOB_TYPES 24
#define NUM_JOB_TYPES 32
class Job
{