Commit Graph

188 Commits

Author SHA1 Message Date
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
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
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
345d3ccb1d Merge branch 'master' of github.com:jedmccaleb/NewCoin 2012-09-07 15:26:14 -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
Arthur Britto
e0cfa2e12d Remove obsolete ledeger fields. 2012-09-07 14:08:25 -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
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
Arthur Britto
986fd52f19 Get indirect ripple working again. 2012-09-05 14:18:58 -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
Arthur Britto
9a5d23d5d4 Cosmetic. 2012-09-03 14:43:16 -07:00
Arthur Britto
dda279e5a6 Remove remaining support for redeem and issue flags. 2012-09-03 14:37:00 -07:00
Arthur Britto
74392e5929 Provide seperate ledger entry to state to ripple reverse. 2012-09-03 14:28:45 -07:00
Arthur Britto
8910a3e14b Implement quality limit for ripple. 2012-09-03 14:15:31 -07:00
Arthur Britto
61831eaa3c Obsolete redeem and issue flag support from ripple paths. 2012-09-03 13:57:01 -07:00
Arthur Britto
1024af54b6 Modify RPC and transactions to use quality flags for ripple. 2012-09-02 21:32:52 -07:00
Arthur Britto
9329604836 Restructure forward ripple through offers. 2012-09-01 17:24:14 -07:00
JoelKatz
9ef0a5491b Use "Ledger::ref" instead of "const Ledger::pointer&". 2012-08-31 18:11:41 -07:00
Arthur Britto
69de9f9ce2 Progress toward ripple pre restructuring forward. 2012-08-31 14:05:37 -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
657084f5b9 Rework applyTransaction to use new TERs. 2012-08-30 13:17:38 -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
1813e8365d Fix crash on txn against non-existent account. 2012-08-30 08:59:25 -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
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
d96070f083 Rename TransactionEngineResult to TER & work on ripple. 2012-08-29 11:58:34 -07:00
JoelKatz
e4f7ffe995 Some cleanups that should make Arthur happy. 2012-08-28 16:07:44 -07:00
Arthur Britto
354c33f71a Work toward ripple loop detection and offer deletion. 2012-08-28 13:27:54 -07:00
Arthur Britto
0d8ad928f6 Simplify clean up for takeOffers. 2012-08-27 13:20:47 -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
Arthur Britto
bb7f692a76 Rework transaction engine result codes. 2012-08-26 20:38:35 -07:00
Arthur Britto
3fd5e10390 More ripple engine fixes. 2012-08-25 18:03:05 -07:00
Arthur Britto
cf450106c4 Require issuer when specifying currency when creating STAmount. 2012-08-25 14:49:45 -07:00
Arthur Britto
ba45778a08 Fixes for ripple quality in transaction engine. 2012-08-24 20:18:07 -07:00
Arthur Britto
e6511732c7 Fix compiler warnings. 2012-08-23 22:31:14 -07:00
Arthur Britto
4bacf99977 Use issuer from send and send_max when building paths in transaction engine. 2012-08-23 16:23:56 -07:00
Arthur Britto
e4b8d874e7 Encode issuer in STAmount. Breaking protocol and db version change. 2012-08-23 14:55:03 -07:00
Arthur Britto
acb4502a04 Work toward rippling through offers. 2012-08-23 13:26:53 -07:00
Arthur Britto
cedb9d08fa Add Account field back to AccountRoot nodes. 2012-08-22 16:24:05 -07:00