Commit Graph

53 Commits

Author SHA1 Message Date
JoelKatz
2d431cefd1 Cleanups. Remove extraneous reference count manipulations. 2012-10-08 00:01:23 -07:00
JoelKatz
b69a0b14bf Style change. 2012-09-14 08:42:39 -07:00
JoelKatz
72b2478a7b Rename SHAMap states. 2012-09-14 07:08:27 -07:00
JoelKatz
6c016039c2 Get rid of all "const SHAMap::pointer&" -> SHAMap::ref 2012-09-13 15:36:56 -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
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
4aea8c8dfb Use fat root semantics when acquire transaction sets. This might save a pass. 2012-08-13 17:11:15 -07:00
JoelKatz
8e89335e2b Cleanups to the sha map node format code. 2012-08-07 19:52:09 -07:00
JoelKatz
e97c4a7d8e Allow unordered_map's of uint160/uint256 to work without including SHAMap.h 2012-07-25 02:45:24 -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
00ab5ed0cf Low-level support for transaction metadata. 2012-07-05 18:27:40 -07:00
JoelKatz
c7eb0269c2 For now, detect clocks out of sync and disallow connection.
Improve speed of ledger synchronization by compressing all three base queries into one.
2012-06-30 22:17:53 -07:00
JoelKatz
0627ae22da A better fix. Take the format as a parameter in addRootNode. 2012-06-29 23:32:26 -07:00
JoelKatz
6a9b5ccd7d Support STN_ARF_UNKNOWN for contexts where the format of a node is not known. Format
is auto-detected.
2012-06-29 23:19:29 -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
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
0648779ccb Pass node IDs to the sync filter. 2012-06-04 07:23:56 -07:00
JoelKatz
0e7307200e First set of efficiency improvements. 2012-06-04 07:18:57 -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
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
Arthur Britto
e10505d2a7 Cosmetic changes. 2012-05-31 20:24:49 -07:00
JoelKatz
83d8a347ee Make SHAMapNode::ClassInit self-invoking. 2012-05-31 13:35:27 -07:00
JoelKatz
ad9deda4e8 Stupid Arthur and his stupid edge cases.
(Stupid because they expose bugs in *MY* code!)
2012-05-31 02:56:07 -07:00
JoelKatz
31a44088d6 Cleanups/bugfixes. 2012-05-31 02:40:51 -07:00
Arthur Britto
dad9568f4f Work toward big endian 2012-05-31 01:51:58 -07:00
Arthur Britto
61e075bff3 Eliminate dead code in uint256.h 2012-05-31 00:10:49 -07:00
JoelKatz
ef516698f2 Whitespace only. 2012-05-26 15:35:05 -07:00
JoelKatz
d442534c70 Cleanups. 2012-05-26 15:11:10 -07:00
JoelKatz
5c62f901bd Performance improvements. 2012-05-26 10:36:24 -07:00
JoelKatz
ac6f24c166 Use the new functions to simplify and speed up the SHAMapDiff code. 2012-05-23 19:31:58 -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
faaea1e332 Add virtual destructor. 2012-05-14 13:35:00 -07:00
Arthur Britto
18bf10a7c0 Merge branch 'master' of github.com:jedmccaleb/NewCoin 2012-05-07 18:39:32 -07:00
Arthur Britto
0492ea5877 Cosmetic SQL clean up. 2012-05-07 18:39:19 -07:00
JoelKatz
133ee09297 Updates. 2012-05-07 16:27:18 -07:00
JoelKatz
db0763e198 About half of the trusted path code. 2012-05-02 02:57:53 -07:00
JoelKatz
3a09455e6c Remove dead code. Change unit tests to compensate. 2012-04-23 15:58:05 -07:00
JoelKatz
271283b930 Update comments. 2012-04-19 03:45:15 -07:00