JoelKatz
9222eee1df
I believe this trivial change solves the "stuck one ledger behind" problem.
...
If the ledger is open, there should be no significant number of proposals
for a subsequent ledger. If there is, we are a ledger behind.
2012-09-08 03:51:56 -07:00
JoelKatz
e2137ea5af
Make our ledger a bit stickier to avoid the "check at the wrong time"
...
problem (when you don't have enough validations for the latest ledger and so
jump backwards when you shouldn't. This solves every known ledger consensus
issue except the "stuck one ledger behind" issue. I'm working on that now.
2012-09-08 03:49:12 -07:00
JoelKatz
1a1952ea7b
You can now create a LedgerEntrySet without a TransactionEngine. You can
...
call all the various entry* functions on it directly. You can throw it out
when you're done. The constructor is:
LedgerEntrySet(Ledger::ref ledger)
All the normal checkpointing, caching, and swapping will work. Of course,
you cannot commit the results. The TransactionEngine::entry* functions now
just directly call the corresponding functions on the LedgerEntrySet. You
can call them in code that will only be used in the context of a
transaction.
2012-09-08 00:48:26 -07:00
JoelKatz
63921c9757
Cleanups and fixes.
2012-09-07 22:21:07 -07:00
JoelKatz
0defc8d5ab
Cleanups.
2012-09-07 15:50:07 -07:00
JoelKatz
345d3ccb1d
Merge branch 'master' of github.com:jedmccaleb/NewCoin
2012-09-07 15:26:14 -07:00
JoelKatz
cbc758db64
Fix crash
2012-09-07 15:25:47 -07:00
JoelKatz
390e628f10
Cmall cleanups and fixes.
2012-09-07 15:06:25 -07:00
Arthur Britto
a3ddb9b146
Remove unused variables.
2012-09-07 14:40:16 -07:00
jed
90fb093402
.
2012-09-07 14:33:56 -07:00
jed
43a3bcc155
.
2012-09-07 14:33:13 -07:00
jed
dcfe92a84b
Merge branch 'master' of github.com:jedmccaleb/NewCoin
2012-09-07 14:23:32 -07:00
jed
8ffb303ab7
missing files
2012-09-07 14:23:01 -07:00
Arthur Britto
ae50e04ad5
Merge branch 'master' of github.com:jedmccaleb/NewCoin
2012-09-07 14:08:35 -07:00
Arthur Britto
e0cfa2e12d
Remove obsolete ledeger fields.
2012-09-07 14:08:25 -07:00
jed
084a0c4888
Merge branch 'master' of github.com:jedmccaleb/NewCoin
2012-09-07 14:04:26 -07:00
jed
e12a6a7fc5
changed contract
2012-09-07 14:04:02 -07:00
JoelKatz
9f6118b795
Tiny cleanup
2012-09-07 11:25:20 -07:00
JoelKatz
adf4ff998b
Make it less likely that a node will get temporarily stuck in a stale consensus process.
2012-09-07 11:23:06 -07:00
JoelKatz
e557395072
Fix the bug causing ledgers to close immediately even without transactions.
...
Fix a bug that could cause the network to proceed without a consensus.
2012-09-07 10:47:15 -07:00
JoelKatz
19c69cbb82
Cosmetic.
2012-09-07 10:46:58 -07:00
jed
1353001be0
Merge branch 'master' of github.com:jedmccaleb/NewCoin
2012-09-07 07:18:59 -07:00
jed
dbbd03cad1
.
2012-09-07 07:18:47 -07:00
Arthur Britto
61cdcf2830
Merge branch 'ripple'
2012-09-06 21:34:33 -07:00
Arthur Britto
7a479d6035
Fixes for rippling through an offer.
2012-09-06 21:32:07 -07:00
JoelKatz
a3241dae56
Fix a case where we could lose deferred prposals.
2012-09-05 22:28:26 -07:00
JoelKatz
4737b960fc
Improve comment.
2012-09-05 22:23:12 -07:00
JoelKatz
6eacbf16e7
Typo.
2012-09-05 22:23:03 -07:00
JoelKatz
2da2b340fc
Make it compile.
2012-09-05 21:55:20 -07:00
JoelKatz
687578abd9
Get rid of "dead" ledgers. We don't need them any more and they make trouble.
...
Fix close time synch to be more accurate.
2012-09-05 21:55:00 -07:00
jed
8e5374b338
contract stuff. Still aways a way I just wanted to get it in github.
2012-09-05 16:54:14 -07:00
jed
a61b5e98fe
Merge branch 'master' of github.com:jedmccaleb/NewCoin
2012-09-05 15:56:29 -07:00
jed
0d40390e6b
contract
2012-09-05 15:33:48 -07:00
JoelKatz
2512eac370
Rounding was messing up the close time consensus test.
2012-09-05 14:52:55 -07:00
JoelKatz
ec625a608f
Small tweaks.
2012-09-05 14:37:42 -07:00
JoelKatz
0b67ad7858
Merge branch 'master' of github.com:jedmccaleb/NewCoin
2012-09-05 14:37:09 -07:00
JoelKatz
159fe2145a
Copy the correct hash
2012-09-05 14:36:50 -07:00
Arthur Britto
34101d0a7a
Merge branch 'ripple'
2012-09-05 14:19:25 -07:00
Arthur Britto
986fd52f19
Get indirect ripple working again.
2012-09-05 14:18:58 -07:00
JoelKatz
7a300f6c7b
Fix deadlock.
2012-09-05 10:18:23 -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
7785b89b5d
Some extra debugging. Don't jump back to the ledger we just left (yeah,
...
there was another way that could happen.)
2012-09-05 07:22:04 -07:00
jed
6c7fadf479
Merge branch 'master' of github.com:jedmccaleb/NewCoin
2012-09-05 07:12:19 -07:00
jed
090e7c6064
start contracts
2012-09-05 07:12:00 -07:00
Arthur Britto
1c963cc1a0
Merge branch 'master' into ripple
2012-09-04 16:16:13 -07:00
Arthur Britto
829b57173f
Restruct reverse ripple through offers.
2012-09-04 15:40:53 -07:00
JoelKatz
00199d3915
An imperfect fix for the case where we get validations during the consensus process for the next ledger and
...
think it's a change in the previous ledger.
2012-09-03 20:36:51 -07:00
JoelKatz
cfedc4b981
Bugfix.
2012-09-03 20:29:59 -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
Arthur Britto
9a5d23d5d4
Cosmetic.
2012-09-03 14:43:16 -07:00