Commit Graph

108 Commits

Author SHA1 Message Date
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
390e628f10 Cmall cleanups and fixes. 2012-09-07 15:06: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
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
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
74392e5929 Provide seperate ledger entry to state to ripple reverse. 2012-09-03 14:28:45 -07:00
Arthur Britto
61831eaa3c Obsolete redeem and issue flag support from ripple paths. 2012-09-03 13:57:01 -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
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
56b1939f43 Extra safety. 2012-08-30 09:19:05 -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
7967b4ec11 Improve error handling for transaction engine path creation. 2012-08-29 12:38:24 -07:00
Arthur Britto
d96070f083 Rename TransactionEngineResult to TER & work on ripple. 2012-08-29 11:58:34 -07:00
Arthur Britto
354c33f71a Work toward ripple loop detection and offer deletion. 2012-08-28 13:27:54 -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
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
4bacf99977 Use issuer from send and send_max when building paths in transaction engine. 2012-08-23 16:23:56 -07:00
Arthur Britto
df351a40e0 Merge branch 'ripple' 2012-08-19 21:37:22 -07:00
Arthur Britto
7e30db94b4 Work on ripple paths. 2012-08-19 21:36:25 -07:00
JoelKatz
c036188c3c Some more cleanups. 2012-08-19 21:01:36 -07:00
Arthur Britto
d5734cd6ce Merge ripple dirs with owner dirs and RPC fixes for setting quality. 2012-08-18 12:41:58 -07:00
Arthur Britto
12c34a4b75 Merge branch 'ripple' 2012-08-17 17:12:47 -07:00
Arthur Britto
99d1451c29 Fixes for direct ripple with quality to work. 2012-08-17 17:11:13 -07:00
Arthur Britto
9c66ae8ef0 Fixes for ripple path expansion. 2012-08-16 14:06:06 -07:00
JoelKatz
916cdf5279 Remove mOrigNodes. 2012-08-15 15:33:03 -07:00
Arthur Britto
f4714736cb Fixes for path checkpointing and expansion. 2012-08-15 14:59:55 -07:00
Arthur Britto
8ef27615dc Add getJson to PathState. 2012-08-14 18:18:15 -07:00
Arthur Britto
872314f933 Remove more Account from AccountStateNode and LedgerEntrySet revision. 2012-08-14 17:17:28 -07:00
Arthur Britto
5ddbf968bf Remove Account field from AccountRootNode. 2012-08-14 15:50:35 -07:00
Arthur Britto
07f5bf2612 Enforce SendMax restrictions in transaction engine. 2012-08-14 13:31:46 -07:00
Arthur Britto
11f02ba798 Ignore create flag on payments if account already created. 2012-08-14 13:17:59 -07:00
Arthur Britto
622066f7e3 Work towards ripple backend. 2012-08-10 12:58:59 -07:00
Arthur Britto
1a6a6231cc Add path expansion to transaction engine. 2012-08-03 14:57:52 -07:00
Arthur Britto
42bd29c212 Work towards ripple. 2012-08-02 19:16:24 -07:00
Arthur Britto
db8775729f Merge branch 'master' into ripple 2012-08-01 14:34:24 -07:00
Arthur Britto
794fe66008 Work towards ripple. 2012-08-01 12:44:22 -07:00
Arthur Britto
4f8ada17c7 Work towards ripple. 2012-07-28 17:38:37 -07:00