JoelKatz
4faad38112
Base classes used polymorphically whose child classes have data members or
...
destructors must themselves have virtual destructors or Bad Things(TM)
happen.
2012-09-10 16:29:42 -07:00
Arthur Britto
b7f3baee15
Split up TransactionEngine, part 1.
2012-09-09 19:54:46 -07:00
Arthur Britto
4adfce51a3
Create TransactionErr.* and move dir functions to LedgerEntrySet.
2012-09-08 15:37:22 -07:00
Arthur Britto
fe6c5d2b60
Comment out bad assert.
2012-09-08 15:36:23 -07:00
Arthur Britto
be31c0e921
Merge branch 'master' of github.com:jedmccaleb/NewCoin
2012-09-08 11:33:09 -07:00
Arthur Britto
042a239c62
Remove unused directories (test & Debug).
2012-09-08 11:32:51 -07:00
JoelKatz
4271a9d12d
Improve comments.
...
Fix a typo in previous commit.
2012-09-08 04:14:42 -07:00
JoelKatz
3ab5b24226
Trivial change.
2012-09-08 04:14:26 -07:00
JoelKatz
18b18359c5
Be smarter about tracking which peers have which ledgers.
2012-09-08 04:14:06 -07:00
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