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
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
651cee5738
Clean up ledger JSON output.
2012-08-30 10:44:21 -07:00
Arthur Britto
acb4502a04
Work toward rippling through offers.
2012-08-23 13:26:53 -07:00
jed
6694372af7
.
2012-08-20 17:01:53 -07:00
jed
1c5481bad7
forgot some functions
2012-08-20 11:53:43 -07:00
jed
3dc0646ed8
moved all Ledger:: functions to the same .cpp file
2012-08-20 09:51:10 -07:00
jed
336a1c27fc
Merge branch 'master' of github.com:jedmccaleb/NewCoin
...
Conflicts:
src/LedgerNode.cpp
2012-08-20 09:42:15 -07:00
jed
5484205b26
Merge branch 'master' of github.com:jedmccaleb/NewCoin
...
Conflicts:
src/RippleLines.cpp
2012-08-20 09:40:40 -07:00
JoelKatz
84ee39b147
Fix a few more cases where we create a new shared pointer just to
...
immediately throw it away, resulting in a wasted
allocate/increment/decrement/free.
2012-08-19 19:04:18 -07:00
JoelKatz
046c539d49
Mark a parameter as unused.
2012-08-14 01:51:35 -07:00