Commit Graph

16 Commits

Author SHA1 Message Date
JoelKatz
0630a4b7f4 We have to track the high node ID of trusted validators as a tie-breaker.
1) Change return from getCurrentValidations
2) Log tiebreaker logic to aid debugging
3) Change checkLastClosedLedger to use the new tie-breaker logic
4) Log when we refuse to switch to our own previous ledger
5) Track node ID in the serialized validation object
6) Simplify getCurrentValidations ledger suppression logic
2012-10-05 03:46:24 -07:00
JoelKatz
2a6ce337b2 The old signature logic won't work with the new scheme. This is simpler
and the way the new code is supposed to work.
2012-10-04 23:45:52 -07:00
JoelKatz
e2c257f50b Fix a bug Jed reported. More JSON work. Redo format layouts. 2012-10-01 20:09:24 -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
ee78114033 Convenience type. 2012-09-03 09:47:14 -07:00
JoelKatz
d83d8080fd Efficiently save validations. 2012-07-17 03:10:05 -07:00
JoelKatz
ecd47f0ea8 Cut to 32-bit network times. 2012-07-12 01:41:24 -07:00
JoelKatz
ee2b1580a5 Use new hash prefixes. 2012-06-25 09:12:15 -07:00
JoelKatz
9db52a232a Split get signing hash operation and signature verify operation. 2012-06-23 21:53:54 -07:00
JoelKatz
58dcc8b9c1 Don't use stale validiations. 2012-06-20 13:26:32 -07:00
JoelKatz
ad86e17920 Make validation code work. 2012-06-18 16:58:21 -07:00
Arthur Britto
368e5a0acc Have consensus use the config for validation and use uint160 for peerIDs. 2012-06-13 15:51:30 -07:00
Arthur Britto
f548e27e67 Cosmetic changes. 2012-05-05 16:46:29 -07:00
JoelKatz
ccb7427a14 Validation signature bugfix. 2012-05-05 13:51:29 -07:00
JoelKatz
824f6a14c9 Class to handle validations. 2012-05-03 12:40:54 -07:00