Arthur Britto
249725b66b
Rename NewcoinAddress to RippleAddress.
2012-10-25 18:31:20 -07:00
JoelKatz
3b42e66c08
Teach BOOST_FOREAECH how to traverse this type.
2012-10-24 15:42:16 -07:00
JoelKatz
766bc8377f
Lots of small cleanups.
2012-10-22 11:49:17 -07:00
JoelKatz
25d888ff48
Include the transaction result in the metadata.
2012-10-16 14:36:36 -07:00
JoelKatz
19b518a0af
Quick fix for the bug that was causing ledgers to diverge.
...
LES used an unordered map, causing the traverse of modified ledger nodes to
be in random order. This meant different nodes would thread transactions
differently, causing ledger divergence. This change switches the LES code to
use a standard map. This adds more overhead to LES search functions (because
ordered map operations like search and insert are more expensive than
unordered map opreations, so it may be worth a separate ordering step just
for calcRawMeta instead.
2012-10-12 17:01:37 -07:00
Arthur Britto
5b1ac0b1e5
Add transfer support to offer taking.
2012-10-03 14:44:59 -07:00
JoelKatz
2446db0bbe
More serialization work.
2012-09-25 19:27:09 -07:00
JoelKatz
02b3bcb089
Put the threading in the correct owner node for unthreaded nodes.
...
Add some additional debug to threading.
2012-09-20 00:15:48 -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
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
02bd898e51
Some const-correctness.
...
const SLE::pointer & -> SLE::ref
2012-08-31 18:26:45 -07:00
JoelKatz
9ef0a5491b
Use "Ledger::ref" instead of "const Ledger::pointer&".
2012-08-31 18:11:41 -07:00
JoelKatz
9148127083
Fix threading.
2012-08-27 03:04:33 -07:00
JoelKatz
4633aa019c
Mid-level threading code.
2012-08-24 09:35:35 -07:00
JoelKatz
e00426a3be
Finalizing of metadata building.
2012-08-22 14:56:01 -07:00
JoelKatz
abf41dd4de
Fix a large number of cases where we copy construct a shared_ptr just to destroy it.
2012-08-15 04:01:22 -07:00
Arthur Britto
872314f933
Remove more Account from AccountStateNode and LedgerEntrySet revision.
2012-08-14 17:17:28 -07:00
Arthur Britto
2f3f51b0ee
Merge branch 'master' into ripple
...
Conflicts:
src/LedgerEntrySet.cpp
2012-08-10 13:15:34 -07:00
JoelKatz
e3c77d2c0c
More LedgerEntrySet code. Retrieve as Json. Finalize before serializing.
2012-08-09 19:21:08 -07:00
Arthur Britto
db8775729f
Merge branch 'master' into ripple
2012-08-01 14:34:24 -07:00
Arthur Britto
4f8ada17c7
Work towards ripple.
2012-07-28 17:38:37 -07:00
JoelKatz
1167ba2cc0
Set up for ledger diffs to populate the metadata.
...
Special case for unfunded offers -- need to know how much was taken before deletion
2012-07-28 14:49:34 -07:00
JoelKatz
ce2e1cea33
Beging merging transaction metadata code with ledger entry set code.
2012-07-27 12:56:28 -07:00
JoelKatz
ad77087ee5
Remove some unneeded reference count bumps.
2012-07-26 16:38:42 -07:00
Arthur Britto
8e4ead4b62
Merge branch 'master' of github.com:jedmccaleb/NewCoin
...
Conflicts:
src/LedgerEntrySet.h
2012-07-26 12:51:59 -07:00
Arthur Britto
e2dd0b1fb2
Cosmetic.
2012-07-26 12:50:50 -07:00
JoelKatz
5fa4bad9b5
Switch to the new LedgerEntrySet code. This provides more sophisticated checkpointing and rewinding.
2012-07-26 04:07:37 -07:00
JoelKatz
de6ef42baf
Complete the basic API for LedgerEntrySet's.
2012-07-25 04:01:42 -07:00
JoelKatz
40c4d686fb
LedgerEntrySet work.
2012-07-25 02:46:19 -07:00
JoelKatz
39ed76a8ff
This should be the API Arthur needs.
2012-07-25 01:49:58 -07:00