Commit Graph

43 Commits

Author SHA1 Message Date
JoelKatz
81cd4cf820 Start of code to track network state, track overwhelmed nodes, and adjust
transaction fees.
2012-09-11 11:56:41 -07:00
JoelKatz
687578abd9 Get rid of "dead" ledgers. We don't need them any more and they make trouble.
Fix close time synch to be more accurate.
2012-09-05 21:55:00 -07:00
JoelKatz
159fe2145a Copy the correct hash 2012-09-05 14:36:50 -07:00
JoelKatz
7a300f6c7b Fix deadlock. 2012-09-05 10:18:23 -07:00
JoelKatz
1dfdf8e9d8 Count a validation for its previous ledger if it's during consensus time. 2012-09-05 10:05:15 -07:00
JoelKatz
4930ebb945 Simplify the way we handle validations. Include a signing time instead of a
closing time. Keep only the validation with the most recent signing time.
Sign using network time. This eliminates the ValidationPair nightmare and
makes the logic must easier to understand, increasing confidence that it
does what it's supposed to do.
2012-09-03 20:13:57 -07:00
JoelKatz
d5fe3261ab Cleanups and simplfications. 2012-09-03 01:47:03 -07:00
JoelKatz
e4f7ffe995 Some cleanups that should make Arthur happy. 2012-08-28 16:07:44 -07:00
JoelKatz
abf41dd4de Fix a large number of cases where we copy construct a shared_ptr just to destroy it. 2012-08-15 04:01:22 -07:00
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