Commit Graph

2010 Commits

Author SHA1 Message Date
JoelKatz
be17a3866f Fix the race condition bug Jed reported. A time jump on startup could cause
an apparently overly-long (or even negative) ledger interval. The fix is to
start up time synch earlier and to tolerate slight negative ledger intervals.
2012-08-08 14:22:03 -07:00
JoelKatz
28bddfb538 Merge branch 'master' of github.com:jedmccaleb/NewCoin 2012-08-08 13:56:52 -07:00
JoelKatz
9991c9532f Not sure why I put this in, but it's wrong. 2012-08-08 13:56:31 -07:00
jed
7fd327ee38 compile on windows 2012-08-08 10:22:54 -07:00
JoelKatz
3a4762c609 Don't try to calculate close time offsets if a ledger closed due to being idle. 2012-08-08 01:35:44 -07:00
JoelKatz
9fc4f469b8 Add STAmount::isNonZero 2012-08-08 01:35:34 -07:00
JoelKatz
8e89335e2b Cleanups to the sha map node format code. 2012-08-07 19:52:09 -07:00
JoelKatz
b4e63c3025 Fix a few cases where we reset the acquire timer when we should not. 2012-08-07 04:11:20 -07:00
JoelKatz
86b9597ddd Reduce log chattiness.
Acquire transaction and state trees in parallel.
2012-08-07 03:32:58 -07:00
JoelKatz
03e8104f62 Small close time consensus fix. 2012-08-07 01:39:34 -07:00
JoelKatz
f80b884e81 Fix a consensus close time bug. 2012-08-07 01:30:39 -07:00
JoelKatz
5c01dc7338 We can lose time consensus. 2012-08-06 04:28:20 -07:00
JoelKatz
7186d45f45 Some extra debug to try to find the close time consensus buglet. 2012-08-06 04:22:35 -07:00
JoelKatz
241393410a More json information about consensus process.
Fix a bug where swithing ledgers during the consensus window caused us to use the wrong close resolution.
2012-08-06 03:57:01 -07:00
JoelKatz
7a5db15041 Add more consensus information to the "server_info" RPC call. 2012-08-06 03:51:44 -07:00
JoelKatz
efa3653b80 Bugfix for moving from connected to tracking state.
Skeleting for getting Json info from consensus engine.
2012-08-06 03:40:52 -07:00
JoelKatz
85c0293673 Report peer close times. 2012-08-06 03:39:45 -07:00
JoelKatz
e491922058 Simplify. 2012-08-06 03:06:16 -07:00
JoelKatz
573ef488f2 Fix dead ledger logic.
Improve some logging.
Fix how we handle close time consensus based on whether we're validating.
2012-08-06 03:05:44 -07:00
JoelKatz
6553b21318 Fix some dead ledger logic. 2012-08-06 03:05:35 -07:00
JoelKatz
3ae8ec6168 Remove some old debug. 2012-08-06 03:05:17 -07:00
JoelKatz
3e2ecc88cc Check that we don't already have a dead ledger. 2012-08-06 02:32:53 -07:00
JoelKatz
71b5b19198 Bugfix. 2012-08-06 02:25:59 -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
05e193f370 Use a median filter to protect against bad timeservers. 2012-08-05 20:07:08 -07:00
JoelKatz
65cbd319c1 Cleanups. 2012-08-05 03:56:17 -07:00
JoelKatz
ad0650b7fa Suppress small offsets. They are likely just due to rounding. 2012-08-05 03:47:15 -07:00
JoelKatz
ed8635c98d Use the OpenSSL RNG for randomness that needs to be secure. 2012-08-05 00:54:28 -07:00
JoelKatz
3e3d367c98 Finalizations, cleanup, and security improvements. 2012-08-05 00:39:06 -07:00
JoelKatz
6bd7738303 Make time errors a thing of the past. 2012-08-05 00:19:41 -07:00
JoelKatz
ee01b55874 An SNTP client implementation. About 95% complete right now. 2012-08-04 21:33:05 -07:00
JoelKatz
78f415f386 Allow a 20 second clock offset. 2012-08-03 07:02:18 -07:00
JoelKatz
127391b345 Remove assert. 2012-08-03 06:51:32 -07:00
JoelKatz
d98a931b8e Compute our clock offset. (We don't actually set it yet though.) 2012-08-03 04:40:16 -07:00
JoelKatz
97c1dc73f6 Use the offset. 2012-08-03 04:40:10 -07:00
JoelKatz
0f4800f6bb Support for a local time to network time offset 2012-08-03 04:39:52 -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
6815c7ef98 Cleanups. 2012-08-03 04:06:53 -07:00
JoelKatz
d251a67d17 Fix typos. 2012-08-03 03:47:27 -07:00
JoelKatz
debcea79f0 Don't switch to our own previous ledger. 2012-08-03 03:46:31 -07:00
JoelKatz
9eaf052ee8 Make this compile temporarily. 2012-08-03 03:22:32 -07:00
JoelKatz
7b44fffb27 Make this compile. 2012-08-03 03:22:00 -07:00
JoelKatz
a202eb50d7 Cleanups. 2012-08-03 02:57:55 -07:00
JoelKatz
c5f7656137 Better logging of ledger jumps. 2012-08-03 02:57:36 -07:00
JoelKatz
a089dd5460 Fix a bug in how we count validations. 2012-08-03 02:57:14 -07:00
JoelKatz
0f44af556e Better reporting of ledger jumps. 2012-08-02 11:51:24 -07:00
JoelKatz
e373a58f5c Avoid duplicate completion of acquired ledgers. 2012-08-02 11:50:59 -07:00
JoelKatz
67ee822948 Fix the other half of the acquire timeout bug. 2012-08-02 11:36:48 -07:00