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
588ef7df86
Speed up ledger acquiring.
2013-05-16 23:32:50 -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
85afb49058
Time fetches better.
2013-03-29 08:22:52 -07:00
JoelKatz
b9456c8fd7
Except when interacting with boost, use std::function and std::bind
...
when C++11 is available. See: http://stackoverflow.com/questions/14617835
2013-03-16 03:27:43 -07:00
JoelKatz
f222544048
Do the same thing for timer entry.
2013-03-15 22:50:26 -07:00
JoelKatz
e392366c63
Get ledger acquire work off the main thread and out of the master lock.
...
Prioritize ledger acquire work appripriately. This should help prevent the
server from becoming overly sluggish while acquiring ledgers. Still todo:
Finish all pending receive operations before sending out any data requests.
2013-03-15 22:34:55 -07:00
JoelKatz
52c378411d
If we start seeing acquire timeouts, don't start new acquires.
...
The link could be overloaded.
2013-02-20 13:30:57 -08:00
JoelKatz
1808454983
Use the new uptime code. Replace slow, non-monotonic 'time(NULL)' calls
...
with fast, almost-always-monotonic 'upTime()' calls.
2013-02-05 22:31:26 -08:00
JoelKatz
8afbc33706
Some LedgerAcquire improvements.
2013-01-14 02:12:30 -08:00
JoelKatz
cbeb6a50e8
LedgerAcquire::filterNodes wasn't following the right logic.
2013-01-12 08:34:36 -08:00
JoelKatz
955c5c3a9c
Bug fixes and performance improvements.
2013-01-11 16:40:37 -08:00
JoelKatz
d14d8cbf76
Helper functions.
2013-01-11 14:21:31 -08:00
JoelKatz
793843780c
Filter out redundant node queries.
2013-01-10 16:27:22 -08:00
JoelKatz
ce3ce7820b
Raise the re-acquire interval.
2013-01-10 08:46:02 -08:00
JoelKatz
7ed37066cf
Add some features to the KeyCache code so we can use it for ledger acquire failure tracking too.
2013-01-09 15:55:18 -08:00
JoelKatz
c74a1b89e3
By careful how many GetObjectByHash requests we send.
2013-01-09 03:08:00 -08:00
JoelKatz
ecc04b21f3
Be smarter about when we clean up ledger acquires.
2013-01-07 14:42:46 -08:00
JoelKatz
6624e31d5a
Clean up old acquires.
2013-01-07 08:57:20 -08:00
JoelKatz
63fd3818fb
Rather than counting PeerSet's, count LedgerAcquire's and TransactionAcquire's.
2013-01-06 17:32:25 -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
ee89904a00
Cleanup trigger.
2013-01-04 20:26:26 -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
d4f4d9bf78
Redesign the way the acquire timer is (re)set so that we won't have bugs
...
where we fail to arm it.
2013-01-03 21:25:40 -08:00
JoelKatz
5009d4c3b8
Cleanups.
2012-12-30 13:19:42 -08:00
JoelKatz
fa1db60011
Correctly check for acquire doneness.
2012-12-25 21:07:53 -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