Denis Ryabov
1945adaddf
check for empty response
2014-07-08 15:00:58 +04:00
Denis Ryabov
066435719d
limit refreshes per tick to refresh_per_tick_limit=20, fix boost::ref(item)
2014-07-08 13:56:42 +04:00
Denis Ryabov
61b057175f
wait 1 minute before start refreshing
2014-07-08 13:16:30 +04:00
Denis Ryabov
43c84cae6c
fix logic
2014-07-08 13:03:08 +04:00
Denis Ryabov
3b0294497b
now it works
2014-07-08 12:54:36 +04:00
Denis Ryabov
dc275c0b29
fix saving of dht item
2014-07-08 01:44:27 +04:00
Denis Ryabov
8429d95dba
suggestion for DHT refresh
2014-07-08 01:37:34 +04:00
Denis Ryabov
6c4c656be4
faster DHT refresh
2014-07-05 16:13:41 +04:00
Miguel Freitas
068a43211a
less verbose by default
2014-06-25 19:23:29 -03:00
Miguel Freitas
0bd6bc4807
remove deprecated putData function from libtorrent
2014-06-25 18:42:33 -03:00
Miguel Freitas
5af649a58a
add consistency checks to node_impl::putDataSigned and a flag to mean that locally generated content should be kept for periodic refresh.
2014-06-25 17:47:44 -03:00
Miguel Freitas
7651134016
move dhtput signing to outside libtorrent.
...
old function (ses->dht_putData) is likely to be removed, i can't think of any use for it right now.
2014-06-25 16:28:50 -03:00
Miguel Freitas
2be53fe95a
keep track of dht_storage_item which have been locally added.
...
for now this is used to make sure all kinds of resources (including rts and replies)
will have a forced refresh for at least two days.
2014-04-06 17:01:39 -03:00
Miguel Freitas
ad83ba061c
store dhtput data locally so it will be refreshed like the other dht entries we maintain.
...
should help with missing DHT entries (issue #165 ), although i think #165 would benefit of a more agressive (faster) retrying of remote stores.
2014-04-05 23:59:44 -03:00
Miguel Freitas
6d128d1ac4
increase tolerance for possiblyNeighbor check to reduce occurence of putData "ignoring request"
2014-03-07 12:03:21 -03:00
Miguel Freitas
8543127654
getspamposts rpc
2014-02-16 15:27:06 -03:00
Miguel Freitas
672b56a865
experimental top trending hashtags
2014-02-15 20:41:54 -02:00
Miguel Freitas
acbd61e93d
optimization. should *greatly* reduce cpu usage. #136
2014-01-30 19:29:40 -02:00
Miguel Freitas
a9f53cce98
trying to reduce the occurrences of "INCOMING ERROR: height > getBestHeight"
2014-01-27 20:10:32 -02:00
toyg
4ec3817120
printf call expects long int
2014-01-16 01:36:26 +00:00
Miguel Freitas
25128d93dd
refresh mention resource in dht
2014-01-15 14:00:39 -02:00
Miguel Freitas
60db413630
less noisy
2013-12-30 12:14:03 -02:00
Miguel Freitas
8dbae988ec
dont expire dht items if block chain is invalid
2013-12-03 18:35:28 -02:00
Miguel Freitas
5b71538165
Merge
2013-11-06 11:54:12 -02:00
Miguel Freitas
54dc49c191
enable expiration of dht items
2013-11-06 11:53:48 -02:00
Miguel Freitas
8ec4b3e16e
i can't get this conversion from time_duration to string right. i give up.
2013-11-06 09:21:01 -02:00
Miguel Freitas
b7fb1f3d3c
strange android/boost compilation fix
2013-11-05 23:25:47 -02:00
Miguel Freitas
658ed6054a
export number of known torrent peers (list_peers) to the dht tracker resource and use it
...
as estimative to the number of followers. at least we get the number of *online* followers.
2013-11-05 22:54:53 -02:00
Miguel Freitas
cd4147d772
increase refresh_storage sleep when zero refreshable items
2013-11-05 14:07:58 -02:00
Miguel Freitas
a4695ba9e1
delay libtorrent initialization until we have valid blocks
2013-11-04 19:55:59 -02:00
Miguel Freitas
80f23d56e8
change "values" to "data" in getData to differentiate from tracker values (which are not authenticated/signed)
2013-11-04 16:19:43 -02:00
Miguel Freitas
5a9613297a
dht storage refresh is spread over time to avoid bursts of putData
2013-11-04 15:56:29 -02:00
Miguel Freitas
624b5f8b49
improved debugging of get/put dht keys
2013-10-28 19:03:10 -02:00
Miguel Freitas
0150dd2f7b
support to disable loading/refreshing of expired dht keys
2013-10-22 18:32:04 -02:00
Miguel Freitas
7e1726ba8c
implement expiring dht items (but it is not enabled yet)
2013-10-18 12:08:54 -03:00
Miguel Freitas
38def2e03c
minor fix to avoid confusion: seq is not k
2013-10-08 15:48:08 -03:00
Miguel Freitas
47292c424e
Merge branch 'master' of ssh://pitanga//home/miguel/softs/twister
2013-10-07 21:33:23 -03:00
Miguel Freitas
b4322a61bc
persist dht keys to disk
2013-10-07 17:31:00 -03:00
Miguel Freitas
cb7f080b75
less noisy. disable some dht announce and already connected messages
2013-10-06 23:02:30 -03:00
Miguel Freitas
7a72e63372
fix problem with dhtput > 2kb (for avatar)
2013-10-05 21:59:00 -03:00
Miguel Freitas
d1ec27e01a
dont trust getBestHeight == 0
2013-10-01 17:54:39 -03:00
Miguel Freitas
cbb5a524ce
is_unspecified() is not always available. never mind.
2013-09-19 16:42:31 -03:00
Miguel Freitas
cefb94e321
allow bitfield with different number of pieces
2013-09-17 07:24:27 -03:00
miguel
1bae0176f5
implement refreshing dht storage every hour
2013-08-30 20:25:23 -03:00
miguel
f01cca3d48
logic to refresh dht storage (only single itens). only printf for now.
2013-08-30 17:43:52 -03:00
miguel
4f51727c1b
use bitcoin network time reference, dm creation draft
2013-08-18 22:01:36 -03:00
Miguel Freitas
7af7927f5d
some more debuging to make sure new dht announce x torrent peers is working
2013-08-11 21:45:45 -03:00
Miguel Freitas
662c5fa833
big announce / getPeers change
...
1) getPeers is obsolete, peers are obtained from getData with r="tracker", t="m"
2) announce api of node.cpp is used to update our own memory table (of the tracker)
3) announce api of node.cpp only do getDate/announce to the network if peer is the local one
4) announcement rpc (to the network) might be removed in future (not sure)
2013-08-09 21:34:00 -03:00
Miguel Freitas
6af8185112
remove mutable/imutable stuff
2013-08-09 17:11:59 -03:00
Miguel Freitas
425c355b72
maintain list of multivalued dht items ordered (newer first) by height. discard the last when size exceeds.
2013-08-09 15:27:01 -03:00