Commit Graph

996 Commits

Author SHA1 Message Date
JoelKatz
607e2039e2 Add negative caching for HashedObject class. This massively reduces
contention for the database lock under high network ledger fetch load.
2013-01-08 14:50:03 -08:00
JoelKatz
fbac342e2e One more. 2013-01-08 14:12:45 -08:00
JoelKatz
8e5ce2dd4c More debug. 2013-01-08 14:10:49 -08:00
JoelKatz
120e758f01 More reasonable. 2013-01-08 02:03:29 -08:00
JoelKatz
df1f3a66d5 Log message less imortant. 2013-01-08 02:02:51 -08:00
JoelKatz
c0a64f672c Demote a non-serious log that sounds like an error. 2013-01-08 02:00:54 -08:00
JoelKatz
59c91d0413 Typo. 2013-01-08 01:54:29 -08:00
JoelKatz
0229a89445 Get the logic right. 2013-01-08 01:53:47 -08:00
JoelKatz
96eac78174 To be a recent failure, a failure must be recent. 2013-01-08 01:47:09 -08:00
JoelKatz
5eeef9d3fd Accelerated aging for special occasions. 2013-01-08 01:33:40 -08:00
JoelKatz
79c3f777aa Memory fixes. 2013-01-08 01:14:55 -08:00
JoelKatz
2626368b26 Remove chatty log. 2013-01-08 01:00:48 -08:00
JoelKatz
2a657a33c9 Make sure we leave need network ledger mode. 2013-01-08 00:41:07 -08:00
JoelKatz
69ac139485 Reduce log spew. 2013-01-08 00:36:13 -08:00
JoelKatz
e34dafa839 Log some additional info. 2013-01-08 00:32:54 -08:00
JoelKatz
fc1dc50afc Ledger load fixes.
Quick and dirty check for filesystme space.
2013-01-07 23:57:06 -08:00
JoelKatz
cc2588aba2 Make it possible to start from a specific chosen ledger. 2013-01-07 23:47:39 -08:00
JoelKatz
7a2f098ac4 Reduce some chatty logging. 2013-01-07 23:47:21 -08:00
JoelKatz
69f42e6f02 Fix a bug that causes excessive GetObjByHash queries. 2013-01-07 22:47:16 -08:00
JoelKatz
c2a4cc8321 Get rid of transaction acquire entries ASAP. 2013-01-07 14:44:18 -08:00
JoelKatz
ecc04b21f3 Be smarter about when we clean up ledger acquires. 2013-01-07 14:42:46 -08:00
JoelKatz
ba79026185 Handle pongs. Ready timer for ping timing. 2013-01-07 14:34:11 -08:00
JoelKatz
c4a3f57d9c Respond to server pings with pongs. (Pings are currently not sent.) 2013-01-07 10:22:26 -08:00
JoelKatz
ef2f653473 Set the accept flag for acquires triggered by the publish logic. 2013-01-07 09:01:31 -08:00
JoelKatz
2b479a66c1 Don't immediately retry a failed acquire. 2013-01-07 08:57:41 -08:00
JoelKatz
6624e31d5a Clean up old acquires. 2013-01-07 08:57:20 -08:00
JoelKatz
e9fad1a431 Make the target size more useful. Add visitor functions. 2013-01-07 08:47:53 -08:00
JoelKatz
265218a936 Merge branch 'master' of github.com:jedmccaleb/NewCoin 2013-01-07 01:33:47 -08:00
JoelKatz
f493ea6478 Be more aggressive about avoiding publishing ledger holes. Make the logic simpler and more sensible. 2013-01-07 01:33:14 -08:00
Arthur Britto
926bc743d2 Merge branch 'master' of github.com:jedmccaleb/NewCoin 2013-01-06 17:50:50 -08:00
Arthur Britto
aad57519ae Improve pathfinding, don't explore obviously dry paths. 2013-01-06 17:50:09 -08:00
JoelKatz
63fd3818fb Rather than counting PeerSet's, count LedgerAcquire's and TransactionAcquire's. 2013-01-06 17:32:25 -08:00
JoelKatz
cf77fd88f9 Mark a FIXME. 2013-01-06 17:32:10 -08:00
Arthur Britto
642b782900 Fix comment. 2013-01-06 11:35:45 -08:00
Arthur Britto
4961fde6d7 Mark more code as unneeded. 2013-01-06 11:32:24 -08:00
Arthur Britto
a40fbdb832 Update DEFAULT_PEER_SCAN_INTERVAL_MIN for production use. 2013-01-06 11:29:52 -08:00
Arthur Britto
5114790700 Make unneeded code a compilation option. 2013-01-06 02:15:46 -08:00
Arthur Britto
8877501e5b Remove db->escape in favor of sqlEscape. 2013-01-06 02:08:54 -08:00
Arthur Britto
04c17ac1f3 Work toward subscribe accounts by ledger index. 2013-01-05 16:51:45 -08:00
JoelKatz
dfbd640f6c Complete the fetch by hash logic, including tracking the hashes we want. 2013-01-04 22:14:53 -08:00
JoelKatz
cb6f73cc89 Some cleanups and some additional code (currently disabled) toward acquire by pure hash. 2013-01-04 20:58:07 -08:00
JoelKatz
f666003977 TMGetObjectByHash needs to know the object type. 2013-01-04 20:42:31 -08:00
JoelKatz
58587d9406 Merge branch 'master' of github.com:jedmccaleb/NewCoin 2013-01-04 20:26:47 -08:00
JoelKatz
ee89904a00 Cleanup trigger. 2013-01-04 20:26:26 -08:00
Arthur Britto
7b28fcee7c Merge branch 'master' of github.com:jedmccaleb/NewCoin 2013-01-04 16:02:08 -08:00
Arthur Britto
dfd3994921 Add config option [database_path]. 2013-01-04 16:01:55 -08:00
JoelKatz
217573599d Be more aggressive in finding ledgers that other nodes want. 2013-01-04 15:50:16 -08:00
JoelKatz
d998feb13c Don't start a publish thread if there's nothing to publish. 2013-01-04 15:23:03 -08:00
JoelKatz
d57b5a9797 Track failed acquires. Fix a case where an acquire both succeeds and fails. 2013-01-04 15:21: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