Commit Graph

38 Commits

Author SHA1 Message Date
JoelKatz
4c6920dd55 Add extra debug to better understand how the txn retry logic is working.
Avoid an extra transaction pass caused by failed transactions counting as changes.
Downgrade some debug messages from INFO to DEBUG.
2013-01-19 14:09:42 -08:00
JoelKatz
80d98e55a9 Clean up JSON reporting of booleans and network state. 2013-01-18 17:38:11 -08:00
JoelKatz
79d1727b38 Hopefully, handle partial success correctly. Retry engine. 2013-01-18 10:17:21 -08:00
JoelKatz
1acdad8601 Make it compile. 2013-01-09 09:38:41 -08:00
JoelKatz
eadaaaa0fd Clean up debug. 2013-01-09 09:22:25 -08:00
JoelKatz
bbd32faf05 Demote some older logs. 2013-01-08 14:50:45 -08:00
JoelKatz
7a2f098ac4 Reduce some chatty logging. 2013-01-07 23:47:21 -08:00
JoelKatz
c2a4cc8321 Get rid of transaction acquire entries ASAP. 2013-01-07 14:44:18 -08:00
JoelKatz
63fd3818fb Rather than counting PeerSet's, count LedgerAcquire's and TransactionAcquire's. 2013-01-06 17:32:25 -08:00
JoelKatz
ee89904a00 Cleanup trigger. 2013-01-04 20:26:26 -08:00
JoelKatz
11cb109c16 Another safety. 2013-01-03 23:23:10 -08:00
JoelKatz
6849c579eb Extra safety. 2013-01-03 23:12:48 -08:00
JoelKatz
0d8ed85bd4 Update. 2013-01-03 22:44:56 -08:00
JoelKatz
e78b5d11b6 Bugfix. 2013-01-03 22:33:55 -08:00
JoelKatz
d4f4d9bf78 Redesign the way the acquire timer is (re)set so that we won't have bugs
where we fail to arm it.
2013-01-03 21:25:40 -08:00
JoelKatz
40b87e9157 Fix a bug that would cause the server to exit the "need network ledger" state prematurely. 2012-12-30 23:48:53 -08:00
JoelKatz
a169167030 Fix a bug where a node doesn't get a chance to finish acquiring a TX set
before all nodes forget it because they're done with it, leaving a node
behind the consensus.
2012-12-27 20:25:12 -08:00
JoelKatz
7c04eded0f Improve some consensus logging. 2012-12-26 22:30:18 -08:00
JoelKatz
79d139e2ce Don't let a tranasction set acquire stall. 2012-12-25 23:00:39 -08:00
JoelKatz
9689f94f5a Cleanups. 2012-12-23 17:52:34 -08:00
JoelKatz
2c535940ac Make the transaction engine report whether it added the transaction. 2012-12-23 17:42:04 -08:00
JoelKatz
2203313945 Logging cleanups. 2012-12-18 14:39:02 -08:00
JoelKatz
2a06686b7c Round one of fixes to avoid ridiculous numbers of spurious copy constructor and destructor calls.
Most of these fixes involve calls to BOOST_FOREACH to iterate over a map or unordered_map where the
iterator type didn't perfectly match the internal type, so a reference into the map couldn't be created
and a new value/content pair had to be created for each iteration.
2012-12-17 20:20:24 -08:00
JoelKatz
f8e98694c6 Emergency workaround. 2012-12-13 16:41:28 -08:00
JoelKatz
26915da1a4 Temporary workaround. 2012-12-13 16:36:20 -08:00
JoelKatz
5cf15b3f4e Shutdown cleanly on control-C. 2012-11-28 20:49:07 -08:00
JoelKatz
6aca65ff76 Get the shared pointers out of the scoped lock stuff. We don't need it. 2012-11-28 15:27:20 -08:00
jed
89f02efc16 option to return date of transaction in the JSON 2012-11-23 17:58:48 -08:00
JoelKatz
8b53f85f60 Separate ledger publish logic so we can tell if clients are overloading us. 2012-11-23 12:15:04 -08:00
JoelKatz
89d54999c9 Rework the way the results of ledger and TX map acquisition is passed up and down the
call chain so that the peer logic will know how helpful peers are being, not just whether
they're sending invalid data.
2012-11-21 09:28:09 -08:00
JoelKatz
5ac22ff31b Two more load monitoring hooks. 2012-11-20 12:09:51 -08:00
JoelKatz
601db4491a Track when we have to abandon the consensus process because the network has moved on.
Issue partial validation if appropriate later.
Change the consensus abort threshold to 80% of trusted nodes. (Maybe there should be a delay?)
2012-11-14 08:47:36 -08:00
JoelKatz
bd44ae1b2b Fix standalone or non-validating modes. 2012-11-14 00:33:17 -08:00
JoelKatz
c6aab36fe7 Issue partial validations when appropriate. 2012-11-14 00:23:32 -08:00
jed
433cbc4d92 vs 2012 2012-11-12 15:45:50 -08:00
JoelKatz
40527cca2b Start adding support for concurrent I/O. 2012-11-09 14:14:47 -08:00
JoelKatz
644aa28e5b Fix the need to call setIndex after creating a new SLE.
Finish the ledger skip list code. (Note that this will cause ledger divergence if old code talks to new code.)
2012-11-08 04:36:15 -08:00
Stefan Thomas
fa3fab5816 Moved cpp code to src/cpp and js code to src/js. 2012-11-07 12:49:50 -08:00