JoelKatz
bc040e0b91
Root node is not always an inner node.
2012-10-15 04:12:20 -07:00
JoelKatz
83a2b0d884
Cleanups. Extra asserts.
2012-10-15 03:50:14 -07:00
JoelKatz
65395ea971
Add some sanity checks.
2012-10-15 03:48:45 -07:00
JoelKatz
1214be1f22
Remove some chatty debug.
2012-10-15 03:48:31 -07:00
JoelKatz
33017a35a8
Extra sanity checks.
2012-10-15 03:47:23 -07:00
JoelKatz
0309105948
Cleanup
2012-10-15 03:13:51 -07:00
JoelKatz
633cf60836
Remove unneeded debug
2012-10-15 03:13:42 -07:00
JoelKatz
357245b595
Fix a bug that would cause a write spinout.
2012-10-15 03:08:42 -07:00
JoelKatz
d273ac6e76
Fix a bug that could prevent a close time consensus from being recognized.
2012-10-15 03:04:56 -07:00
JoelKatz
db0d9447cd
Write out objects sooner so we're more likely to have them after a crash.
2012-10-15 00:46:08 -07:00
JoelKatz
3872cbbca0
Fix the dirty node tracking logic
2012-10-15 00:45:57 -07:00
JoelKatz
353bf532e4
Remove two FIXME's that have been fied.
2012-10-15 00:45:10 -07:00
JoelKatz
1c9573a972
Clean up the writer thread.
2012-10-14 23:26:32 -07:00
JoelKatz
ce24ae1ef9
Don't store the temp root node (that represents an empty map) to the db.
...
Improve fetchRoot logging.
2012-10-14 23:25:46 -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
9e84bb38a8
Add new 'isEmpty' function to find empty inner nodes.
2012-10-14 23:14:17 -07:00
JoelKatz
de5321e51c
Cleanups.
2012-10-14 23:03:23 -07:00
JoelKatz
b326852954
Return true from canonicalize even if we refreshed the data.
2012-10-14 22:40:48 -07:00
JoelKatz
573c601273
Extra debug
2012-10-14 21:33:03 -07:00
JoelKatz
032ce72d00
Improve logging. Walk the initial ledger.
2012-10-14 21:32:52 -07:00
JoelKatz
9f97307f99
Add 'walkMap' function.
2012-10-14 21:32:38 -07:00
JoelKatz
f286621d17
Add 'walkLedger' function.
2012-10-14 21:32:23 -07:00
JoelKatz
319c6fbe54
Output the hash of a node we can't find when we log it.
2012-10-14 21:32:04 -07:00
JoelKatz
5e44599456
Switch to new conditional logging.
2012-10-14 18:28:47 -07:00
JoelKatz
9ff0ab174b
Log warnings in various deserialization failure cases.
2012-10-14 18:28:01 -07:00
JoelKatz
879a763fe2
Cleanup.
2012-10-14 18:27:42 -07:00
JoelKatz
41e105eddd
Whitespace changes.
2012-10-14 18:27:26 -07:00
JoelKatz
50ce067d04
Whitespace changes.
2012-10-14 18:27:19 -07:00
JoelKatz
bd4ef3598b
Clean up saveAcceptedLedger. Add some warning logs. Add 'getSTransaction'.
2012-10-14 18:26:38 -07:00
JoelKatz
0e6ea3bb4a
Double check TMNEThread operations.
2012-10-14 18:25:50 -07:00
JoelKatz
58523b7c1b
Add 'get' functions to TMNEThread
2012-10-14 18:25:29 -07:00
JoelKatz
fbd8f9deb7
Change "id" to "hash",
2012-10-12 21:59:17 -07:00
Arthur Britto
1030d80e1f
Merge branch 'master' of github.com:jedmccaleb/NewCoin
2012-10-12 21:15:01 -07:00
Arthur Britto
7495fe70cc
WS: Clean up json responses and report engine submission results.
2012-10-12 21:14:04 -07:00
Arthur Britto
cc4bda6bf6
Cosmetic.
2012-10-12 21:12:05 -07:00
JoelKatz
730c6f3a52
Bugfix in STAmount::compare
2012-10-12 20:19:36 -07:00
JoelKatz
6fc5dc1189
Spelling error.
2012-10-12 20:19:28 -07:00
JoelKatz
08acbcd839
Fix the sense.
2012-10-12 19:58:41 -07:00
JoelKatz
bfee7a3082
I apologize for the disaster that was toUInt64. It has been nuked from orbit.
2012-10-12 18:24:32 -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
b2481f3c49
Rename the protocol from newcoin to ripple.
2012-10-12 15:53:59 -07:00
Arthur Britto
2af15db40a
Rename everything from newcoin to ripple except the protocol buffers.
2012-10-12 15:48:33 -07:00
Arthur Britto
237ff73916
Bump protocol version.
2012-10-12 15:12:56 -07:00
Arthur Britto
59ccfb315d
Change leading character for addresses from "i" to "r".
2012-10-12 15:09:22 -07:00
Arthur Britto
edabc770aa
Cosmetic.
2012-10-12 15:08:56 -07:00
JoelKatz
efbc4b3cbd
Merge branch 'master' of github.com:jedmccaleb/NewCoin
2012-10-12 09:22:41 -07:00
JoelKatz
ab01c7c4a7
I believe our comparisons were broken for STAmount, for example, 0 XNS would
...
compare greater than 1 XNS! For non-native currencies, -2 would be greater
than -1, which is wrong. This should fix it. We definitely need to make some
test cases. Arthur, please look over this code and make sure I didn't miss
something.
2012-10-12 09:21:29 -07:00
jed
8a22f5a8e8
Merge branch 'master' of github.com:jedmccaleb/NewCoin
...
Conflicts:
src/SHAMapNodes.cpp
2012-10-12 09:00:50 -07:00
jed
391ef2fb1f
.
2012-10-12 08:59:51 -07:00
JoelKatz
92f004c47f
A minimal, but serviceable, implemention of replying to TMGetObjectByHash queries.
2012-10-12 06:35:16 -07:00