Commit Graph

183 Commits

Author SHA1 Message Date
JoelKatz
02bd898e51 Some const-correctness.
const SLE::pointer & -> SLE::ref
2012-08-31 18:26:45 -07:00
JoelKatz
9ef0a5491b Use "Ledger::ref" instead of "const Ledger::pointer&". 2012-08-31 18:11:41 -07:00
JoelKatz
4d3fc5b6a5 Stash and apply proposals received with a different LCL. 2012-08-30 12:28:02 -07:00
JoelKatz
faaedb806f Start of the proposal defer/playback code.
Clean up tem codes to tap codes.
2012-08-30 11:43:20 -07:00
JoelKatz
e5af7072bc Propogate a view change during consensus to the NetworkOPs code. 2012-08-30 10:04:58 -07:00
JoelKatz
6282ad4a88 Clean up the TransactionEngineParameter flags. Clarify the semantics for
soft failure. Note that the code will not yet invoke a transaction with a
retry flag, but the support is there for transcations to handle it.
2012-08-29 23:02:06 -07:00
JoelKatz
6b144f8749 Quick fix to the bug causing crashes.
Will rethink shortly to make sure it's correct, but this should be adequate.
2012-08-29 17:33:37 -07:00
JoelKatz
ed709e0ccc Merge branch 'master' of github.com:jedmccaleb/NewCoin 2012-08-29 14:40:00 -07:00
JoelKatz
5db8082608 Small bugfixes. 2012-08-29 14:39:43 -07:00
Arthur Britto
4ae4807c16 Merge branch 'ripple'
Conflicts:
	src/LedgerConsensus.cpp
2012-08-29 12:00:29 -07:00
Arthur Britto
d96070f083 Rename TransactionEngineResult to TER & work on ripple. 2012-08-29 11:58:34 -07:00
JoelKatz
004f3719a5 Perhaps a fix for the problem. Try to make sure there's no window in which
we can receive a proposal and be unable to act on it, even if our clock is
way off and there are no transactions.

The basic problem is this: With no transactions and no clock
synchronization, we have no way to know when to close an idle ledger.
2012-08-28 23:44:29 -07:00
JoelKatz
e4f7ffe995 Some cleanups that should make Arthur happy. 2012-08-28 16:07:44 -07:00
Arthur Britto
bb7f692a76 Rework transaction engine result codes. 2012-08-26 20:38:35 -07:00
JoelKatz
532db8be35 assert if the sanitized transaction differs materially from the submitted
transaction.
2012-08-19 22:52:14 -07:00
JoelKatz
c036188c3c Some more cleanups. 2012-08-19 21:01:36 -07:00
JoelKatz
420ee91877 Remove more wasteful allocate/increment/decrement/free cycles. 2012-08-19 19:23:10 -07:00
Arthur Britto
d5734cd6ce Merge ripple dirs with owner dirs and RPC fixes for setting quality. 2012-08-18 12:41:58 -07:00
jed
c18302e089 Merge branch 'master' of github.com:jedmccaleb/NewCoin 2012-08-15 10:35:26 -07:00
jed
4f285dc603 add RippleLines 2012-08-15 10:35:12 -07:00
JoelKatz
36fb085114 Make this more readable. 2012-08-14 15:59:25 -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
04427b4ad0 Cleanups. 2012-08-13 23:15:50 -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
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
e491922058 Simplify. 2012-08-06 03:06:16 -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
6bd7738303 Make time errors a thing of the past. 2012-08-05 00:19:41 -07:00
JoelKatz
97c1dc73f6 Use the offset. 2012-08-03 04:40:10 -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
c5f7656137 Better logging of ledger jumps. 2012-08-03 02:57:36 -07:00
JoelKatz
0f44af556e Better reporting of ledger jumps. 2012-08-02 11:51:24 -07:00
JoelKatz
a902134133 Don't be blind to validations during the idle time. 2012-08-01 15:00:39 -07:00
JoelKatz
ee3562a9a9 Cleanup resynch logic. 2012-08-01 14:38:29 -07:00
Arthur Britto
a61cf78299 Better handling of full values for amounts. 2012-07-20 14:16:34 -07:00
Arthur Britto
af92bb5347 Santize locally submited transactions. 2012-07-18 14:48:50 -07:00
JoelKatz
333c9896fb Cut to millisecond timing. 2012-07-17 17:48:55 -07:00
Arthur Britto
aa1f2d3c6a Merge branch 'ripple'
Conflicts:
	src/TransactionEngine.cpp
2012-07-17 13:32:29 -07:00
Arthur Britto
fcd13d0208 Work on offers. 2012-07-16 18:54:31 -07:00
JoelKatz
e89af2f784 Merge branch 'continuousClose'
Conflicts:
	src/LedgerAcquire.cpp
	src/NetworkOPs.h

Merge continuous ledger close into main branch. YAY!
2012-07-16 14:48:21 -07:00
JoelKatz
7e7356c155 Cleanups and bugfixes. 2012-07-16 00:47:46 -07:00
JoelKatz
0f3a218aea Typo. 2012-07-16 00:31:17 -07:00
JoelKatz
74ef722156 Split the difference. 2012-07-16 00:30:41 -07:00
JoelKatz
d3f95a37c9 We have to at least count our own ledger, otherwise we can find no closed ledgers at all. 2012-07-15 23:30:14 -07:00
Arthur Britto
0f47f72e30 Work on WS account_info_subscribe. 2012-07-14 22:13:22 -07:00
Arthur Britto
6feb16709e Add RPC owner_info. 2012-07-14 17:21:43 -07:00
jed
13a68da567 compile on windows 2012-07-14 08:41:05 -07:00