JoelKatz
9ef0a5491b
Use "Ledger::ref" instead of "const Ledger::pointer&".
2012-08-31 18:11:41 -07:00
JoelKatz
ad12e318ba
Allow a peer position to be removed from the consensus logic if the peer is
...
not responding. This version uses static timing. A peer takes a position
every 12 seconds and a position is valid for 20 seconds. It might make sense
to either make that timing adaptive or include a "validity time" field in
the position. However, I think this is really only going to be an issue in
fairly small networks (which is why we are seeing it).
2012-08-31 15:51:41 -07:00
JoelKatz
f636ae861e
Merge branch 'master' of github.com:jedmccaleb/NewCoin
2012-08-31 14:47:55 -07:00
JoelKatz
c3603c403d
Code to determine how old a proposal is.
...
Low-level code to remove a peer from the consensus process.
2012-08-31 14:47:31 -07:00
Arthur Britto
69de9f9ce2
Progress toward ripple pre restructuring forward.
2012-08-31 14:05:37 -07:00
Arthur Britto
73e6e70f13
Use stl for min and max.
2012-08-30 21:16:07 -07:00
Arthur Britto
e8a74c7679
Work on ripple.
2012-08-30 21:15:46 -07:00
Arthur Britto
22a1cb6eed
Work towards ripple.
2012-08-30 15:19:28 -07:00
Arthur Britto
61de69e8d0
Merge branch 'ripple'
2012-08-30 13:17:57 -07:00
Arthur Britto
657084f5b9
Rework applyTransaction to use new TERs.
2012-08-30 13:17:38 -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
651cee5738
Clean up ledger JSON output.
2012-08-30 10:44:21 -07:00
JoelKatz
de5c9cc1a2
Comment out some code that's causing an issue.
2012-08-30 10:44:09 -07:00
JoelKatz
dbc2b4c4e9
Improve log message text.
2012-08-30 10:30:19 -07:00
JoelKatz
ee71603dec
Logic error in last close logic making us thing consensus was slow.
2012-08-30 10:29:56 -07:00
JoelKatz
9308abc8e1
Extra logging.
2012-08-30 10:05:33 -07:00
JoelKatz
e5af7072bc
Propogate a view change during consensus to the NetworkOPs code.
2012-08-30 10:04:58 -07:00
JoelKatz
c8d3de7b7d
Remove an incorrect assertion.
2012-08-30 09:48:59 -07:00
JoelKatz
c481bd6cba
Simplify the code that handles a ledger change in the consensus window.
...
Remove duplicate code. Handle edge cases correctly in all code paths.
2012-08-30 09:38:44 -07:00
JoelKatz
727d2644a4
We mishandle the cases where we already have the new consensus LCL.
2012-08-30 09:19:14 -07:00
JoelKatz
56b1939f43
Extra safety.
2012-08-30 09:19:05 -07:00
JoelKatz
1813e8365d
Fix crash on txn against non-existent account.
2012-08-30 08:59:25 -07:00
JoelKatz
f63d9df60b
Ledger idle timing fixes.
2012-08-29 23:38:35 -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
774110eef9
Fix a bug that could cause an idle ledger to spend insufficient time
...
establishing a consensus.
2012-08-29 16:01:30 -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
dacc4a7286
Merge branch 'ripple'
2012-08-29 12:38:35 -07:00
Arthur Britto
7967b4ec11
Improve error handling for transaction engine path creation.
2012-08-29 12:38:24 -07:00
Arthur Britto
4ae4807c16
Merge branch 'ripple'
...
Conflicts:
src/LedgerConsensus.cpp
2012-08-29 12:00:29 -07:00
Arthur Britto
aec95e3a0f
Merge branch 'ripple' of github.com:jedmccaleb/NewCoin into ripple
2012-08-29 11:58:57 -07:00
Arthur Britto
d96070f083
Rename TransactionEngineResult to TER & work on ripple.
2012-08-29 11:58:34 -07:00
JoelKatz
45329b8d08
Remove some dead code.
2012-08-29 00:09:28 -07:00
JoelKatz
af5c04b816
Some extra debug.
2012-08-29 00:03:30 -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
54eca8a3bb
Whitespace fix.
2012-08-28 23:44:19 -07:00
JoelKatz
e4f7ffe995
Some cleanups that should make Arthur happy.
2012-08-28 16:07:44 -07:00
JoelKatz
192c64461d
Simplify and improve performance a bit.
2012-08-28 15:35:47 -07:00
JoelKatz
7bf224200b
This is not only simpler, but should perform slightly better too.
2012-08-28 15:31:41 -07:00
JoelKatz
fccbe7db8d
Merge branch 'ripple' of github.com:jedmccaleb/NewCoin into ripple
2012-08-28 13:35:26 -07:00
JoelKatz
fd62f72c6e
Merge branch 'ripple' of github.com:jedmccaleb/NewCoin
2012-08-28 13:32:31 -07:00
Arthur Britto
354c33f71a
Work toward ripple loop detection and offer deletion.
2012-08-28 13:27:54 -07:00
JoelKatz
bcd08c368c
This should complete the code to build the transaction meta data based on
...
the ledger entry set.
2012-08-28 04:05:19 -07:00
Arthur Britto
0d8ad928f6
Simplify clean up for takeOffers.
2012-08-27 13:20:47 -07:00
Arthur Britto
344f551c39
Merge branch 'ripple'
2012-08-27 13:16:03 -07:00
Arthur Britto
421841b209
Fix offer creation to support threading.
2012-08-27 13:15:04 -07:00
Arthur Britto
e02e785a72
Work on transaction engine offer deleting.
2012-08-27 12:22:03 -07:00
JoelKatz
9148127083
Fix threading.
2012-08-27 03:04:33 -07:00