Commit Graph

140 Commits

Author SHA1 Message Date
JoelKatz
6394ca2341 x = y::pointer() -> x.reset() 2012-11-02 09:00:29 -07:00
JoelKatz
40dc8e15c5 Begin using the new code. 2012-10-31 20:36:41 -07:00
JoelKatz
f0eb8e7943 Add instance counts to core classes. 2012-10-31 15:50:14 -07:00
JoelKatz
7cd8be5b2b Ledger hash skip list basic support. 2012-10-29 12:55:52 -07:00
JoelKatz
0db9fc865c Some performance tweaks. 2012-10-28 21:05:07 -07:00
JoelKatz
851d21a5aa Don't allow an unlimited amount of work to build up for the ledger accept engine. 2012-10-28 19:36:02 -07:00
JoelKatz
b00b7c3946 Reduce log chattiness. 2012-10-28 18:37:07 -07:00
JoelKatz
e32ca702b4 Cleanups and small improvements. 2012-10-27 19:29:29 -07:00
JoelKatz
6d9ddde39c Work on complete ledger history code. 2012-10-26 15:24:38 -07:00
Arthur Britto
249725b66b Rename NewcoinAddress to RippleAddress. 2012-10-25 18:31:20 -07:00
JoelKatz
ef40099649 Major updates to the ledger tracking system. 2012-10-25 01:50:07 -07:00
JoelKatz
1cc42517da Improve debugability. 2012-10-24 12:57:00 -07:00
JoelKatz
23263c9a21 Ledger::getLastFullLedger shouldn't throw. 2012-10-24 12:13:18 -07:00
JoelKatz
853136b2a5 Trigger the history acquire code under the correct conditions.
Advance the "last full ledger" tracking correctly.
2012-10-24 11:17:00 -07:00
JoelKatz
0ac4185ff9 Update to support accepting ledgers acquired during the history fill. 2012-10-24 07:26:05 -07:00
JoelKatz
8705d0258d Add a "full history" mode that causes the node to try to keep full history
going back to the genesis ledger. Not fully implemented yet.
2012-10-22 10:31:07 -07:00
JoelKatz
305b037f59 Don't allow a SerializerIterator to bind to a temporary Serializer. This was causing a bunch
of deserialization bugs.
2012-10-17 06:07:18 -07:00
JoelKatz
a9447fdfd1 Use new metadata code. 2012-10-16 13:56:13 -07:00
JoelKatz
09f3b5db54 Rework how dirty SHAMap nodes are flushed to disk. The existing code had a bug that could cause
nodes to be modified before they were written to disk.
2012-10-16 11:16:07 -07:00
JoelKatz
afe016415e Ensure all dirty SHA nodes are fully written before writing the ledger header.
To avoid a performance penalty, write accountstate nodes while we're waiting.
2012-10-16 06:53:06 -07:00
JoelKatz
599ebe3c61 Write ledger dirty SHA nodes before ledger header. 2012-10-16 06:43:34 -07:00
JoelKatz
b9ec8e2add Slight logging improvements. 2012-10-15 08:56:15 -07:00
JoelKatz
a145bf2d36 Extra sanity checks. 2012-10-15 04:13:15 -07:00
JoelKatz
83a2b0d884 Cleanups. Extra asserts. 2012-10-15 03:50:14 -07:00
JoelKatz
353bf532e4 Remove two FIXME's that have been fied. 2012-10-15 00:45:10 -07:00
JoelKatz
1005313ed8 Make sure to write the root node of the genesis ledger to the database. 2012-10-14 23:25:15 -07:00
JoelKatz
f286621d17 Add 'walkLedger' function. 2012-10-14 21:32:23 -07:00
JoelKatz
bd4ef3598b Clean up saveAcceptedLedger. Add some warning logs. Add 'getSTransaction'. 2012-10-14 18:26:38 -07:00
Arthur Britto
2af15db40a Rename everything from newcoin to ripple except the protocol buffers. 2012-10-12 15:48:33 -07:00
JoelKatz
ac8e2292cf Add a comment. 2012-10-11 07:03:14 -07:00
JoelKatz
37f246396f Try to populate the ledger root. 2012-10-11 07:02:25 -07:00
JoelKatz
07cd8ad9bd Some extra debug on the dirty node flush code. It appears good. 2012-10-11 06:04:06 -07:00
JoelKatz
61c9d30732 Set up to fix the bug Jed reported and also support faulting in nodes under ledgers. 2012-10-11 05:13:29 -07:00
JoelKatz
67477beecb Track the type of map in the SHAMap. This will make it easier to parse missing nodes
at ledger level.
2012-10-11 03:13:28 -07:00
JoelKatz
7fba10da4e Create a new open ledger based on the last closed ledger from the DB.
Ledgers loaded from DB are always immutable.
2012-10-09 11:09:02 -07:00
jed
8b5114a23e Merge branch 'master' of github.com:jedmccaleb/NewCoin
Conflicts:
	src/Application.cpp
2012-10-09 03:05:21 -07:00
jed
573865cb23 allow you to load old ledger 2012-10-09 03:01:32 -07:00
JoelKatz
31a6177da0 More logging improvements. 2012-10-08 07:14:36 -07:00
JoelKatz
e04b695434 Burninate "Value" in "*ValueField*" functions. It was just pointless extra typing.
What else would you set/get in a field, by name, other than its value?
2012-10-01 15:35:30 -07:00
JoelKatz
79c35f2689 Remove all IField/ITField functions. They are now obsolete.
Use the correponding STObject functions.
2012-10-01 15:21:22 -07:00
MJK
5b94396890 Move around to256 to uint256.h, get rid of Conversion.cpp,h 2012-09-27 17:01:27 -07:00
Arthur Britto
f3f116117a Make genesis ledger 1. 2012-09-26 15:01:21 -07:00
JoelKatz
8c354f46b7 Fix the bug Jed reported. 2012-09-19 23:41:06 -07:00
JoelKatz
66338e4a0a Add metadata to some JSON outputs. 2012-09-13 01:29:27 -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
30cd0e197d Remove dead code that's in my way. 2012-09-12 09:18:03 -07:00
Arthur Britto
fe6c5d2b60 Comment out bad assert. 2012-09-08 15:36:23 -07:00
JoelKatz
63921c9757 Cleanups and fixes. 2012-09-07 22:21:07 -07:00
JoelKatz
390e628f10 Cmall cleanups and fixes. 2012-09-07 15:06:25 -07:00