Commit Graph

4083 Commits

Author SHA1 Message Date
JoelKatz
c88c7c50a8 Oops. Fix the job run order. 2013-01-11 18:12:42 -08:00
JoelKatz
35721a73e2 Don't let the acquire engine stall. 2013-01-11 17:18:28 -08:00
JoelKatz
f2d811851a Trigger an assert if we get errors that shouldn't ever happen. 2013-01-11 17:16:34 -08:00
JoelKatz
14f6250ce5 Don't use hash-based fetching too quickly. 2013-01-11 16:54:34 -08:00
JoelKatz
e86aa7b7ab Better debug messages. 2013-01-11 16:54:25 -08:00
JoelKatz
3cbaeebf2a Remove old debug. 2013-01-11 16:53:08 -08:00
JoelKatz
955c5c3a9c Bug fixes and performance improvements. 2013-01-11 16:40:37 -08:00
JoelKatz
2c38bfbbad Speed up ledger writing. 2013-01-11 16:40:04 -08:00
JoelKatz
9d0264a603 Fix a deadlock. 2013-01-11 15:50:18 -08:00
JoelKatz
9880b23e7f Typo. 2013-01-11 14:22:50 -08:00
JoelKatz
d14d8cbf76 Helper functions. 2013-01-11 14:21:31 -08:00
JoelKatz
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.
2013-01-11 11:53:37 -08:00
JoelKatz
ef9a0f3ed3 Can't call 'size' without the lock. 2013-01-11 11:28:24 -08:00
JoelKatz
88b27a19ed D'oh! This is what's burning the CPU. 2013-01-10 16:31:33 -08:00
JoelKatz
793843780c Filter out redundant node queries. 2013-01-10 16:27:22 -08:00
JoelKatz
db1322f741 The priority scheme was backwards! 2013-01-10 15:29:52 -08:00
JoelKatz
83d1d3a122 Some who shall remain nameless (whose first name starts with 'Art' and ends with 'hur') broke the unit tests. 2013-01-10 15:25:21 -08:00
JoelKatz
3a96e7c1b6 A surprisingly simple fix to the InfoSub/websocketpp deadlock. 2013-01-10 09:55:48 -08:00
JoelKatz
c29fdacc41 Remove an annoying log message. 2013-01-10 09:11:34 -08:00
JoelKatz
cfcb1a2c11 Get rid of the redundant SSL contexts. 2013-01-10 09:10:40 -08:00
JoelKatz
ce3ce7820b Raise the re-acquire interval. 2013-01-10 08:46:02 -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
d17a08c357 Merge branch 'master' of github.com:jedmccaleb/NewCoin 2013-01-10 07:04:52 -08:00
JoelKatz
3bdba555eb Rate limit. 2013-01-10 07:04:35 -08:00
Stefan Thomas
14b63f7407 Tests: Print an error when timing out due to server crash. 2013-01-10 15:57:20 +01:00
JoelKatz
82d439ea8d Remove a FIXME, since it's **FIXED**. 2013-01-10 00:43:25 -08:00
JoelKatz
20712536b2 Use 'INSERT OR IGNORE' 2013-01-10 00:33:32 -08:00
JoelKatz
d0fbcd64ba Fix typos. 2013-01-10 00:33:18 -08:00
JoelKatz
c2922e5a16 Remove an unused variable. 2013-01-10 00:19:47 -08:00
JoelKatz
c3498cbfcb Use WOL mode to avoid performance problems with large writes causing huge latency for small reads.
See: http://www.sqlite.org/wal.html
2013-01-10 00:16:50 -08:00
JoelKatz
376f214a70 Make it easier to insert code between when the server is setup and when it's started. 2013-01-09 23:55:39 -08:00
JoelKatz
1e2b11fe80 Slight improvement. 2013-01-09 23:54:23 -08:00
JoelKatz
97e5223642 Improve sqlEscape performance. 2013-01-09 23:52:01 -08:00
JoelKatz
34411001e6 Mark a major FIXME. 2013-01-09 21:17:41 -08:00
JoelKatz
dfbd99940a Merge branch 'master' of github.com:jedmccaleb/NewCoin 2013-01-09 20:49:17 -08:00
JoelKatz
99a8925fe5 Merge function to add all nodes from another database. 2013-01-09 20:48:56 -08:00
Arthur Britto
90b1cc69c7 Merge branch 'master' of github.com:jedmccaleb/NewCoin 2013-01-09 16:22:10 -08:00
Arthur Britto
9b6ee7fc88 JS Add support for SourceTag and Destination tag. 2013-01-09 16:21:57 -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
7ed37066cf Add some features to the KeyCache code so we can use it for ledger acquire failure tracking too. 2013-01-09 15:55:18 -08:00
JoelKatz
d9ab92e88e Cleanup. 2013-01-09 11:06:07 -08:00
JoelKatz
38af346881 Fix some calls that bypass the cache. 2013-01-09 10:49:08 -08:00
JoelKatz
d8b79aa0ee Fix bad log type. 2013-01-09 10:42:23 -08:00
JoelKatz
6cf1b3dbc1 Tiny cleanup. 2013-01-09 10:31:14 -08:00
JoelKatz
07634b5168 This is probably what was causing all the trouble. 2013-01-09 10:29:34 -08:00
JoelKatz
714b3fb0d0 Small fixes. 2013-01-09 10:14:18 -08:00
JoelKatz
d2d84d2af7 More conservative check. 2013-01-09 09:53:39 -08:00
JoelKatz
1acdad8601 Make it compile. 2013-01-09 09:38:41 -08:00
JoelKatz
cb6cf0dd8b Merge branch 'master' of github.com:jedmccaleb/NewCoin 2013-01-09 09:29:31 -08:00
JoelKatz
fcabad79ae Fix the breakage. 2013-01-09 09:29:15 -08:00