Commit Graph

83 Commits

Author SHA1 Message Date
JoelKatz
d1169ee86d Make sure all load sources are named. 2013-03-04 16:22:09 -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
23569c32aa Don't duplicate transactions in the DB. 2013-03-03 05:03:48 -08:00
JoelKatz
51a85504a8 Startup and shutdown improvements. Performance improvements. 2013-03-03 02:09:19 -08:00
JoelKatz
51ebd75a4a Reset prepared statements after use, not before. 2013-03-01 10:33:38 -08:00
JoelKatz
1167158f64 Reduce I/O needed on startup. 2013-03-01 10:28:50 -08:00
JoelKatz
312e476898 Fix a bug where a cached copy of a txn might not have a reference to the ledger
it was applied in, causing commands like 'tx' not to return metadata.
2013-02-27 18:23:24 -08:00
JoelKatz
923446fb78 Fix 'tx' output format. Begin supporting a binary output format.
This adds support for binary in 'tx' and 'account_tx' commands.
https://ripple.com/wiki/FormatChange
2013-02-25 12:51:06 -08:00
JoelKatz
c83427d215 Round close times in a smarter way. 2013-02-24 15:13:30 -08:00
JoelKatz
716631bb5c Fix a very rare race condition. 2013-02-21 15:11:51 -08:00
JoelKatz
7300e803ae Accelerated 'ledger' command. 2013-02-21 10:09:40 -08:00
JoelKatz
2e12ffac57 Allow a lot more commands to take advantage of the immutable SLE acceleration.
Allow faster operations on the open ledger by using many smaller freezes rather than one big one.
2013-02-21 09:57:42 -08:00
JoelKatz
53b622db75 Make getSLEi more useful. 2013-02-21 09:47:34 -08:00
JoelKatz
5451e20eaa Make getAccountState use getSLEi.
Make getSLEi work against a mutex ledger without holding a master lock.
2013-02-21 06:47:38 -08:00
JoelKatz
25c52b1a4d Use getSLEi to get an immutable SLE. This lets us cache them. 2013-02-20 12:00:38 -08:00
JoelKatz
7bbf01e114 Function to get just txn metadata. 2013-02-15 05:38:01 -08:00
JoelKatz
57a9f6afdc Logging reductions. 2013-02-13 00:09:12 -08:00
JoelKatz
b39a977282 Cleanups. 2013-02-10 01:09:37 -08:00
JoelKatz
e5220a721c Fix the fix. 2013-02-09 20:36:55 -08:00
JoelKatz
4843a90910 Fix a deadlock. 2013-02-09 20:33:30 -08:00
JoelKatz
e674bcea36 A collection of small bugfixes. 2013-02-08 16:22:27 -08:00
JoelKatz
aaad2f6edb Reduce memory growth during ledger fetching. 2013-02-07 17:33:29 -08:00
JoelKatz
8b2e866a21 Improve performance by using sqlite3 prepared statements. 2013-02-07 17:07:46 -08:00
JoelKatz
9781c10736 Fix some cases where ledger flags are incorrectly set. 2013-02-01 16:11:32 -08:00
JoelKatz
7d8df3dddf Save validations in a form they can actually be used. 2013-01-31 15:40:41 -08:00
JoelKatz
b662167683 Small cleanups. 2013-01-30 20:56:11 -08:00
JoelKatz
3b338b8825 If we get a ledger from the SQL database, it must be closed. 2013-01-30 10:15:42 -08:00
Arthur Britto
a05a2c7181 Make RPC ledger_header work. 2013-01-30 01:28:06 -08:00
Arthur Britto
441a748ffb UT: Add a unit test for getQuality. 2013-01-29 11:04:45 -08:00
JoelKatz
d3ac663c9a Use slightly cheaper SetHex 2013-01-28 01:14:06 -08:00
JoelKatz
8ec2d1d54d Cleanup. 2013-01-27 23:42:59 -08:00
JoelKatz
663c4bd8e5 Use the Sqlite3 prepared statement API for an expensive operation on startup. 2013-01-27 23:41:30 -08:00
JoelKatz
b6523ada1c Whoops. Last commit made this backwards. 2013-01-21 21:58:54 -08:00
JoelKatz
6b8faad639 Don't round "agree to disagree" close times. 2013-01-21 18:26:31 -08:00
JoelKatz
ea9c0382e9 Typo. 2013-01-21 17:49:01 -08:00
JoelKatz
8feb9d6c29 Handle an edge case. 2013-01-17 21:08:23 -08:00
JoelKatz
8da284705f Fix 'getAffectedAccount' -- logic was totally wrong.
You can't get this from the transaction because which accounts a transaction
affects depends on things like which offers it winds up taking. And you
can't build it with the metadata because you don't always build the metadata
locally -- consider fetching a ledger after a network split. The only
rational way to do this is to build the affected account vector from the
metadata.
2013-01-17 10:46:12 -08:00
JoelKatz
9fd2b543e8 Fix the reason we couldn't recover ledgers. Ledger base data must be stored in CAS. 2013-01-12 23:54:23 -08:00
JoelKatz
3cbaeebf2a Remove old debug. 2013-01-11 16:53:08 -08:00
JoelKatz
d14d8cbf76 Helper functions. 2013-01-11 14:21:31 -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
d8b79aa0ee Fix bad log type. 2013-01-09 10:42:23 -08:00
JoelKatz
fcabad79ae Fix the breakage. 2013-01-09 09:29:15 -08:00
Arthur Britto
8e801158b3 Improve error reporting for account not found. 2013-01-08 18:04:00 -08:00
JoelKatz
4a4046f4b6 Some temporary logging to help find/fix a bug. 2013-01-08 17:05:10 -08:00
JoelKatz
ee5950b192 Better debug of missing hash issue. 2013-01-08 16:28:56 -08:00
JoelKatz
2de1b9eef8 Don't issue bogus 'missing skiplist' messages. 2013-01-08 16:23:58 -08:00
JoelKatz
9c9530b50f Add some comments. 2013-01-08 14:58:23 -08:00
JoelKatz
fbac342e2e One more. 2013-01-08 14:12:45 -08:00
JoelKatz
8e5ce2dd4c More debug. 2013-01-08 14:10:49 -08:00