Commit graph

2020 commits

Author SHA1 Message Date
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