Commit Graph

51 Commits

Author SHA1 Message Date
Vinnie Falco
4e2be20f7a Unity fixes for Linux build 2013-05-27 13:14:13 -07:00
Vinnie Falco
b9aa8e0a84 Add ripple_basics unity build module 2013-05-27 13:14:08 -07:00
JoelKatz
5b741ac87c Revert "Merge branch 'master' of github.com:jedmccaleb/NewCoin"
This reverts commit 72e5078de7, reversing
changes made to cfc8f8c052.
2013-05-26 15:50:21 -07:00
JoelKatz
dd5e8d976b Merge branch 'develop' into faster_acquire 2013-05-24 10:06:29 -07:00
JoelKatz
327f20710c Fix. 2013-05-17 01:56:34 -07:00
JoelKatz
ff6e035e6e Bugfix. 2013-05-17 01:52:39 -07:00
JoelKatz
c2bea03886 Bug in previous commit. 2013-05-17 01:50:19 -07:00
JoelKatz
c0e046a721 Don't put a leaf node in a fetch pack just because it moved. 2013-05-17 01:46:39 -07:00
JoelKatz
588ef7df86 Speed up ledger acquiring. 2013-05-16 23:32:50 -07:00
JoelKatz
0932627eae Remove dead code. 2013-04-26 00:50:13 -07:00
JoelKatz
7f4d76808b Fixes and simplifications. 2013-04-26 00:11:44 -07:00
JoelKatz
c785bb3673 More fetch fixes. 2013-04-25 13:28:55 -07:00
JoelKatz
494202fbcf Ledger acquire improvements and I/O reductions. 2013-04-25 11:09:57 -07:00
JoelKatz
84087e62cb Smarter peer selection for acquires. 2013-04-23 06:48:42 -07:00
JoelKatz
98669bc073 Fix for c++03 2013-04-22 20:40:25 -07:00
JoelKatz
4b569c383a Make this work on C++03 as well. 2013-04-22 19:51:18 -07:00
JoelKatz
aeccecb578 ech pack stuff. 2013-04-22 11:09:07 -07:00
JoelKatz
94838b0db7 Fetch pack bugfixes. 2013-04-22 10:29:54 -07:00
JoelKatz
8a368204c1 Last part of the fetch pack code. 2013-04-22 06:56:11 -07:00
JoelKatz
0c7066944e Fetch pack scheme. Phase two. 2013-04-21 20:37:46 -07:00
JoelKatz
9c0a156c13 Off by one in hasNode 2013-04-21 17:21:23 -07:00
JoelKatz
f5425bbfeb Bug fixes to hasNode/getFetchPack. 2013-04-21 17:08:02 -07:00
JoelKatz
4b04f74289 This makes more sense. Fetch pack, phase one. 2013-04-21 16:22:13 -07:00
JoelKatz
a9cab289dd Remove broken logic from previous commit. I'll find a better way. 2013-04-21 14:26:04 -07:00
JoelKatz
79ec8e6070 First part of fetch acceleration changes. Includes a bugfix that I'll push to master. 2013-04-21 12:44:21 -07:00
JoelKatz
b993c6ee32 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 14:22:52 -07:00
JoelKatz
a56d284e4d Some cleanups. 2013-04-04 20:32:11 -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