Commit Graph

55 Commits

Author SHA1 Message Date
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
JoelKatz
b47a7c0f52 Missing from previous commit. 2012-05-26 10:45:58 -07:00
JoelKatz
5c62f901bd Performance improvements. 2012-05-26 10:36:24 -07:00
JoelKatz
f29a003952 Improve read-only SHAMap functions by avoiding taking shared references
to intermediary nodes.
2012-05-23 19:24:43 -07:00
JoelKatz
13a9e774c6 Rather than working around using SHAMap::hasItem so much, let's just make it efficient. 2012-05-23 19:18:59 -07:00
JoelKatz
fecf3aaac9 Snapshot function. 2012-05-23 15:18:17 -07:00
JoelKatz
45b230c06b Cleanups. 2012-05-17 23:54:09 -07:00
JoelKatz
f030dc2ca1 Bugfix. 2012-05-15 19:12:48 -07:00
JoelKatz
98d2733706 Cosmetic changes. 2012-05-15 18:20:07 -07:00
JoelKatz
4ad3532037 Cosmetic changes. 2012-05-15 18:13:59 -07:00
JoelKatz
169da7d5e8 Cosmetic changes. 2012-05-15 18:10:44 -07:00
JoelKatz
0efeedffdc Cleanups. 2012-05-15 17:37:57 -07:00
jed
d34a274daf Merge branch 'master' of github.com:jedmccaleb/NewCoin
Conflicts:
	src/main.cpp
2012-05-15 16:58:21 -07:00
Arthur Britto
0b5a5e710e Fix tag check in SHAMap. 2012-05-15 16:18:23 -07:00
jed
fec2aeb579 windows 2012-05-15 16:16:44 -07:00
JoelKatz
71b61a633d Bugfix. In edge cases (such as a tree no inner nodes), walkTo could return
a node that shouldn't be returned.
2012-05-08 19:52:57 -07:00
Arthur Britto
18bf10a7c0 Merge branch 'master' of github.com:jedmccaleb/NewCoin 2012-05-07 18:39:32 -07:00