Commit Graph

3228 Commits

Author SHA1 Message Date
Miguel Freitas
851b69f2fa hack to support bootstraping with non standard ports using dns seeder 2015-08-01 16:42:29 -03:00
erqan
2ad8f98bc3 on search method: value is type str, expected obj 2015-07-29 18:27:46 +03:00
erqan
40c102303b installation... 2015-07-19 05:07:04 +03:00
erqan
4bb3be93b2 building for ios on linux 2015-07-19 04:35:22 +03:00
Miguel Freitas
e7a1bf77fa use Content-Security-Policy to prevent javascript: injection in URLs.
unfortunately we still require 'unsafe-eval' due to jquery.getScript
2015-07-17 17:27:09 -03:00
Miguel Freitas
2668b4d832 keep track of torrent location (n,k) for direct messages as well.
this way we may check for piece delivery to the network.
2015-05-31 09:06:42 -03:00
Miguel Freitas
1056d874bf introducing a new torrent piece property to be persisted on disk: max_seen
is the maximum availability (peer count) ever seen for this piece.
new rpc getpiecemaxseen.
2015-05-30 20:49:13 -03:00
Miguel Freitas
4c67033b3b new getpieceavailability rpc 2015-05-30 18:21:15 -03:00
erqan
7001daee3c excluding groups from userlist 2015-05-27 12:31:51 +03:00
Miguel Freitas
91de877a4d Fix DM/groupchat "from" field which was read as integer instead of string. 2015-05-22 15:25:16 -03:00
miguelfreitas
082ade6144 Merge pull request #333 from erqan/fav-posts
adding new methods for public and private favorites
2015-05-18 22:37:25 -03:00
Miguel Freitas
30754d8a0f update -rpcthreads help (default is 10 not 4) 2015-05-18 22:00:01 -03:00
erqan
8245647b6e users may want to comment RTs also.. 2015-05-11 15:45:51 +03:00
erqan
5fa729fc47 adding new methods for public and private favorites 2015-05-04 16:03:00 +03:00
erqan
0068960aed changes getlasthave method for any possible group implementation on client side 2015-05-02 16:57:00 +03:00
Miguel Freitas
2adb9a0d7e prevent reinvite to some group we left if DM messages got reprocessed somehow.
also, newgroupinvite to ourselves may be used to undo leavegroup.
2015-04-25 18:45:28 -03:00
Miguel Freitas
07d5b5ffb6 new DM format (bencoded) now required 2015-04-24 17:01:21 -03:00
Miguel Freitas
1341bfcfe9 implement leavegroup 2015-04-24 12:01:55 -03:00
Miguel Freitas
7dc7065d07 implement group_members splitting to fit max post size (conservative estimate) 2015-04-23 22:01:55 -03:00
Miguel Freitas
8379dde980 experimental group chat support 2015-04-23 19:45:13 -03:00
Miguel Freitas
401c24d18a newpostraw api allows encrypting/signing posts in javascript before posting to any public twisterd server. 2015-04-22 12:00:51 -03:00
Miguel Freitas
57b554f7cf add another flag field to getposts to allow selecting only DMs or RTs.
hint: to get (encrypted) DM posts use values "2 2"
2015-04-19 17:30:41 -03:00
Miguel Freitas
fa004f5108 no need to fake sig_userpost 2015-04-19 14:24:08 -03:00
Miguel Freitas
67f3cd7ba5 set/get preferred spam language 2015-04-19 13:53:48 -03:00
Miguel Freitas
374364b9d6 0.9.29 2015-04-10 08:07:42 -03:00
Miguel Freitas
06fbea6da9 update registration network with the new external IP we learned from DHT peers 2015-04-10 08:03:03 -03:00
Miguel Freitas
04384df7c4 report the two local/external addresses we know about (which should be the same)
in 'getinfo' rpc. i believe this should help debugging dht connectivity problems
when we change networks, or router gets a new ip etc.
2015-04-08 22:24:56 -03:00
Chuck LeDuc Diaz
557edad77d Use cppcheck 2015-04-01 23:01:59 +02:00
miguelfreitas
7afa7dbf05 Merge pull request #320 from AMDmi3/warning-fix
Don't return NULL as bool, fixes warning
2015-03-08 11:26:18 -03:00
Dmitry Marakasov
a403124c9e Don't return NULL as bool 2015-03-07 07:01:38 +03:00
Dmitry Marakasov
cfe8f14c91 Actually include sys/endian.h for le32enc/le32dec
While here, fix a typo
2015-03-07 06:41:53 +03:00
Michael.X
02086a0f01 fix memory size bug 2015-01-31 22:10:06 -04:00
Miguel Freitas
11cd6a47b1 fix #309 2015-01-24 16:57:03 -02:00
Miguel Freitas
1f748f78c3 be more tolerant to detect outdated blockchain.
the main problem with running libtorrent with an outdated blockchain is to
refuse posts that are signed by new users. given this is only a temporary
state (and most of users are older than a day anyway) it is better to
be more tolerant instead of freezing up everything.
2015-01-02 14:59:58 -02:00
Miguel Freitas
cbac6d7c5e different id names per platform 2014-12-26 21:57:31 -02:00
Miguel Freitas
f199d3bde4 use $HOME in android build recipe 2014-12-26 21:56:42 -02:00
Miguel Freitas
6115190f44 new rpc dhtputraw 2014-12-22 19:33:48 -02:00
Miguel Freitas
fa74424399 fix #303 2014-12-20 11:23:31 -02:00
Miguel Freitas
da21c0a2e4 rpc for development only - generates crypto testvector 2014-12-19 19:41:02 -02:00
Miguel Freitas
aeafa6ec15 new dns seeder 2014-12-05 19:02:37 -02:00
Miguel Freitas
0f5ea415a2 params update 2014-12-04 17:25:18 -02:00
Miguel Freitas
b8e264f4d1 0.9.28: better enforcement of DHT upload rate limit for non-locally generated requests.
the limit applies to: DHT replies, refreshes of stored items, checking for status/tracker and proxy server.
local requests (eg. dhtgets from the UI) are excluded from this limit, so user experience is not affected.
in other words: we limit only the band contributed back to twister network for maintenance tasks.

this should improve resilience against some sorts of denial-of-service attacks and also
prevents saturating the uplink as observed recently.
2014-12-04 16:45:43 -02:00
Miguel Freitas
9d3b0744ff 0.9.27 new 'getmentions' api. return known mentions from users we follow.
never miss a mention from your friends anymore! :-)
(twister-html support pending)
2014-11-29 13:20:43 -02:00
miguelfreitas
4019d5cfba Merge pull request #300 from dryabov/bitcoin-ndebug
Fix support of NDEBUG
2014-11-28 16:42:23 -02:00
miguelfreitas
6e86ec1fa0 Merge pull request #299 from dryabov/patch-8
Process "Connection: close" header in non-JSON requests
2014-11-28 16:41:28 -02:00
Denis Ryabov
6de0e2036d fix asserts to support NDEBUG 2014-11-20 19:09:53 +03:00
Denis Ryabov
724d32c852 Process "Connection: close" header in non-JSON requests 2014-11-20 14:20:54 +03:00
Denis Ryabov
23a684f765 Update twister.cpp 2014-11-20 01:30:28 +03:00
Denis Ryabov
5809846532 Support double hashtags (and double mentions) in newpostmsg
See 706f17869b (https://github.com/miguelfreitas/twister-html/pull/202) and 07edcd08a9 (https://github.com/miguelfreitas/twister-core/pull/295)
2014-11-20 01:29:40 +03:00
Miguel Freitas
3d30b164f0 Merge branch 'libtorrent-status' of github.com:dryabov/twister-core into dryabov-libtorrent-status
Conflicts:
	src/twister.cpp
2014-11-13 17:06:30 -02:00
Denis Ryabov
41cc8385c1 fix type 2014-11-13 19:17:18 +03:00
Denis Ryabov
7271692310 add libtorrent's session status data to getinfo output 2014-11-13 19:08:02 +03:00
miguelfreitas
10eb6abfe0 Merge pull request #295 from dryabov/patch-6
Sync with twister-html/pull/202 (double hashtags)
2014-11-11 17:54:30 -02:00
Denis Ryabov
07edcd08a9 Sync with twister-html/pull/202 (double hashtags)
Sync with https://github.com/miguelfreitas/twister-html/pull/202
2014-11-11 17:42:11 +03:00
Denis Ryabov
5de0706c12 Faster shutdown 2014-11-11 03:17:06 +03:00
Miguel Freitas
fd4bdff636 new seeder 2014-11-06 16:25:05 -02:00
Miguel Freitas
bd49c9fe2a another dns seeder, thanks! 2014-11-05 13:16:21 -02:00
Miguel Freitas
c77c015ef0 more voters 2014-11-05 10:21:38 -02:00
Miguel Freitas
dd9c05e918 updating softcheckpoint voters 2014-11-04 17:24:14 -02:00
Denis Ryabov
c5c7cde4a0 Update twister.cpp
More checks to be sure DM is in new format
2014-10-30 14:09:07 +03:00
Denis Ryabov
85c380ca6e Fix Issue #285
Fix case of msg is successfully "bdecoded", but it is not lazy_entry dictionary actually.
2014-10-30 12:48:56 +03:00
gubatron
861e5d8d20 unnecessary if statement 2014-10-16 01:53:53 -04:00
Miguel Freitas
377870f92e trying some new chainparams 2014-09-27 11:08:09 -03:00
Miguel Freitas
8a89202952 0.9.26 2014-09-27 10:58:42 -03:00
Miguel Freitas
6a15c24f6a add padding and random order to DMs copy-to-self 2014-09-27 10:50:15 -03:00
Miguel Freitas
4a0a21550b implement directmessage's copy-to-self to sync DMs between twister instances.
based upon @dryabov patches and long discussion in PR#258, see:
https://github.com/miguelfreitas/twister-core/pull/258/files
2014-09-27 10:29:22 -03:00
miguelfreitas
c1274dcb20 Merge pull request #272 from dryabov/fix_path_utf8_convert
Fix path utf8 convert
2014-09-21 11:54:36 -03:00
miguelfreitas
966513220f Merge pull request #267 from catap/hmac_0.9.9
Compability with OpenSSL < 0.9.9
2014-09-21 11:44:58 -03:00
Miguel Freitas
4d43c08a5b ignore far-future message in getposts 2014-09-21 11:35:52 -03:00
miguelfreitas
00b67caea4 Merge pull request #260 from dryabov/search
add search method
2014-09-21 09:47:26 -03:00
Denis Ryabov
edbc39f32f print error messages 2014-09-19 10:54:22 +04:00
Denis Ryabov
261219d30f Windows: fix wrong convertion of path from utf8 to ansi in libtorrent's create_directory (GetDataDir() returns string in correct code page) 2014-09-18 22:36:35 +04:00
Kirill A. Korinskiy
606bc30522 Compability with OpenSSL < 0.9.9
HMAC_* don't return error code before 0.9.9. See details here:
87d52468aa
2014-09-07 18:14:19 +02:00
Denis Ryabov
4e47b5666e filter directmsgs by age 2014-09-02 13:20:18 +04:00
Denis Ryabov
2706e713a0 fix case-insensitive search 2014-09-02 12:50:15 +04:00
Denis Ryabov
0a25bdead9 fix description 2014-09-02 11:55:43 +04:00
Denis Ryabov
ecb13bbd0e fix access to stack var 2014-09-02 11:49:19 +04:00
Denis Ryabov
ace69ca57e ;;->; 2014-09-02 02:07:46 +04:00
Denis Ryabov
080ac30468 improve search 2014-09-02 02:07:27 +04:00
Denis Ryabov
c500409517 future-friendly filter ("not dm" instead of unclear "rt AND NORMAL") 2014-08-27 01:05:15 +04:00
Denis Ryabov
ab48764e38 add search method 2014-08-27 01:03:37 +04:00
Denis Ryabov
171fef62c5 add aging for hashtags 2014-08-21 13:24:55 +04:00
Miguel Freitas
c7e35d86a2 dont assume the DHT item storage is confirmed just because we got some results back,
compare the contents instead. should improve reliability of mentions.
2014-08-18 19:37:32 -03:00
Miguel Freitas
38052af55d handle block db inconsistency more nicely 2014-07-28 15:58:33 -03:00
Miguel Freitas
3b0633fad4 global dht traffic seems too high: implement probabilistic refresh for users that post too much.
this should reduce the traffic for now but me may want to tweak these settings later.
the most recent posts are priorized regardless of how much the user posts.
2014-07-19 12:38:04 -03:00
Miguel Freitas
201328d62a 0.9.23 2014-07-17 11:11:00 -03:00
Miguel Freitas
f457d9d863 mingw fix 2014-07-08 22:02:35 -03:00
Miguel Freitas
0c03bb2ff2 win32 has no pthread_self 2014-07-07 22:45:29 -03:00
Miguel Freitas
ec2694bf0d win32 doesn't like pid_t 2014-07-07 21:43:02 -03:00
Miguel Freitas
2d96c08f49 no boost-locale in android? at least not here. 2014-07-04 12:58:10 -03:00
Miguel Freitas
6cae25e7ab fix dht count when using proxy (fix #231) 2014-07-04 08:44:26 -03:00
Miguel Freitas
2168e34677 miniupnp dependency removed, yes! :-) fix #130
libtorrent implements a upnp client: use it to map the other twisterd port.
2014-07-04 00:03:06 -03:00
Miguel Freitas
e4267649f4 replace showmyip.com (down) with wtfismyip.com 2014-07-03 23:49:32 -03:00
Miguel Freitas
7f0f1a96af more consistency checks to dhtproxy (client) 2014-07-02 09:02:24 -03:00
Miguel Freitas
505e4c80d5 0.9.22 2014-07-01 23:25:32 -03:00
Miguel Freitas
aac651390f if dhtproxy is enabled we may need to manually obtain peer lists from trackers 2014-07-01 23:22:35 -03:00
Miguel Freitas
7474196b44 require http authentication for static html pages as well.
should help browsers being less confused than just requiring it for RPC.
2014-06-28 08:26:56 -03:00
Miguel Freitas
025c061415 dhtput should have a higher cost, as it lacks active limit check. 2014-06-27 21:11:56 -03:00
Miguel Freitas
e52f2c2527 dhtproxy: tunnel DHT traffic into TCP connections 2014-06-26 16:38:43 -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