Commit Graph

40 Commits

Author SHA1 Message Date
JoelKatz
bede5379a5 Add peers to a ledger at the right time. 2012-10-28 19:14:11 -07:00
JoelKatz
ef40099649 Major updates to the ledger tracking system. 2012-10-25 01:50:07 -07:00
JoelKatz
1cc42517da Improve debugability. 2012-10-24 12:57:00 -07:00
JoelKatz
853136b2a5 Trigger the history acquire code under the correct conditions.
Advance the "last full ledger" tracking correctly.
2012-10-24 11:17:00 -07:00
JoelKatz
0ac4185ff9 Update to support accepting ledgers acquired during the history fill. 2012-10-24 07:26:05 -07:00
JoelKatz
5684a8e233 LedgerAcquireSet code to acquire a set of ledgers to restore a chain. 2012-10-23 17:03:38 -07:00
JoelKatz
39303e3998 Some extra LedgerAcquire helper functions. 2012-10-22 14:01:17 -07:00
Arthur Britto
b2481f3c49 Rename the protocol from newcoin to ripple. 2012-10-12 15:53:59 -07:00
Arthur Britto
2af15db40a Rename everything from newcoin to ripple except the protocol buffers. 2012-10-12 15:48:33 -07:00
JoelKatz
e18f8c47f5 Use the local hashed object store to jump start fetching a ledger. 2012-10-11 07:01:40 -07:00
JoelKatz
0efe8b4892 Cleanups. 2012-09-13 20:41:25 -07:00
JoelKatz
02bd898e51 Some const-correctness.
const SLE::pointer & -> SLE::ref
2012-08-31 18:26:45 -07:00
JoelKatz
420ee91877 Remove more wasteful allocate/increment/decrement/free cycles. 2012-08-19 19:23:10 -07:00
JoelKatz
abf41dd4de Fix a large number of cases where we copy construct a shared_ptr just to destroy it. 2012-08-15 04:01:22 -07:00
JoelKatz
b4e63c3025 Fix a few cases where we reset the acquire timer when we should not. 2012-08-07 04:11:20 -07:00
JoelKatz
e373a58f5c Avoid duplicate completion of acquired ledgers. 2012-08-02 11:50:59 -07:00
JoelKatz
befd7aa108 Fix an infinite timeout scenario with ledger acquisition. 2012-08-02 11:34:11 -07:00
JoelKatz
338fa90387 Correctly sequence to acquiring a new LCL if it changes. Don't keep acquiring the old one. 2012-07-12 23:07:55 -07:00
JoelKatz
c7eb0269c2 For now, detect clocks out of sync and disallow connection.
Improve speed of ledger synchronization by compressing all three base queries into one.
2012-06-30 22:17:53 -07:00
JoelKatz
c13c561295 Use the new accelerators to speed up ledger and transaction set synchronization 2012-06-24 05:33:53 -07:00
JoelKatz
e7aef33344 Clean up timeout tracking and log acquire timeouts. 2012-06-23 16:55:26 -07:00
JoelKatz
31ad073f8a Track timeouts in ledgers and transaction sets we're acquiring. 2012-06-22 17:57:02 -07:00
JoelKatz
7467407dfe Cleanups. 2012-06-19 05:30:07 -07:00
JoelKatz
2c5f91a384 Add comment. 2012-06-08 04:34:23 -07:00
JoelKatz
0648779ccb Pass node IDs to the sync filter. 2012-06-04 07:23:56 -07:00
JoelKatz
0e7307200e First set of efficiency improvements. 2012-06-04 07:18:57 -07:00
JoelKatz
ae9db460ab A bit of a painful PackedMessage change, but this simplifies a lot of code.
It's worth it to take the pain now.
2012-05-28 13:07:19 -07:00
JoelKatz
b7d836a5da Revert "More LedgerAcquire work. Broadcast IHAVEs for tx sets."
This reverts commit 240386931c.

Erroneous commit.
2012-05-28 13:03:21 -07:00
JoelKatz
240386931c More LedgerAcquire work. Broadcast IHAVEs for tx sets. 2012-05-28 13:02:43 -07:00
JoelKatz
fbce5dafc5 Move some PeerSet structures. 2012-05-22 02:34:20 -07:00
JoelKatz
de3d88f01b Fix reliance on other includes. 2012-05-19 05:10:39 -07:00
JoelKatz
229969c566 Add virtual destructor. Add TransactionAcquire code. 2012-05-14 13:34:40 -07:00
JoelKatz
87b998c9ee Use polymorphic downcast. 2012-05-12 22:40:34 -07:00
JoelKatz
b74e64bd76 Abstract out the peer set and timing code fromt he ledger acquire logic.
There's probably a better way to handle the timer lambda, but this works.
2012-05-12 22:14:16 -07:00
JoelKatz
02ce4acb11 Fix ledger acquire timing. 2012-05-10 17:44:06 -07:00
JoelKatz
07827d4765 Fix ledger acquire timer logic. 2012-05-10 17:11:41 -07:00
JoelKatz
4a9be427a8 Allow external trigger. 2012-05-10 16:06:20 -07:00
Arthur Britto
0492ea5877 Cosmetic SQL clean up. 2012-05-07 18:39:19 -07:00
JoelKatz
d29733aa11 Add ledger remove from acquire set. Cleanups. 2012-05-04 03:33:37 -07:00
Arthur Britto
c513e45754 Move sources to src and build objs in obj. 2012-03-06 22:43:06 -08:00