Commit Graph

31 Commits

Author SHA1 Message Date
JoelKatz
09b6c7cc61 I/O reduction. Rewrite SHAMap::addKnownNode 2013-04-25 11:14:24 -07:00
JoelKatz
06eb2ab872 Fix for c++03 2013-04-22 20:44:06 -07:00
JoelKatz
38d54dcdc6 Make this work on C++03 as well. 2013-04-22 19:51:31 -07:00
JoelKatz
455595891b Merge code to advertise and generate fetch packs. 2013-04-22 14:18:45 -07:00
JoelKatz
b573b1915b Map sync bugfix - wrong hash caused 'fullBelow' optimization to fail. 2013-04-21 12:49:27 -07:00
JoelKatz
bad215d607 Cache the hashes of nodes known to be full below.
Remove the TNByID entries for those nodes in state trees.
This reduces the memory and I/O neded during ledger fetching and prevents
ledger fetching from crushing other caches.
2013-04-19 15:00:36 -07:00
JoelKatz
b052975790 Manual fixes. 2013-04-11 14:40:13 -07:00
JoelKatz
edf019c0dd Avoid some unnecessary work. 2013-03-27 11:09:00 -07:00
JoelKatz
5bc7e36df5 Fix the fix. 2013-03-18 21:22:54 -07:00
JoelKatz
1fdf27ca72 Fix bug that causes ledger synching take much more CPU and memory than it should. 2013-03-18 21:18:07 -07:00
JoelKatz
ed871e6bc2 Some asserts to catch some possible causes of the SHAMap destructor crash. 2013-03-09 17:13:59 -08:00
JoelKatz
366313a3e4 Always add a hash when we add an ID. 2013-03-09 11:13:34 -08:00
JoelKatz
0e4b1e00a7 Crud, previous fix was incorrect. 2013-03-06 16:17:50 -08:00
JoelKatz
646f7ca5de Fix a bug that can cause a crash if a peer requests an empty node. 2013-03-06 15:57:49 -08:00
JoelKatz
261168d512 Quiet noisy logging. 2013-02-22 01:36:31 -08:00
JoelKatz
3f05907f23 Fix one-liner. 2013-02-11 02:34:17 -08:00
JoelKatz
e674bcea36 A collection of small bugfixes. 2013-02-08 16:22:27 -08:00
JoelKatz
0055122176 Make sure it's safe to modify acquired ledgers. 2013-01-17 21:08:02 -08:00
JoelKatz
bdd953076a Avoid a needless allocate/copy/free in addRootNode. 2013-01-15 10:21:16 -08:00
JoelKatz
d9ab92e88e Cleanup. 2013-01-09 11:06:07 -08:00
JoelKatz
07634b5168 This is probably what was causing all the trouble. 2013-01-09 10:29:34 -08:00
JoelKatz
e714a16b95 Optimizations. 2013-01-09 07:14:07 -08:00
JoelKatz
3712f0f2cb Remove a lot of unneeded hashing. 2013-01-08 15:33:13 -08:00
JoelKatz
c0a64f672c Demote a non-serious log that sounds like an error. 2013-01-08 02:00:54 -08:00
JoelKatz
f666003977 TMGetObjectByHash needs to know the object type. 2013-01-04 20:42:31 -08:00
JoelKatz
bb6b72fea4 Make a "getNeededHashes" function to get the hashes we need to fill in a ledger hole. 2013-01-04 15:21:02 -08:00
JoelKatz
2897bd00c2 Make 'getNodeFat' throw an exception if a node that's not in the map is requested.
Log the context when this exception is thrown.
2012-12-24 19:08:57 -08:00
JoelKatz
ebf3342773 Remove an assert. 2012-12-24 18:51:12 -08:00
JoelKatz
520ad29387 Fix compilation errors/warnings. 2012-11-22 12:24:54 -08:00
JoelKatz
89d54999c9 Rework the way the results of ledger and TX map acquisition is passed up and down the
call chain so that the peer logic will know how helpful peers are being, not just whether
they're sending invalid data.
2012-11-21 09:28:09 -08:00
Stefan Thomas
fa3fab5816 Moved cpp code to src/cpp and js code to src/js. 2012-11-07 12:49:50 -08:00