JoelKatz
92409dd3fc
Add 'SHAMap::getPath' function to get a verifiable path through a SHAMap.
2012-10-18 09:18:46 -07:00
JoelKatz
67be1a8a55
This floods the log during testing.
2012-10-17 07:03:54 -07:00
JoelKatz
d9262e5cdb
Fix a backwards assert.
2012-10-16 13:56:23 -07:00
JoelKatz
6f23c44152
Fix a few cases where SHAMap nodes don't get correctly written.
...
When we fetch a node from the database, we artificially mark it "old" so modifications are saved.
New nodes are added to the dirty node tray if it is armed.
2012-10-16 11:48:49 -07:00
JoelKatz
bc040e0b91
Root node is not always an inner node.
2012-10-15 04:12:20 -07:00
JoelKatz
1214be1f22
Remove some chatty debug.
2012-10-15 03:48:31 -07:00
JoelKatz
633cf60836
Remove unneeded debug
2012-10-15 03:13:42 -07:00
JoelKatz
3872cbbca0
Fix the dirty node tracking logic
2012-10-15 00:45:57 -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
573c601273
Extra debug
2012-10-14 21:33:03 -07:00
JoelKatz
55e38c40f7
Cleanups.
2012-10-11 07:01:03 -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
4f1ebc2884
Put the missing node type in the SHAMapMissingNode exception.
2012-10-11 03:16:18 -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
30dd46d812
Improve SHAMapMissingNode
2012-10-11 02:50:04 -07:00
JoelKatz
6a229d918c
Start using log partitions.
2012-10-08 00:39:31 -07:00
JoelKatz
72b2478a7b
Rename SHAMap states.
2012-09-14 07:08:27 -07:00
JoelKatz
34dcb99370
New functions to pass tree node types to callers.
2012-09-13 01:29:04 -07:00
JoelKatz
d2336e3eea
Ledger functions to handle transaction metadata.
2012-09-12 18:40:16 -07:00
JoelKatz
9f8c1bdc7a
Cleanups.
2012-09-03 03:15:42 -07:00
JoelKatz
d5fe3261ab
Cleanups and simplfications.
2012-09-03 01:47:03 -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
d477172f65
Cleanups and whitespace fixes.
2012-08-09 19:20:53 -07:00
JoelKatz
8e89335e2b
Cleanups to the sha map node format code.
2012-08-07 19:52:09 -07:00
JoelKatz
2898860ac8
Cleanup.
2012-07-17 15:55:45 -07:00
JoelKatz
c637c01abc
Mark a FIXME for some cases this code mishandles. (I'll fix it shortly.)
2012-07-11 18:16:47 -07:00
JoelKatz
5f8f14d43b
Cleanups.
2012-07-05 22:51:47 -07:00
JoelKatz
00ab5ed0cf
Low-level support for transaction metadata.
2012-07-05 18:27:40 -07:00
JoelKatz
30d76c87a3
Don't crash if we're send a malicious map node from a peer.
2012-06-30 18:53:11 -07:00
JoelKatz
fa48a1fb09
Fix the retrieve ledger hash problem for real. Make partial ledger operations work.
...
Set base code for how thin servers will operate on partial ledgers.
2012-06-26 02:01:13 -07:00
JoelKatz
93ad67c240
Close SHAMap node security hole
...
Use new hash prefixes.
Use new wire/prefix formats.
Remove SHAMapException
2012-06-25 09:13:18 -07:00
JoelKatz
748461ddc2
Make the hashed object write code not block on an SQL write. Make bulk updates efficient.
2012-06-24 04:53:31 -07:00
JoelKatz
5c41a41e4b
Enforce some sanity on the HashedObject code.
2012-06-23 20:16:42 -07:00
JoelKatz
6182c4bb51
Make the dirty node save logic work during consensus ledger close.
2012-06-22 00:42:03 -07:00
JoelKatz
a46b43e3a5
Add a constructor
2012-06-18 12:49:02 -07:00
Arthur Britto
2866c6e46d
Add support for hashing uint160.
2012-06-13 15:49:35 -07:00
JoelKatz
bef64eaad5
Nicer nonce/hash code.
2012-06-04 06:14:23 -07:00
JoelKatz
2206ff3be6
Get rid of hash_SMN and instead extend boost::hash.
...
This makes the TaggedCache code cleaner.
2012-06-04 06:01:11 -07:00
JoelKatz
866ead228b
Rule out the SHAMap snapShot code as the cause of the duplicate Txn bug.
...
Add unit test for the SHAMap snapShot code.
Add some extra asserts for attempts to modify immutable maps.
2012-06-02 15:34:49 -07:00
JoelKatz
6cdf039c70
Back out the nonce workaround.
2012-06-01 21:01:23 -07:00
JoelKatz
be931912c6
Nonce code broke the unit test because theAPP is NULL
2012-06-01 20:33:34 -07:00
JoelKatz
346ab49d7a
Allow an update that leaves the node the same.
2012-06-01 14:08:29 -07:00
Arthur Britto
545ede1823
Merge branch 'pay'
...
Conflicts:
src/NetworkOPs.cpp
src/SHAMap.cpp
2012-06-01 01:23:19 -07:00
Arthur Britto
c13bf4d606
Use mNonce256 in SHAMap hashing.
2012-06-01 01:17:16 -07:00
JoelKatz
46bfa149d1
Bugfixes.
2012-05-31 21:22:38 -07:00
JoelKatz
18a9f12555
Chatty debug.
2012-05-31 21:13:16 -07:00
JoelKatz
83d8a347ee
Make SHAMapNode::ClassInit self-invoking.
2012-05-31 13:35:27 -07:00
JoelKatz
31a44088d6
Cleanups/bugfixes.
2012-05-31 02:40:51 -07:00
JoelKatz
64dc941bc6
Move unit test to new boost framework.
2012-05-31 02:03:17 -07:00
JoelKatz
d442534c70
Cleanups.
2012-05-26 15:11:10 -07:00