Commit Graph

20 Commits

Author SHA1 Message Date
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