JoelKatz
8a368204c1
Last part of the fetch pack code.
2013-04-22 06:56:11 -07:00
JoelKatz
0c7066944e
Fetch pack scheme. Phase two.
2013-04-21 20:37:46 -07:00
JoelKatz
5d4e7db788
Fix the fix.
2013-04-03 14:20:20 -07:00
JoelKatz
88dba87fa9
Fix the deadlock. Can't hold the LedgerMaster lock when calling a pub* function.
2013-04-03 14:17:06 -07:00
JoelKatz
00e2ac8298
Fix a race applying connections to the open ledger.
2013-04-02 13:41:42 -07:00
JoelKatz
5cc9314d03
Add a framework for detecting databases that need updating.
...
Put transaction from account_tx command in transaction application sequence.
CAUTION: This modifies your databases and will cause a delay on your next startup.
2013-04-01 19:03:28 -07:00
JoelKatz
e40b7b9f0b
Stop the acquire engine in cases where it shouldn't run.
2013-03-29 10:16:25 -07:00
JoelKatz
3ec1865ce5
Range of validated ledgers.
2013-03-27 14:46:31 -07:00
JoelKatz
84d6210f4f
Don't spin up acquire engine if we still need the network ledger.
2013-03-22 10:28:40 -07:00
JoelKatz
9edfd51430
Reduce some log severities.
2013-03-17 21:24:56 -07:00
JoelKatz
1994ed96dd
Try to catch the acquire ledger bug earlier.
2013-03-17 16:51:44 -07:00
JoelKatz
b9456c8fd7
Except when interacting with boost, use std::function and std::bind
...
when C++11 is available. See: http://stackoverflow.com/questions/14617835
2013-03-16 03:27:43 -07:00
JoelKatz
e9a02882f1
Don't let ledger fetching go too fast.
2013-03-12 15:17:26 -07:00
JoelKatz
566b36715d
Simplify the ledger acquire logic. This fixes a few bugs related to it including
...
the issue if you remove the ledger DB.
2013-03-11 17:57:12 -07:00
JoelKatz
c26726eff3
Bugfix for ledger acquired but not written to database with txns.
2013-03-11 09:19:54 -07:00
JoelKatz
6f811f1e96
Back out some Ledger::ref uses that scare me.
2013-03-10 16:03:23 -07:00
JoelKatz
ff8dbcf5ff
Remove pending save logic. Replace with job count logic.
...
Prioritize newer ledgers over clients.
2013-03-06 20:57:11 -08:00
JoelKatz
1c9b4840d6
Bugfix.
2013-03-05 23:37:41 -08:00
JoelKatz
50b97386cd
Under a certain rare combination of circumstances a ledger may not get added
...
to our chain of fully-validated ledgers. Essentially, if we have the ledger
for some other reason, we won't "acquire" it, so behavior triggered only by
acquiring the ledger will not happen. This issue would be persistent.
2013-03-05 10:17:17 -08:00
JoelKatz
7f6305a6ab
Fix a race condition.
2013-03-05 06:46:30 -08:00
JoelKatz
81c359594e
Tweaks.
2013-03-04 21:51:04 -08:00
JoelKatz
51db2d2cd7
Reprocess accepted ledgers once. Track metadata, transaction data, and affected accounts.
...
Process to SQL database and publish from this structure.
Include number of transactions in ledger publish info.
Publish transactions in applied order.
2013-03-04 13:59:53 -08:00
JoelKatz
f0c029ef0d
Rework the way load is accounted to be more accurate and more specific.
2013-03-03 16:24:47 -08:00
JoelKatz
51a85504a8
Startup and shutdown improvements. Performance improvements.
2013-03-03 02:09:19 -08:00
JoelKatz
167d13cf40
I think this is the underlying issue. In some cases where the tx return value wasn't
...
full success, we applied to our open ledger but didn't relay. This caused disputes
resolved only by dispute relaying.
2013-02-24 16:48:54 -08:00
JoelKatz
1e2aba6b38
Ledger acquire timing changes. Better logging of acquire stalls.
2013-02-21 02:47:19 -08:00
JoelKatz
52c378411d
If we start seeing acquire timeouts, don't start new acquires.
...
The link could be overloaded.
2013-02-20 13:30:57 -08:00
JoelKatz
4d6bf6fd43
Logging reductions.
2013-02-19 15:41:03 -08:00
JoelKatz
a941a575ec
Make sure we always have a "last validated ledger".
2013-02-17 16:49:37 -08:00
JoelKatz
a26a302476
Accept old ledgers acquired over the network at a lower priority.
2013-02-10 16:40:52 -08:00
JoelKatz
8fef4d9b59
Remove some extra logging.
2013-02-10 13:54:10 -08:00
JoelKatz
b6f9811001
Fix the bug that crashed ec3.
2013-02-09 20:07:36 -08:00
JoelKatz
4abdb34c20
Trivial cleanups.
2013-02-09 16:17:12 -08:00
JoelKatz
00fd3d5a49
Demote some logging.
2013-02-08 16:33:35 -08:00
JoelKatz
9781c10736
Fix some cases where ledger flags are incorrectly set.
2013-02-01 16:11:32 -08:00
JoelKatz
9a7ccf777e
Fix a bug that can stall the acquire engine.
2013-01-28 01:13:39 -08:00
JoelKatz
e8ac00e1a3
Allow tunable node sizes to adjust cache sizes, sweep timing, fetch
...
timing, and so on. Node size defaults to "tiny", which converves
memory and bandwidth.
2013-01-27 13:55:59 -08:00
Arthur Britto
51bbe5ffc8
Add path test for issue #23 .
2013-01-19 13:19:17 -08:00
JoelKatz
fb3e2e8af4
Fix a crash bug Arthur reported.
2013-01-15 17:09:57 -08:00
JoelKatz
9dea6df56b
Tuning.
2013-01-14 18:16:47 -08:00
JoelKatz
55d1af746c
Share the 'shouldAcquire' function. recvGetLedger will needed it.
2013-01-12 08:42:24 -08:00
JoelKatz
1b8f20eaa7
Some tuning.
2013-01-12 04:44:41 -08:00
JoelKatz
35721a73e2
Don't let the acquire engine stall.
2013-01-11 17:18:28 -08:00
JoelKatz
955c5c3a9c
Bug fixes and performance improvements.
2013-01-11 16:40:37 -08:00
JoelKatz
e2bac0e7cd
Optimize the startup code so we don't have long periods of slowness on startup.
2013-01-10 08:41:32 -08:00
JoelKatz
3bdba555eb
Rate limit.
2013-01-10 07:04:35 -08:00
JoelKatz
cf284897bb
Fix a case where we might try too quickly to re-acquire a ledger.
2013-01-09 15:55:41 -08:00
JoelKatz
38af346881
Fix some calls that bypass the cache.
2013-01-09 10:49:08 -08:00
JoelKatz
d2d84d2af7
More conservative check.
2013-01-09 09:53:39 -08:00
JoelKatz
9a2e2d78c6
Extra debug
2013-01-09 09:21:48 -08:00