Commit Graph

2295 Commits

Author SHA1 Message Date
JoelKatz
34dcb99370 New functions to pass tree node types to callers. 2012-09-13 01:29:04 -07:00
JoelKatz
953f0ad63f Don't charge for transactions twice. Have the "old" getTransaction handle metadata sanely.
Fix calcRawMeta to fit the new model where an LES holds a reference to its ledger
Don't put metadata in open ledger txn sets to avoid breaking the proposal mechanism.
2012-09-13 01:01:40 -07:00
JoelKatz
d2336e3eea Ledger functions to handle transaction metadata. 2012-09-12 18:40:16 -07:00
JoelKatz
1ba5b02f14 Don't track metadata for directory nodes. 2012-09-12 09:18:10 -07:00
JoelKatz
30cd0e197d Remove dead code that's in my way. 2012-09-12 09:18:03 -07:00
JoelKatz
ca6e9cf764 Fix a case where we can get stuck in the wrong consensus window and have to
wait for it to timeout.
2012-09-11 21:36:23 -07:00
JoelKatz
b5da6c22a5 Missing piece for TX metadata. 2012-09-11 15:35:23 -07:00
JoelKatz
ca1436ac25 Remove some dead code that was in my way. 2012-09-11 14:51:13 -07:00
JoelKatz
81cd4cf820 Start of code to track network state, track overwhelmed nodes, and adjust
transaction fees.
2012-09-11 11:56:41 -07:00
JoelKatz
ac225c74e6 Merge branch 'master' of github.com:jedmccaleb/NewCoin 2012-09-10 16:30:37 -07:00
JoelKatz
2c2d9cf8f5 Small cleanups. 2012-09-10 16:30:25 -07:00
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
cc467bf1d3 Move TransactionEngine do* to TransactionAction.cpp 2012-09-10 12:51:56 -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