Commit Graph

  • 2c38bfbbad Speed up ledger writing. JoelKatz 2013-01-11 16:40:04 -08:00
  • 9d0264a603 Fix a deadlock. JoelKatz 2013-01-11 15:50:18 -08:00
  • 9880b23e7f Typo. JoelKatz 2013-01-11 14:22:50 -08:00
  • d14d8cbf76 Helper functions. JoelKatz 2013-01-11 14:21:31 -08:00
  • 7d7d2bc46b Fix a bug Arthur reported. Some critical Peer structures are not protected against races caused by concurrent reading from and writing to the SSL connection and access to Peer variables like mDetaching, mSendingPacket, and so on. JoelKatz 2013-01-11 11:53:37 -08:00
  • ef9a0f3ed3 Can't call 'size' without the lock. JoelKatz 2013-01-11 11:28:24 -08:00
  • 88b27a19ed D'oh! This is what's burning the CPU. JoelKatz 2013-01-10 16:31:33 -08:00
  • 793843780c Filter out redundant node queries. JoelKatz 2013-01-10 16:27:22 -08:00
  • db1322f741 The priority scheme was backwards! JoelKatz 2013-01-10 15:29:52 -08:00
  • 83d1d3a122 Some who shall remain nameless (whose first name starts with 'Art' and ends with 'hur') broke the unit tests. JoelKatz 2013-01-10 15:25:21 -08:00
  • 3a96e7c1b6 A surprisingly simple fix to the InfoSub/websocketpp deadlock. JoelKatz 2013-01-10 09:55:48 -08:00
  • c29fdacc41 Remove an annoying log message. JoelKatz 2013-01-10 09:11:34 -08:00
  • cfcb1a2c11 Get rid of the redundant SSL contexts. JoelKatz 2013-01-10 09:10:40 -08:00
  • ce3ce7820b Raise the re-acquire interval. JoelKatz 2013-01-10 08:46:02 -08:00
  • e2bac0e7cd Optimize the startup code so we don't have long periods of slowness on startup. JoelKatz 2013-01-10 08:41:32 -08:00
  • d17a08c357 Merge branch 'master' of github.com:jedmccaleb/NewCoin JoelKatz 2013-01-10 07:04:52 -08:00
  • 3bdba555eb Rate limit. JoelKatz 2013-01-10 07:04:35 -08:00
  • 14b63f7407 Tests: Print an error when timing out due to server crash. Stefan Thomas 2013-01-10 15:57:09 +01:00
  • 82d439ea8d Remove a FIXME, since it's **FIXED**. JoelKatz 2013-01-10 00:43:25 -08:00
  • 20712536b2 Use 'INSERT OR IGNORE' JoelKatz 2013-01-10 00:33:32 -08:00
  • d0fbcd64ba Fix typos. JoelKatz 2013-01-10 00:33:18 -08:00
  • c2922e5a16 Remove an unused variable. JoelKatz 2013-01-10 00:19:47 -08:00
  • c3498cbfcb Use WOL mode to avoid performance problems with large writes causing huge latency for small reads. See: http://www.sqlite.org/wal.html JoelKatz 2013-01-10 00:16:50 -08:00
  • 376f214a70 Make it easier to insert code between when the server is setup and when it's started. JoelKatz 2013-01-09 23:55:39 -08:00
  • 1e2b11fe80 Slight improvement. JoelKatz 2013-01-09 23:54:23 -08:00
  • 97e5223642 Improve sqlEscape performance. JoelKatz 2013-01-09 23:52:01 -08:00
  • 34411001e6 Mark a major FIXME. JoelKatz 2013-01-09 21:17:41 -08:00
  • dfbd99940a Merge branch 'master' of github.com:jedmccaleb/NewCoin JoelKatz 2013-01-09 20:49:17 -08:00
  • 99a8925fe5 Merge function to add all nodes from another database. JoelKatz 2013-01-09 20:48:56 -08:00
  • 90b1cc69c7 Merge branch 'master' of github.com:jedmccaleb/NewCoin Arthur Britto 2013-01-09 16:22:10 -08:00
  • 9b6ee7fc88 JS Add support for SourceTag and Destination tag. Arthur Britto 2013-01-09 16:21:57 -08:00
  • cf284897bb Fix a case where we might try too quickly to re-acquire a ledger. JoelKatz 2013-01-09 15:55:41 -08:00
  • 7ed37066cf Add some features to the KeyCache code so we can use it for ledger acquire failure tracking too. JoelKatz 2013-01-09 15:55:18 -08:00
  • d9ab92e88e Cleanup. JoelKatz 2013-01-09 11:06:07 -08:00
  • 38af346881 Fix some calls that bypass the cache. JoelKatz 2013-01-09 10:49:08 -08:00
  • d8b79aa0ee Fix bad log type. JoelKatz 2013-01-09 10:42:23 -08:00
  • 6cf1b3dbc1 Tiny cleanup. JoelKatz 2013-01-09 10:31:14 -08:00
  • 07634b5168 This is probably what was causing all the trouble. JoelKatz 2013-01-09 10:29:34 -08:00
  • 714b3fb0d0 Small fixes. JoelKatz 2013-01-09 10:14:18 -08:00
  • d2d84d2af7 More conservative check. JoelKatz 2013-01-09 09:53:39 -08:00
  • 1acdad8601 Make it compile. JoelKatz 2013-01-09 09:38:41 -08:00
  • cb6cf0dd8b Merge branch 'master' of github.com:jedmccaleb/NewCoin JoelKatz 2013-01-09 09:29:31 -08:00
  • fcabad79ae Fix the breakage. JoelKatz 2013-01-09 09:29:15 -08:00
  • e502badd2b Add test case for #7. Stefan Thomas 2013-01-09 18:29:12 +01:00
  • eadaaaa0fd Clean up debug. JoelKatz 2013-01-09 09:22:25 -08:00
  • 4f1619eb5e Extra debug. JoelKatz 2013-01-09 09:21:58 -08:00
  • 9a2e2d78c6 Extra debug JoelKatz 2013-01-09 09:21:48 -08:00
  • e714a16b95 Optimizations. JoelKatz 2013-01-09 07:14:07 -08:00
  • b5e78bda34 Fix GetObjByHash replies. JoelKatz 2013-01-09 03:28:20 -08:00
  • 0778a3ebae Don't blow up if asked to acquire a hash that's not a ledger. JoelKatz 2013-01-09 03:16:59 -08:00
  • c74a1b89e3 By careful how many GetObjectByHash requests we send. JoelKatz 2013-01-09 03:08:00 -08:00
  • e0a49f875a Fix more RPC error reporting. Arthur Britto 2013-01-08 18:59:59 -08:00
  • 8e801158b3 Improve error reporting for account not found. Arthur Britto 2013-01-08 18:04:00 -08:00
  • ef775727d4 Reduce some loging. JoelKatz 2013-01-08 17:21:31 -08:00
  • 4a4046f4b6 Some temporary logging to help find/fix a bug. JoelKatz 2013-01-08 17:05:10 -08:00
  • 26c976f4ac Fix a race condition. JoelKatz 2013-01-08 16:57:18 -08:00
  • ee5950b192 Better debug of missing hash issue. JoelKatz 2013-01-08 16:28:56 -08:00
  • 2de1b9eef8 Don't issue bogus 'missing skiplist' messages. JoelKatz 2013-01-08 16:23:58 -08:00
  • c43f6a54dc Optimize uint's operator== and operator!= to not do byte-by-byte compares. JoelKatz 2013-01-08 16:16:35 -08:00
  • aeb7a2af5d Optimize for the more common case. JoelKatz 2013-01-08 16:16:20 -08:00
  • 3712f0f2cb Remove a lot of unneeded hashing. JoelKatz 2013-01-08 15:33:13 -08:00
  • 9c9530b50f Add some comments. JoelKatz 2013-01-08 14:58:23 -08:00
  • bbd32faf05 Demote some older logs. JoelKatz 2013-01-08 14:50:45 -08:00
  • 607e2039e2 Add negative caching for HashedObject class. This massively reduces contention for the database lock under high network ledger fetch load. JoelKatz 2013-01-08 14:50:03 -08:00
  • fbac342e2e One more. JoelKatz 2013-01-08 14:12:45 -08:00
  • 8e5ce2dd4c More debug. JoelKatz 2013-01-08 14:10:49 -08:00
  • 120e758f01 More reasonable. JoelKatz 2013-01-08 02:03:29 -08:00
  • df1f3a66d5 Log message less imortant. JoelKatz 2013-01-08 02:02:51 -08:00
  • c0a64f672c Demote a non-serious log that sounds like an error. JoelKatz 2013-01-08 02:00:54 -08:00
  • 59c91d0413 Typo. JoelKatz 2013-01-08 01:54:29 -08:00
  • 0229a89445 Get the logic right. JoelKatz 2013-01-08 01:53:47 -08:00
  • 96eac78174 To be a recent failure, a failure must be recent. JoelKatz 2013-01-08 01:47:09 -08:00
  • 5eeef9d3fd Accelerated aging for special occasions. JoelKatz 2013-01-08 01:33:40 -08:00
  • 79c3f777aa Memory fixes. JoelKatz 2013-01-08 01:14:55 -08:00
  • 2626368b26 Remove chatty log. JoelKatz 2013-01-08 01:00:48 -08:00
  • 2a657a33c9 Make sure we leave need network ledger mode. JoelKatz 2013-01-08 00:41:07 -08:00
  • 69ac139485 Reduce log spew. JoelKatz 2013-01-08 00:36:13 -08:00
  • e34dafa839 Log some additional info. JoelKatz 2013-01-08 00:32:54 -08:00
  • fc1dc50afc Ledger load fixes. Quick and dirty check for filesystme space. JoelKatz 2013-01-07 23:57:06 -08:00
  • cc2588aba2 Make it possible to start from a specific chosen ledger. JoelKatz 2013-01-07 23:47:39 -08:00
  • 7a2f098ac4 Reduce some chatty logging. JoelKatz 2013-01-07 23:47:21 -08:00
  • 69f42e6f02 Fix a bug that causes excessive GetObjByHash queries. JoelKatz 2013-01-07 22:47:16 -08:00
  • c2a4cc8321 Get rid of transaction acquire entries ASAP. JoelKatz 2013-01-07 14:44:18 -08:00
  • ecc04b21f3 Be smarter about when we clean up ledger acquires. JoelKatz 2013-01-07 14:42:46 -08:00
  • ba79026185 Handle pongs. Ready timer for ping timing. JoelKatz 2013-01-07 14:34:11 -08:00
  • c4a3f57d9c Respond to server pings with pongs. (Pings are currently not sent.) JoelKatz 2013-01-07 10:22:26 -08:00
  • ef2f653473 Set the accept flag for acquires triggered by the publish logic. JoelKatz 2013-01-07 09:01:31 -08:00
  • 2b479a66c1 Don't immediately retry a failed acquire. JoelKatz 2013-01-07 08:57:41 -08:00
  • 6624e31d5a Clean up old acquires. JoelKatz 2013-01-07 08:57:20 -08:00
  • e9fad1a431 Make the target size more useful. Add visitor functions. JoelKatz 2013-01-07 08:47:53 -08:00
  • 265218a936 Merge branch 'master' of github.com:jedmccaleb/NewCoin JoelKatz 2013-01-07 01:33:47 -08:00
  • f493ea6478 Be more aggressive about avoiding publishing ledger holes. Make the logic simpler and more sensible. JoelKatz 2013-01-07 01:33:14 -08:00
  • 22a8f576e2 UT: Fix Issue #5 test to use 75/USD not 25/USD. Arthur Britto 2013-01-06 21:21:11 -08:00
  • 69a0d5ac16 UT: Remove focus from latest test. Arthur Britto 2013-01-06 18:20:58 -08:00
  • 926bc743d2 Merge branch 'master' of github.com:jedmccaleb/NewCoin Arthur Britto 2013-01-06 17:50:50 -08:00
  • ec85d58bdf UT: Add UT for issue #5. Arthur Britto 2013-01-06 17:50:39 -08:00
  • aad57519ae Improve pathfinding, don't explore obviously dry paths. Arthur Britto 2013-01-06 17:50:09 -08:00
  • 63fd3818fb Rather than counting PeerSet's, count LedgerAcquire's and TransactionAcquire's. JoelKatz 2013-01-06 17:32:25 -08:00
  • cf77fd88f9 Mark a FIXME. JoelKatz 2013-01-06 17:32:10 -08:00
  • 781fef32e3 UT: Enable some path tests. Arthur Britto 2013-01-06 15:57:06 -08:00