Commit Graph

34 Commits

Author SHA1 Message Date
JoelKatz
227754496e Fix what is probably *the* bug. We aren't usually in our own UNL, so we
specially mark our validations trusted. But that wasn't properly taken into
account in one case where we decide if a validation is current. This causes
two nodes to each not recognize their own validations, so they tend to
exchange ledgers.

Cleanups, extra logging.
2012-08-13 23:14:39 -07:00
JoelKatz
8068e5fbb9 Remove chatty debug. 2012-08-13 22:27:20 -07:00
JoelKatz
d1547998d7 Change LEDGER_MAX_INTERVAL to LEDGER_VAL_INTERVAL to more accurately reflect what it now does.
Turn this interval way up to ensure we can't lose synch (due to validations seeming too old)
if time resolution drops drastically.
2012-08-13 17:55:55 -07:00
JoelKatz
524e89f4e1 Timing cleanups. 2012-08-13 17:35:20 -07:00
JoelKatz
6553b21318 Fix some dead ledger logic. 2012-08-06 03:05:35 -07:00
JoelKatz
3e2ecc88cc Check that we don't already have a dead ledger. 2012-08-06 02:32:53 -07:00
JoelKatz
39b28e1f50 Don't switch to a dead ledger. Without this, we can even get out of sync with ourselves! 2012-08-06 02:21:17 -07:00
JoelKatz
b14b2f5dab Separate close times and network times. 2012-08-06 02:12:27 -07:00
JoelKatz
1892e7e00a Some extra debug. 2012-08-03 04:11:52 -07:00
JoelKatz
5778cb1183 Keep one validation back to avoid a split case when some nodes have sent new validations and some haven't 2012-08-03 04:07:01 -07:00
JoelKatz
a089dd5460 Fix a bug in how we count validations. 2012-08-03 02:57:14 -07:00
JoelKatz
024a8b6433 Fix the bug Jed reported. 2012-07-17 11:40:48 -07:00
JoelKatz
3f4617a9a8 Typo. 2012-07-17 03:11:01 -07:00
JoelKatz
d83d8080fd Efficiently save validations. 2012-07-17 03:10:05 -07:00
JoelKatz
0cbe1bfe35 Fix a bug Arthur found. 2012-07-14 13:15:00 -07:00
JoelKatz
b2b131ab0d Whitespace fix. 2012-07-14 00:21:13 -07:00
JoelKatz
ecd47f0ea8 Cut to 32-bit network times. 2012-07-12 01:41:24 -07:00
JoelKatz
98c8529701 Some extra validation operations needed by CLC. 2012-07-09 15:49:46 -07:00
JoelKatz
75f3b4129c CLC needs validation counts for previous ledgers. 2012-07-09 10:41:27 -07:00
JoelKatz
729e6570ff Update validation validity tests for CLC. 2012-06-30 18:17:32 -07:00
JoelKatz
4d52ec0191 Don't relay stale validations. 2012-06-23 21:53:25 -07:00
JoelKatz
43425f39eb Bugfixes. 2012-06-20 18:38:28 -07:00
JoelKatz
b6d4750848 Don't consider the last closed consensus ledger as the next LCL. 2012-06-20 18:13:28 -07:00
JoelKatz
93a05d55ca Sanitize validation handling. 2012-06-20 18:01:38 -07:00
JoelKatz
40912499c7 Properly set validations to trusted. 2012-06-20 13:52:29 -07:00
JoelKatz
94bc059f87 Fix some mishandling of genesis block close timing. 2012-06-20 13:40:10 -07:00
JoelKatz
58dcc8b9c1 Don't use stale validiations. 2012-06-20 13:26:32 -07:00
JoelKatz
c7fd34bf9e bugfix. 2012-06-20 04:18:36 -07:00
JoelKatz
d57236599e Make this code work. 2012-06-18 17:01:35 -07:00
Arthur Britto
0492ea5877 Cosmetic SQL clean up. 2012-05-07 18:39:19 -07:00
Arthur Britto
e7c362457e Fix database getNextRow(). 2012-05-05 16:45:55 -07:00
JoelKatz
2d24d05174 Mark a FIXME. BOOST_FOREACH caches the end. 2012-04-23 16:01:02 -07:00
Arthur Britto
73ff9b95ad Rework addresses. 2012-03-17 20:19:09 -07:00
Arthur Britto
c513e45754 Move sources to src and build objs in obj. 2012-03-06 22:43:06 -08:00