Commit graph

2100 commits

Author SHA1 Message Date
Antonio Quartulli
965969b856 Don't filter out local node ID when returning peer list
If a node is returning a peer list for a given blob hash
(being this been requested via CLI or via DHT) and it is
part of the resulting peer list, it will filter itself out
before returning the list.

This makes the results across the DHT inconsistent as
different nodes won't include themselves when
responding a findValue/findNode query.

Remove such filtering so that the local node ID is always
included when needed.

Signed-off-by: Antonio Quartulli <antonio@mandelbit.com>
2017-11-07 09:56:40 -05:00
Ian Chamberlain
20e9ff2902 Delete blob hash from list when blob is deleted 2017-11-05 21:56:54 -05:00
Jack Robison
8d095ab36f
Bump version 0.17.2rc7 --> 0.17.2rc8
Signed-off-by: Jack Robison <jackrobison@lbry.io>
2017-11-04 21:03:46 -04:00
Jack Robison
81a44fa824
Merge branch 'use-shared-queued-deferredsemaphore' 2017-11-04 21:01:38 -04:00
Jack Robison
a79a00180d
rename variable 2017-11-04 20:37:52 -04:00
Jack Robison
36782e0878
use shared deferredSemaphore for daemon methods decorated with 'queued'
fixes race condition between publish and channel_new
2017-11-04 20:37:46 -04:00
Ian Chamberlain
733e356e55 Fix failing ConnectionManager unit test 2017-11-04 15:15:04 -04:00
Jack Robison
022e767bc4
Bump version 0.17.2rc6 --> 0.17.2rc7
Signed-off-by: Jack Robison <jackrobison@lbry.io>
2017-11-02 10:53:05 -04:00
Alex Grintsvayg
cc61cc6b17 rename command to utxo_list 2017-11-02 07:14:35 -04:00
Jack Robison
12d88159a1
Bump version 0.17.2rc5 --> 0.17.2rc6
Signed-off-by: Jack Robison <jackrobison@lbry.io>
2017-11-01 20:33:08 -04:00
Jack Robison
ccf3959e2f
Bump version 0.17.2rc4 --> 0.17.2rc5
Signed-off-by: Jack Robison <jackrobison@lbry.io>
2017-11-01 19:44:52 -04:00
Jack Robison
2542883fde
Bump version 0.17.2rc3 --> 0.17.2rc4
Signed-off-by: Jack Robison <jackrobison@lbry.io>
2017-11-01 17:39:37 -04:00
Alex Grin
fcfde63720
Merge branch 'master' into wallet_list_unspent 2017-11-01 17:35:31 -04:00
Alex Grintsvayg
3152ecfd71 add wallet_list_unspent 2017-11-01 17:29:11 -04:00
Jack Robison
c86db2d846
Bump version 0.17.2rc2 --> 0.17.2rc3
Signed-off-by: Jack Robison <jackrobison@lbry.io>
2017-11-01 17:28:07 -04:00
Kay Kurokawa
10ac86a99e use FileBodyProducer to read 2017-10-31 15:41:53 -04:00
Kay Kurokawa
9470b318b0 moved BLOB_SIZE in conf to MAX_BLOB_SIZE constant in blob.blob_file 2017-10-31 15:38:00 -04:00
Kay Kurokawa
51d4668763 fix test 2017-10-31 15:38:00 -04:00
Kay Kurokawa
96d8cb17d9 delete deprecated producer/consumer read methods from BlobFile 2017-10-31 15:38:00 -04:00
Kay Kurokawa
1360345395 use blob.open_for_reading() in StreamBlobDecryptor 2017-10-31 15:38:00 -04:00
Kay Kurokawa
e07c2f7bd8 take read handle as argument instead of file path 2017-10-31 15:38:00 -04:00
Kay Kurokawa
d68ca65e41 warn if reader is garbage collected but not closed, do the same for writer 2017-10-31 15:38:00 -04:00
Kay Kurokawa
ea4b6935c9 remove unnecessary use of @property 2017-10-31 15:35:01 -04:00
Kay Kurokawa
cf9f9d0e75 remove unused get_default_market_feed() function 2017-10-31 15:35:01 -04:00
Kay Kurokawa
020a2e0e89 adjust the _online variable to be set on the errback, so any exception will set _online to False 2017-10-31 15:35:01 -04:00
Kay Kurokawa
7e7931fbf1 add Bittrex feed as a redundant feed, add unit test for it 2017-10-31 15:35:01 -04:00
Kay Kurokawa
4411c5c202 add name of feed to log.info 2017-10-31 15:35:01 -04:00
Miroslav Kovar
433547407e Added tests. 2017-10-31 15:35:01 -04:00
Miroslav Kovar
aa15f6c4b8 Added redundant market feed (cryptonator). 2017-10-31 15:35:01 -04:00
Jack Robison
ee3a2e88b7
Bump version 0.17.2rc1 --> 0.17.2rc2
Signed-off-by: Jack Robison <jackrobison@lbry.io>
2017-10-31 12:28:59 -04:00
Jack Robison
cfd4a94450
logging 2017-10-31 12:21:36 -04:00
Jack Robison
f7aa478b9b
remove unused bypass_dns parameter 2017-10-31 12:21:35 -04:00
Jack Robison
3fd542f702
Merge branch 'check_connection_bypass_dns' of https://github.com/mirgee/lbry into mirgee-check_connection_bypass_dns 2017-10-31 12:21:35 -04:00
Antonio Quartulli
d827b4d5af platform ip: ensure daemon retrieves IPv4 address only
When contacting jsonip.com to retrieve the node external IP,
the connection might be established with IPv6 and thus return
an address belonging to that family.

This address is then used to initialize the external_ip member of
Daemon session, but unfortunately IPv6 is not yet handled well.

Using an IPv6 as external IP is currently breaking parts of the
Daemon resulting in no peer connectivity at all.

We should stick to IPv4 for time being.

http://jsonip.com/about says "ipv4-only":"https://ipv4.jsonip.com"

therefore, change the IP retrieval URL to ipv4.jsonip.com to
make sure the connection is established only using an IPv4 address.

Closes: https://github.com/lbryio/lbry/issues/971
Signed-off-by: Antonio Quartulli <antonio@mandelbit.com>
2017-10-31 06:59:40 -04:00
Jack Robison
db751eabb6
Bump version 0.17.1 --> 0.17.2rc1
Signed-off-by: Jack Robison <jackrobison@lbry.io>
2017-10-30 13:11:04 -04:00
Jack Robison
fdaaa0e678
changelog 2017-10-30 13:09:02 -04:00
Jack Robison
e89f3db31b
fix remaining length of close nodes list 2017-10-27 21:46:17 -04:00
Jack Robison
ee90c877c7
Merge branch 'dht-fix-close-nodes-list-extension' of https://github.com/ordex/lbry into ordex-dht-fix-close-nodes-list-extension 2017-10-27 18:38:03 -04:00
Jack Robison
203f2f8988
Bump version 0.17.1rc5 --> 0.17.1
Signed-off-by: Jack Robison <jackrobison@lbry.io>
2017-10-25 17:33:55 -04:00
Antonio Quartulli
673d1c4d43
Extend close nodes list by right amount
When a k-bucket does not contain enough close nodes, the
DHT will look into neighbouring k-buckets in order to entend
the list of returned nodes.

However, the list should not be extended beyond its maximum size.

Signed-off-by: Antonio Quartulli <antonio@mandelbit.com>
2017-10-26 02:21:24 +08:00
Alex Grintsvayg
357f15c5b8 changes that jack pointed out 2017-10-25 12:36:54 -04:00
Alex Grintsvayg
2067180467 add wallet_prefill_addresses command 2017-10-25 12:29:51 -04:00
Jack Robison
6df5de209e
Bump version 0.17.1rc4 --> 0.17.1rc5
Signed-off-by: Jack Robison <jackrobison@lbry.io>
2017-10-25 12:08:28 -04:00
Jack Robison
e4d2a3d2ec Merge branch 'master' into android_tests_refactoring 2017-10-25 12:01:37 -04:00
Jack Robison
9decdf644d
Bump version 0.17.1rc3 --> 0.17.1rc4
Signed-off-by: Jack Robison <jackrobison@lbry.io>
2017-10-25 10:59:43 -04:00
Jack Robison
3944c98b71
Bump version 0.17.1rc2 --> 0.17.1rc3
Signed-off-by: Jack Robison <jackrobison@lbry.io>
2017-10-24 20:48:58 -04:00
Jack Robison
628c46e5d9
catch id validation errors 2017-10-24 20:26:03 -04:00
Jack Robison
edb8928f5c
update tests 2017-10-24 20:25:59 -04:00
Jack Robison
e2259fd8f7
fix dht rpc id length 2017-10-24 20:25:54 -04:00
Jack Robison
78417db553
Bump version 0.17.1rc1 --> 0.17.1rc2
Signed-off-by: Jack Robison <jackrobison@lbry.io>
2017-10-24 19:29:05 -04:00
Jack Robison
5919271966
Merge branch 'fix-remove-contact' 2017-10-24 19:26:41 -04:00
Jack Robison
9479179259
avoid future contact id parsing bugs by passing the contact id as an arg 2017-10-24 19:17:17 -04:00
Jack Robison
0b771c16ba
fix lbry id for dead contact to replace in _IterativeFindHelper 2017-10-24 19:13:45 -04:00
Jack Robison
95a0653a58
better upnp redirect 2017-10-24 19:11:19 -04:00
Jack Robison
bbc960aaf9
Bump version 0.17.0 --> 0.17.1rc1
Signed-off-by: Jack Robison <jackrobison@lbry.io>
2017-10-23 01:44:19 -04:00
Jack Robison
45adfc533b
fix id of new contact replacing a dead contact 2017-10-23 01:34:34 -04:00
Jack Robison
d23d4c1d73
fix lbryid length comparison 2017-10-23 01:23:04 -04:00
Jack Robison
529a11043b
don't block file manager setup on all the streams being resumed 2017-10-23 01:17:54 -04:00
Jack Robison
4e4eb5e24c
fix external ip 2017-10-23 01:17:25 -04:00
Jack Robison
93b91f8602
block session startup on joinNetwork 2017-10-23 01:16:29 -04:00
Akinwale Ariwodola
e522e7e7f7 Changed AssertionError to ValueError. Skip tests that cannot pass on Android. 2017-10-17 03:15:50 +01:00
Jack Robison
0793934d7b
Bump version 0.17.0rc17 --> 0.17.0
Signed-off-by: Jack Robison <jackrobison@lbry.io>
2017-10-12 12:39:09 -04:00
Jack Robison
3fdd04a0e3
Bump version 0.17.0rc16 --> 0.17.0rc17
Signed-off-by: Jack Robison <jackrobison@lbry.io>
2017-10-12 12:30:28 -04:00
Kay Kurokawa
8b2b5b991b remove unneeded _error function from CryptStreamCreator 2017-10-12 12:17:04 -04:00
Kay Kurokawa
551eab9a42 fix bug where last blob in a stream was not saved to blob manager 2017-10-12 11:25:52 -04:00
Kay Kurokawa
574660cc20 add test to count the number of blobs created by EncryptedFileCreator 2017-10-12 11:16:20 -04:00
Jack Robison
fb071778dc
fix docstring 2017-10-11 15:14:29 -04:00
Jack Robison
9585b444ab
Bump version 0.17.0rc15 --> 0.17.0rc16
Signed-off-by: Jack Robison <jackrobison@lbry.io>
2017-10-11 14:49:55 -04:00
Jack Robison
4b9c881cd0
fix recording reader was closed
reader_finished() is called when the reader closes, so the `readers -=
1` here was redundant and led to readers equalling -1 instead of 0.
2017-10-11 14:45:36 -04:00
Jack Robison
334a55bf7f
Bump version 0.17.0rc14 --> 0.17.0rc15
Signed-off-by: Jack Robison <jackrobison@lbry.io>
2017-10-11 14:06:33 -04:00
Jack Robison
78ad87d349
fix uncaught CancelledError in peer_list 2017-10-11 14:05:03 -04:00
Jack Robison
8c79421790
less verbose ClientProtocol log
fix https://github.com/lbryio/lbry/issues/917
2017-10-11 13:47:57 -04:00
Jack Robison
0a19dd938a
Bump version 0.17.0rc13 --> 0.17.0rc14
Signed-off-by: Jack Robison <jackrobison@lbry.io>
2017-10-11 13:07:49 -04:00
Jack Robison
a0a7d5f569
add routing_table_get 2017-10-11 12:54:40 -04:00
Akinwale Ariwodola
0291482abb raised errors directly instead of wrapping with AssertionError 2017-10-11 07:59:30 +01:00
Jack Robison
323c3e6cb3
add external_ip argument to Session, default to None 2017-10-10 13:55:36 -04:00
Jack Robison
c7acb31614
add dht tests 2017-10-10 13:55:35 -04:00
Jack Robison
e9fd8eb096
update tests and scripts 2017-10-10 13:55:31 -04:00
Jack Robison
9919fd06c6
uncomment error for store request where contact is not known 2017-10-10 13:29:54 -04:00
Jack Robison
c9515f8fb6
logging and whitespace 2017-10-10 13:29:29 -04:00
Jack Robison
5937ead17c
add Node.contacts helper property 2017-10-10 13:28:57 -04:00
Jack Robison
23ce278f8a
add removePeer to interface 2017-10-10 13:27:44 -04:00
Jack Robison
de1dc507ac
fix findCloseNodes when buckets aren't fully populated 2017-10-10 13:21:06 -04:00
Jack Robison
ab956d4a8e
use count parameter in findCloseNodes 2017-10-10 13:20:19 -04:00
Jack Robison
7c50e26bd7
include method and args in _sentMessages 2017-10-10 13:19:03 -04:00
Jack Robison
a942e6f3eb
fix args for ping() 2017-10-10 13:18:38 -04:00
Jack Robison
fe2d6bad1b
fix logging error for dht rpc methods with no args (ping) 2017-10-10 13:18:00 -04:00
Jack Robison
3096c89e37
don't wrap exceptions with Failure 2017-10-10 13:17:36 -04:00
Jack Robison
2a47385b62
add rpcAttempts and replacementCacheSize constants 2017-10-10 13:16:26 -04:00
Jack Robison
fcaca05a81
fix redundant lbryid 2017-10-10 13:15:25 -04:00
Jack Robison
46e31d5b45
getPeersForBlob inlinecallbacks refactor 2017-10-10 13:12:47 -04:00
Jack Robison
8e9f3c90a1
use looping call for Node.change_token to avoid hanging delayedCalls 2017-10-10 13:10:47 -04:00
Jack Robison
f1980f524e
fix raising remote exceptions 2017-10-10 13:09:25 -04:00
Jack Robison
4a567f7ab1
organize dht errors and interfaces 2017-10-10 13:08:22 -04:00
Akinwale Ariwodola
6ed56804b9 return empty string as default value when docstring is missing 2017-10-09 21:14:16 +01:00
Akinwale Ariwodola
fb6545481b refactored one more assert 2017-10-09 20:41:08 +01:00
Akinwale Ariwodola
4f6f226b18 refactor asserts due to PYTHONOPTIMIZE flag 2017-10-09 20:20:58 +01:00
Jack Robison
777cda2cd3
Bump version 0.17.0rc12 --> 0.17.0rc13
Signed-off-by: Jack Robison <jackrobison@lbry.io>
2017-10-09 10:40:23 -04:00
Jack Robison
7898b9c2d8
Merge branch 'master' into add_more_session_info 2017-10-09 10:39:48 -04:00
Jack Robison
e4cc87b8f0
Bump version 0.17.0rc11 --> 0.17.0rc12
Signed-off-by: Jack Robison <jackrobison@lbry.io>
2017-10-09 10:30:36 -04:00