Commit Graph

98 Commits

Author SHA1 Message Date
JoelKatz
1b18e16d1f Track consensus versus validated ledgers and log discrepancies. 2013-09-09 18:27:05 -07:00
JoelKatz
a4e81fb6ad Fix some performance problems with the new ledger master code. 2013-09-09 02:02:23 -07:00
JoelKatz
68547c328e Handle a case of missing ledger nodes sanely. 2013-09-07 18:06:40 -07:00
JoelKatz
3174372081 Remove an erroneous comment. 2013-09-07 18:06:34 -07:00
JoelKatz
7abfd354f8 New improved Pathfinding engine 2013-09-06 12:35:13 -07:00
JoelKatz
9f87e36545 Only update order book DB every ten ledgers
The order book DB code should be change to update on creation of order books rather than rescan.
2013-09-05 13:08:51 -07:00
Vinnie Falco
91e0cc84ef Validators framework and unit test 2013-09-03 08:31:17 -07:00
Vinnie Falco
825ac4aca1 Make canonicalize take a pointer for clarity 2013-09-01 12:21:58 -07:00
JoelKatz
eb33ae0d71 Fix a few bugs caused by starting without --net. There may still be some minor ones. 2013-08-28 00:55:56 -07:00
Vinnie Falco
f14333012b Use RippleMutex instead of boost::mutex 2013-08-23 15:00:04 -07:00
Vinnie Falco
5dc9169f98 Add logTimedDestroy and report in ~Ledger and ~SHAMap 2013-08-22 18:10:02 -07:00
Vinnie Falco
663d5c9cee Log high SHAMap destroy times in ~Ledger 2013-08-22 15:36:40 -07:00
Vinnie Falco
8b86b81fc9 Add ~InboundLedger 2013-08-22 15:25:34 -07:00
Vinnie Falco
382b358bdf Move shared_ptr releases to outside the lock in InboundLedgers::sweep 2013-08-22 15:25:33 -07:00
David Schwartz
a2f90da10c Fix pathfinding aggressiveness logic. 2013-08-21 10:31:34 -07:00
JoelKatz
45b7a6cdef Don't touch a possibly-failed inbound ledger. 2013-08-19 01:59:55 -07:00
JoelKatz
9d3e3058bc Don't call both a function and a parameter "progress". 2013-08-18 23:27:54 -07:00
JoelKatz
c221cfde7a Some filterNodes cleanups. 2013-08-18 21:39:46 -07:00
JoelKatz
4e19c7cda1 Some extra debug. 2013-08-18 20:42:59 -07:00
JoelKatz
55af90fb68 Slow down fetching to avoid Sorceror's Apprentice syndrome. 2013-08-18 20:42:09 -07:00
JoelKatz
6e0d6bdba4 Make sure checkAccept is called, unless we know we don't need to, when findCreate completed immediately 2013-08-18 19:29:55 -07:00
JoelKatz
86147a6c6b Fix one case where checkAccept didn't get called. 2013-08-18 19:10:07 -07:00
JoelKatz
fe1b8d253c Don't tolerate failed ledger acquires in the publication stream. 2013-08-16 23:22:33 -07:00
JoelKatz
eb3bf3b8cd Make sure we keep publishing ledgers while filling a gap from the database. 2013-08-15 21:54:17 -07:00
JoelKatz
e1434dcda6 Sorry I broke the build. 2013-08-14 18:10:22 -07:00
JoelKatz
3e908c92b1 Fix a bug that hides order book liquidity and causes crashes. 2013-08-14 15:45:50 -07:00
JoelKatz
be1ca396c5 Handle sequence numbers better in peer messages. 2013-08-14 15:45:49 -07:00
JoelKatz
5a81b0a4a8 Fetch a bit better. 2013-08-14 15:45:49 -07:00
JoelKatz
c918ab25b2 Can't call 'done' from the constructor of an InboundLedger 2013-08-14 15:45:49 -07:00
JoelKatz
ba86553c1d Don't hold the LedgerMaster lock while fetching ledgers to publish. 2013-08-14 15:45:49 -07:00
JoelKatz
fcd7522922 Put ledgerAdvance jobs in their own class. 2013-08-14 15:45:49 -07:00
JoelKatz
e94f895754 Rewrite InboundLedgers to mLedgers is unordered. 2013-08-14 15:45:49 -07:00
JoelKatz
28b600cc21 Cleanups and extra asserts. 2013-08-14 15:45:49 -07:00
JoelKatz
02c25b049d Extra debug 2013-08-14 15:45:49 -07:00
JoelKatz
20f898c37e Separately track the next sequence to publish in findNewLedgersToPublish 2013-08-14 15:45:49 -07:00
JoelKatz
4d3d36ee47 Make sure we call checkAccept when we finish acquiring a ledger, in case it's fully-validated. 2013-08-14 15:45:49 -07:00
JoelKatz
ae8969529d Avoid deadlock. 2013-08-14 15:45:49 -07:00
JoelKatz
2a872563d3 Simplify fetch pack logic 2013-08-14 15:45:48 -07:00
JoelKatz
aef92835f7 Cleanups. 2013-08-14 15:45:48 -07:00
JoelKatz
4d017ea5eb Cleanups. 2013-08-14 15:45:48 -07:00
JoelKatz
1ddf8f3969 Cleanups. 2013-08-14 15:45:48 -07:00
JoelKatz
f4c6fa7873 Don't remove shot down ledgers from the range we propagate to peers. 2013-08-14 15:45:48 -07:00
JoelKatz
69477c96ca cleanups. 2013-08-14 15:45:48 -07:00
JoelKatz
699b46088a Cleanups. 2013-08-14 15:45:48 -07:00
Vinnie Falco
4a949a9cbd Refactor JobQueue to fix a bad state and clean up job limits 2013-08-14 15:45:48 -07:00
JoelKatz
72315bffe3 Cleanups. 2013-08-14 15:45:48 -07:00
JoelKatz
42bddbfcd4 More bugfixes. 2013-08-14 15:45:48 -07:00
JoelKatz
e4f9d972fa Fix a broken log message. 2013-08-14 15:45:48 -07:00
JoelKatz
fbfb150cff Some cleanups. 2013-08-14 15:45:48 -07:00
JoelKatz
8b06891663 A few more fixes. 2013-08-14 15:45:48 -07:00