Miguel Freitas
37aa4f1827
rework locking in getinfo to fix deadlock
11 years ago
Miguel Freitas
78f3ceb921
reduce contention with mutex cs_twister
11 years ago
Miguel Freitas
fb0802449c
implement index of partial usernames so search-as-you-type can work as expected with listusernamespartial
11 years ago
Miguel Freitas
f4d6c2be28
getnumpieces rpc
11 years ago
Miguel Freitas
ba0b4c8613
avoid adding the same nodes to dht subsys all the time
11 years ago
Miguel Freitas
a2c87535c0
periodically save resume data. if daemon crashes we don't lose everything.
11 years ago
Miguel Freitas
6d7e895d7c
finer locking to fix another deadlock case
11 years ago
Miguel Freitas
57eeb6d73b
more hashtags separators and tolower
11 years ago
Miguel Freitas
c3bea0a3dd
If bitcoin network goes down, pause libtorrent to prevent pieces being falsely rejected because height > bestHeight.
...
Also, if bitcoin network is down, try to add nodes from DHT bucket tables back to the bitcoin network.
11 years ago
Miguel Freitas
26778c1ff1
fix another deadlock
11 years ago
Miguel Freitas
2c256b6edb
implement piece verification using old signatures. now i can reenable banning peers due to bad pieces.
11 years ago
Miguel Freitas
f81088be70
properly implement verification using keys that have been replaced.
...
the basic idea is replace txIndex key with a pair (username,height).
height = -1 for the most up-to-date key, otherwise height = last block where previous key was valid.
by checking maxHeight and iterating backwards we can easily find the key to validate data from any given block number.
11 years ago
Miguel Freitas
a4695ba9e1
delay libtorrent initialization until we have valid blocks
11 years ago
Miguel Freitas
22161a71ed
fix deadlock
11 years ago
Miguel Freitas
8286e4c78d
old debug printf
11 years ago
Miguel Freitas
2df6ff2420
persist spammsg to send and generate status
11 years ago
Miguel Freitas
3ac54ffbe9
don't start torrent for nonexistent users. (we will need something different for #hashtags)
11 years ago
Miguel Freitas
432535bd6d
fix listusernamespartial: search string must be shorter than username being compared (or equal). not longer.
11 years ago
Miguel Freitas
6ade53ce53
implement new rpc dumppubkey.
...
importprivkey now verifies if username exists in txdb
11 years ago
Miguel Freitas
549ba353dd
yet another ThreadMaintainDHTNodes heuristic improvement
11 years ago
Miguel Freitas
3c90b0a94c
rt also updates status
11 years ago
Miguel Freitas
dbc640faaa
implement exact match on username search
11 years ago
Miguel Freitas
d16d50313a
insert directmsgs into vector ordered by time
11 years ago
Miguel Freitas
2cd0b0a881
rescandirectmsgs: rescan all streams of users we follow for new and old directmessages
11 years ago
Miguel Freitas
d9c64c2076
another try at ThreadMaintainDHTNodes to fix the problem of adding useless dht nodes and forcing announcements all the time.
11 years ago
Miguel Freitas
a7f7b45976
remove test code
11 years ago
Miguel Freitas
1d78f7ec27
improve dht resource expiration policy (still not enabled)
11 years ago
Miguel Freitas
3e64454b7d
Save lastk field to post so torrent-less navigation through posts is possible. => DONE
11 years ago
Miguel Freitas
d14dca10e1
disable libtorrent read cache cause i've messed up something
11 years ago
Miguel Freitas
55b3f62872
fix previous commit: don't clear spammsg if it is not consumed.
11 years ago
Miguel Freitas
552b7b542d
persist some global config. now we implement a spam policy max 1 every 8 hours (not cumulative).
11 years ago
Miguel Freitas
6cb5364605
disable printf of dm's
11 years ago
Miguel Freitas
7e1726ba8c
implement expiring dht items (but it is not enabled yet)
11 years ago
Miguel Freitas
d17224516f
shorter rpc name: getlocaldirectmessages => getdirectmsgs
11 years ago
Miguel Freitas
f75fc11274
getlocaldirectmessages: get decrypted direct messages sent/received by user
11 years ago
Miguel Freitas
42e7254af1
remove encryptDecryptTest(). i know it works.
11 years ago
Miguel Freitas
19f5c3cc0e
-1 is not used anymore for max_id since it breaks "geting up to post 0"
11 years ago
Miguel Freitas
019da72568
rework initialization order a little, try to start torrents after dht comes up
11 years ago
Miguel Freitas
eab70b0466
force dht_announce on every torrent after adding dht nodes
11 years ago
Miguel Freitas
f1c58b9d2a
trying (once more) to improve ThreadMaintainDHTNodes (dht nodes from registration network nodes)
11 years ago
Miguel Freitas
56194d1eaf
dns seed
11 years ago
Miguel Freitas
e5b21d6810
fix dm store duplicate checking. i did it completely wrong before.
11 years ago
Miguel Freitas
34024136ae
tweaks. increase m_desired_queue_size, maybe 2 is too low due to rounding
...
number of pieces to the nearest multiple of 8. not sure.
11 years ago
Miguel Freitas
b803734915
prevent duplicates when adding dm to the list of decrypted messages (in memory) - untested
11 years ago
Miguel Freitas
22bf956f8a
printf typo
11 years ago
Miguel Freitas
9d1b5915f9
better error checking and variables names in user_data save/load
11 years ago
Miguel Freitas
4c33706c40
persist user_data (following and DMs)
11 years ago
Miguel Freitas
38def2e03c
minor fix to avoid confusion: seq is not k
11 years ago
Miguel Freitas
f4939a7874
create structure per local user to keep m_following and directmsgs
...
add proper mutexes to twister.cpp
11 years ago
Miguel Freitas
91ba50b836
try to decrypt DM in acceptSignedPost (it works!)
11 years ago