Commit Graph

2056 Commits

Author SHA1 Message Date
Arthur Britto
64d6f16068 Minor cleanup. 2012-08-14 16:04:39 -07:00
JoelKatz
d3bce70e86 Remove Config::init. It's not needed. 2012-08-14 16:00:03 -07:00
JoelKatz
36fb085114 Make this more readable. 2012-08-14 15:59:25 -07:00
JoelKatz
89c7c26c2f Oops. 2012-08-14 15:36:50 -07:00
JoelKatz
e473ce8424 Support "standalone" mode (-a or --standalone) in which we do not connect
to the network and do not close ledgers. This mode makes it much easier to
test transactions as they are only applied once to the open ledger.
2012-08-14 15:35:30 -07:00
JoelKatz
4b2ae556bd Downgrade a timing issue from fatal to warning. 2012-08-14 01:51:46 -07:00
JoelKatz
046c539d49 Mark a parameter as unused. 2012-08-14 01:51:35 -07:00
JoelKatz
3dcdc3b94a Fire up the aux thread earlier. 2012-08-14 01:51:17 -07:00
JoelKatz
04427b4ad0 Cleanups. 2012-08-13 23:15:50 -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
5eca52497f Improve close time synch with no transactions 2012-08-13 23:13:12 -07:00
JoelKatz
6788105b2c Chatty debug. 2012-08-13 23:13:01 -07:00
JoelKatz
22237e58ab Check for network condition during idle time. Switch LCL if needed. 2012-08-13 22:27:29 -07:00
JoelKatz
8068e5fbb9 Remove chatty debug. 2012-08-13 22:27:20 -07:00
JoelKatz
ba6e65214b Log whether a ledger is alive or dead when considering it as LCL. 2012-08-13 19:23:49 -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
e3b6ec5080 Don't call newLCL more than once. 2012-08-13 17:18:58 -07:00
JoelKatz
4aea8c8dfb Use fat root semantics when acquire transaction sets. This might save a pass. 2012-08-13 17:11:15 -07:00
JoelKatz
a7f192c989 Cleanups. 2012-08-13 17:11:00 -07:00
JoelKatz
ae6c724f54 Merge branch 'master' of github.com:jedmccaleb/NewCoin 2012-08-13 17:10:59 -07:00
JoelKatz
88e938ec50 Change TXS acquire timeout. 2012-08-13 17:10:51 -07:00
Arthur Britto
02adbfc953 Merge branch 'ripple' 2012-08-13 17:06:43 -07:00
Arthur Britto
9e41cac0da Add RPC ripple command and improve wallet_propose. 2012-08-13 17:05:35 -07:00
JoelKatz
0f51774f58 Some paranoid extra checks. 2012-08-13 15:10:38 -07:00
JoelKatz
99a3d83330 Indent fix. 2012-08-13 14:56:08 -07:00
JoelKatz
d554950efe One more drop of extra debug. 2012-08-13 14:35:47 -07:00
JoelKatz
d3daa2fc00 Extra debug to help rule out the possibility that our ledgers are diverging after we are in sync. 2012-08-13 04:53:50 -07:00
JoelKatz
c5acd0f630 Cleanups. 2012-08-13 03:10:43 -07:00
JoelKatz
eaf0ffa08f Possible fix for a bug Jed reported. 2012-08-13 03:10:29 -07:00
JoelKatz
3e72880c2f Merge branch 'master' of github.com:jedmccaleb/NewCoin 2012-08-13 02:19:42 -07:00
JoelKatz
e0aa5f287f Some asserts to help track down a bug (that seems impossible) that Jed reported. 2012-08-13 02:19:18 -07:00
Arthur Britto
05304cc1fc More work towards ripple backend. 2012-08-11 14:39:58 -07:00
Arthur Britto
2f3f51b0ee Merge branch 'master' into ripple
Conflicts:
	src/LedgerEntrySet.cpp
2012-08-10 13:15:34 -07:00
Arthur Britto
622066f7e3 Work towards ripple backend. 2012-08-10 12:58:59 -07:00
JoelKatz
5b431ea4f6 Fix the bug Jed reported where our second closed ledger has a close time in the past which
crashes the CLC timing code.
2012-08-10 10:51:35 -07:00
JoelKatz
e3c77d2c0c More LedgerEntrySet code. Retrieve as Json. Finalize before serializing. 2012-08-09 19:21:08 -07:00
JoelKatz
d477172f65 Cleanups and whitespace fixes. 2012-08-09 19:20:53 -07:00
JoelKatz
1aa15c62e1 Implement STAmount::getRate. 2012-08-09 16:03:00 -07:00
JoelKatz
4e99d8d7bd Cleanups. 2012-08-08 23:08:24 -07:00
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