Victor Shyba
d47cf40544
add reader.py for test_sqldb tests
2021-03-19 19:58:13 -03:00
Victor Shyba
87037c06c9
remove reader code
2021-03-19 19:58:13 -03:00
Victor Shyba
1e5331768f
fix some of the tests
2021-03-19 19:58:13 -03:00
Victor Shyba
27cc61d45e
limit test time to 2 minutes, then consider it a failure and log what was running
2021-03-19 18:01:29 -03:00
Lex Berezhny
db9856a8db
use median exchange rate when several exchange rates are available
2021-02-15 14:09:32 -05:00
Lex Berezhny
fb25ecb4a1
unittest
2021-02-10 22:14:13 -05:00
Lex Berezhny
39e78ff17e
updated exchange rate manager to use v3 bittrex API (old one is deprecated)
2021-02-03 14:15:19 -05:00
Jack Robison
ee7528413e
update tests
2021-01-08 11:54:02 -05:00
Jack Robison
479b5d31a9
fix test
2020-12-22 14:06:53 -05:00
Victor Shyba
eb2a4aebba
unrestricted and reusing verified cache hits
2020-12-21 16:49:08 -03:00
Jack Robison
3467d1fed0
fix tests
2020-12-03 22:16:28 -05:00
Lex Berezhny
912065a121
remove url sequence feature from code and tests
2020-11-17 11:24:29 -05:00
Victor Shyba
2619e162c1
recover invalid state described on #3026
2020-11-09 16:03:38 -05:00
Lex Berezhny
5e17ce0a0b
minor fixup
2020-10-30 11:37:54 -04:00
Kevin Raoofi
e8d299d3b6
Allow : or # for claim_id
...
This removes the code for trying multiple patterns and the setup for it
Added a few unit tests to check that the parsed URL is as expected
2020-10-30 11:37:54 -04:00
Kevin Raoofi
7637aa2ab6
Added support for spec compliant URL parsing
...
Legacy URLs are preserved by attempting to parse the new URL format and,
on failing that, it'll attempt the legacy one.
Tests had to be updated such that the correct things are asserted
against each other.
2020-10-30 11:37:54 -04:00
jessop
7384609e74
support comment pinning
2020-10-10 13:02:38 -04:00
Jack Robison
3a64ceb4d6
add forward compatibility for byte datagram keys
2020-09-28 15:56:13 -04:00
Jack Robison
8426b674a3
improve reflector upload cancellation handling
2020-08-19 15:24:17 -04:00
Lex Berezhny
f9dc590100
update tests
2020-07-21 20:56:50 -04:00
Jack Robison
1f82a8b99e
catch reflector error if a blob is deleted while it's being sent
2020-07-16 12:15:51 -04:00
Jack Robison
b3b5e3d8f0
test reflector connection breaking mid-transfer
2020-07-15 16:42:55 -04:00
Jack Robison
9d5370be5f
fix
2020-07-14 23:13:14 -04:00
Jack Robison
f73399bfac
fix test
2020-06-24 11:13:29 -04:00
Jack Robison
a056cd78f7
remove loggly
2020-06-24 11:13:29 -04:00
Jack Robison
9dc6092cb0
update tests
2020-06-05 20:06:42 -04:00
Lex Berezhny
7296c7df1a
Origin: null no longer allowed
2020-06-03 14:19:16 -04:00
Lex Berezhny
f3ee6603de
improve allowed_origin request handling
2020-06-03 13:55:20 -04:00
Lex Berezhny
ee0aabda1d
backwards compatible allowed_origin, default browsers not allowed
2020-06-03 13:28:32 -04:00
Jack Robison
f030d41dc7
add test_is_valid_ipv4
2020-06-02 15:56:57 -04:00
Jack Robison
c94cc293c2
fix uncaught errors in test_component_manager
2020-05-25 10:21:36 -04:00
Lex Berezhny
b09eabc478
minor simplifcation
2020-05-18 08:53:34 -04:00
thebubbleindex
e49fcea6e3
fix issue with specifying ports via env vars
...
make sure tcp and udp port for dht are int type
2020-05-18 08:53:07 -04:00
Jack Robison
c22482f907
channel private key generation in a thread pool
2020-05-11 14:54:31 -04:00
Jack Robison
ebbb182537
fix test
2020-05-11 14:06:23 -04:00
Jack Robison
1cd5377b45
split fixed peer setting out from reflector_servers
2020-05-11 13:43:13 -04:00
Victor Shyba
e888e69d4d
fix unit tests
2020-05-07 04:04:54 -03:00
Victor Shyba
2089059792
pylint
2020-05-07 04:04:54 -03:00
Victor Shyba
27739e0364
fix save from resolve
2020-05-07 04:04:54 -03:00
Victor Shyba
698ee271d6
stream manager component becomes file manager component
2020-05-07 04:04:54 -03:00
Victor Shyba
7170e69b22
test fixes + leave tx plot always on estimations
2020-04-27 10:34:49 -04:00
Victor Shyba
239ee2437c
estimate only whats not downloaded
2020-04-27 10:34:49 -04:00
Victor Shyba
ced368db31
hold headers file in memory during runtime
2020-04-27 10:34:49 -04:00
Jack Robison
fbe0f886b6
non blocking blob creation
2020-04-23 00:35:08 -04:00
Jack Robison
3ca41be686
add reflector_progress
to file_list
results
2020-04-13 12:08:22 -04:00
Victor Shyba
b2f70c7120
return none for unconfirmed time estimation
2020-04-06 06:03:35 -03:00
Victor Shyba
1b83a1d09a
test and fix verifying from middle
2020-03-30 19:42:27 -03:00
Victor Shyba
7ad3447598
repair tip on open
2020-03-30 19:42:27 -03:00
Jack Robison
4bff2d718e
clean up test
2020-03-26 11:41:49 -04:00
Jack Robison
ec20d9a2a8
faster wallet sync with get_transaction_and_merkle
2020-03-26 11:41:49 -04:00
Victor Shyba
342cb00625
less concurrent repeated header checks
2020-03-23 01:19:34 -03:00
Victor Shyba
19c0a81c42
fix bad usages of hash and some tests
2020-03-22 23:31:47 -03:00
Victor Shyba
9fc7f9904b
fix tests, delete old code
2020-03-22 23:31:47 -03:00
Victor Shyba
b04a516063
better locking, stop corrupting headers, fix some tests
2020-03-22 23:31:47 -03:00
Victor Shyba
ec8e243323
estimate timestamps instead of using block headers
2020-03-22 23:30:11 -03:00
Victor Shyba
af0e9368d4
headers get now async
2020-03-22 23:30:11 -03:00
Lex Berezhny
b5c24d6a48
fixing unit tests
2020-03-22 01:29:26 -04:00
Lex Berezhny
93fc883b90
fixing unit tests
2020-03-20 19:08:47 -04:00
Lex Berezhny
dd21803598
working --is_my_input_or_output --is_my_input --is_my_output etc
2020-03-20 19:08:47 -04:00
Jack Robison
f4645f570c
more read only calls
2020-03-19 19:19:02 -04:00
Victor Shyba
050b67c9d6
apply share_usage_data as its set
2020-02-20 12:12:40 -03:00
Victor Shyba
f0e1db319c
make wallet server payments a component
2020-02-18 19:18:30 -03:00
Victor Shyba
237a8965eb
fix tests
2020-02-17 18:00:23 -03:00
Lex Berezhny
6b745c53dc
make sure SQL IN works with python set
2020-02-12 11:41:32 -05:00
Lex Berezhny
dcb1b64696
SQL generation fix to handle IN operation for one value lists
2020-02-12 10:31:27 -05:00
Victor Shyba
f14004e56b
update url regex to cases tom reported
2020-02-09 17:55:29 -05:00
Jack Robison
111871bb28
update test
2020-02-03 23:00:45 -05:00
Lex Berezhny
d5eed91e7f
fix sql unit tests
2020-02-01 13:03:39 -05:00
Jack Robison
3b2d635390
Revert "Revert "configurable trending algorithms""
...
This reverts commit 55e08f96a6
.
2020-01-28 15:53:57 -05:00
Jack Robison
55e08f96a6
Revert "configurable trending algorithms"
2020-01-28 15:03:09 -05:00
Lex Berezhny
01ed71b243
configurable trending
2020-01-28 11:58:27 -05:00
Lex Berezhny
2cd7ea257c
Added support to differentiate between filtering and blocking for content censoring
2020-01-22 08:39:14 -05:00
Alex Grintsvayg
474c0f980e
skip randomly-failing dht test
2020-01-20 14:16:52 -05:00
Lex Berezhny
345196aa3b
add pagination for claim_search
2020-01-20 12:49:42 -05:00
Lex Berezhny
86cedfe8b2
using multiprocessing.Manager to keep blocked content synced between readers
2020-01-20 12:49:41 -05:00
Victor Shyba
d34f5c2712
fix None in history, check records after wait
2020-01-13 21:17:10 -05:00
Victor Shyba
a56dd66c98
separate cases and make it deterministic
2020-01-13 21:17:10 -05:00
Victor Shyba
3946bc6662
fix and document new edge case on tests
2020-01-13 21:17:10 -05:00
Victor Shyba
6647dd8f08
fix decrypting invalid bytes with valid padding
2020-01-13 21:17:10 -05:00
Jack Robison
08f6520557
bare excepts
2020-01-10 12:27:56 -05:00
Lex Berezhny
b3903f4ffd
fix import in unit test
2020-01-03 03:08:15 -05:00
Lex Berezhny
3d9841b61a
fix unit wallet tests
2020-01-03 03:08:15 -05:00
Lex Berezhny
b79f2b86b5
renamed Daemon.py to daemon.py per pylint
2020-01-03 03:08:15 -05:00
Lex Berezhny
386fd7a459
updated imports after renaming component files
2020-01-03 03:08:15 -05:00
Victor Shyba
10fbce056b
dht constants -> CONSTANTS (linting)
2020-01-03 03:08:15 -05:00
Lex Berezhny
fb1af9e3d2
update imports and more merging
2020-01-03 03:08:15 -05:00
Lex Berezhny
2968f74c6c
moved lbry up one level
2020-01-01 15:57:56 -05:00
Lex Berezhny
85d7adc0b5
moved lbrynet into lbry directory
2019-06-20 22:50:39 -04:00
Oleg Silkin
7fa797712a
Adds comment signature unit testing
2019-06-19 06:25:26 -04:00
Oleg Silkin
636f36ebad
Moves get_channel,get_stream out of Class into their own functions
2019-06-19 06:25:26 -04:00
Jack Robison
2ad22d7d19
paginated deterministically shuffled find_value
...
- fixes https://github.com/lbryio/lbry/issues/2244
- reduce the max DHT datagram size to 1400 bytes
- truncate `contacts` field of find_value response datagrams to the k closest (8)
- truncate peers in find_node response datagrams to the 2k closest (16)
- remove `contacts` field from find_value responses beyond `page` 0 (the first/default)
- deterministically shuffle the peers for a blob in a find_value response
- add optional `page` argument to `find_value` and `p` field to find_value responses containing the number of pages of k peers for the blob
- test one blob being announced by 150 different peers to one peer
- speed up pylint and remove some disabled checks
2019-06-18 22:52:39 -04:00
Jack Robison
adb7edd3b2
test chunked reflector server response
2019-06-07 17:26:31 -04:00
Lex Berezhny
6965971613
delete claims and re-calculate winner when claim is expired
2019-06-04 22:28:35 -04:00
Lex Berezhny
d8630a02d9
Strings setting works like Server from CLI
2019-06-04 18:44:21 -04:00
Lex Berezhny
76df239d1a
start command accepts server lists consistent with other commands
2019-06-03 21:22:24 -04:00
Lex Berezhny
1b35cef77a
fix wallet.server.test_sqldb test
2019-05-28 20:51:22 -04:00
Lex Berezhny
9004f240e6
bug fixes
2019-05-27 23:18:26 -04:00
Lex Berezhny
42dc0eccd6
wallet server channel key change error
2019-05-26 14:01:06 -04:00
Lex Berezhny
29bd936181
wallet server tracks claim signature
2019-05-26 14:01:06 -04:00
Lex Berezhny
370b34f860
canonical_url takes into account whether channel signature is valid
2019-05-26 14:01:06 -04:00
Lex Berezhny
affa46e0f6
initial import of canonical url via the new sql wallet server
2019-05-26 14:01:06 -04:00
Lex Berezhny
c2fbbadc69
start trending calculation as wallet server sync nears best height
2019-05-19 21:16:19 -04:00
Lex Berezhny
b8897223ec
added zscore trending in wallet server
2019-05-19 21:16:19 -04:00
Lex Berezhny
021ca3efd2
updated doc strings and fixed wallet server claimtrie implementation
2019-05-18 21:43:46 -04:00
Lex Berezhny
342f485ddf
good stuff
2019-05-18 21:43:46 -04:00
Lex Berezhny
5f4c02f836
wallet server sync performance improvements
2019-05-18 21:43:46 -04:00
Lex Berezhny
d2608bdf43
fixed wallet/server/test_sqldb.py tests
2019-05-18 21:43:46 -04:00
Lex Berezhny
a459ee34be
test_url unit test fix
2019-05-18 21:43:46 -04:00
Lex Berezhny
9accbfcf8b
move exception handling into is_signed_by
2019-05-18 21:43:46 -04:00
Lex Berezhny
03455310ae
rewrote URL parser
2019-05-18 21:43:46 -04:00
Lex Berezhny
2260608bb6
working sql claimtrie
2019-05-18 21:43:46 -04:00
Jack Robison
6ecc22f2c7
fix refreshing peers in the datastore
2019-05-17 12:22:47 -04:00
Victor Shyba
bac7d99b8a
add ability to re-join network on disconnect + tests
2019-05-12 03:39:11 -03:00
Victor Shyba
e675f1387c
remove peer junction and some refactoring
2019-05-11 04:58:56 -03:00
Victor Shyba
0da2827c78
fix dht deadlock
2019-05-10 19:54:59 -03:00
Jack Robison
ad2da24d64
improve test
2019-05-10 14:57:04 -04:00
Jack Robison
648dbcc36b
add timeout to blob downloads after the head blob, stop timed out streams
2019-05-10 14:50:01 -04:00
Victor Shyba
e59e96190e
fix peer search using inexistent variable, fix test to cover it
2019-05-10 13:49:35 -04:00
Victor Shyba
77c69f661d
add locking cases scenarios
2019-05-08 23:02:38 -03:00
Victor Shyba
84b471d486
limit batch size on announcer test so it covers batching logic
2019-05-07 11:10:49 -03:00
Jack Robison
f506b3e6d4
tests
2019-05-06 18:46:26 -04:00
Jack Robison
9099ee2e8e
fix/refactor starting and stopping files
...
-move partial content handling into ManagedStream
-add delayed stop test
2019-05-06 18:46:26 -04:00
Victor Shyba
a4d17d1705
re-enable tests for announcing on stream creation
2019-05-06 16:49:03 -03:00
Lex Berezhny
d7c2e4e9b3
fixed bug where lbrynet failed to start with single-key accounts in the wallet
2019-05-04 17:56:39 -04:00
Victor Shyba
6594b7c50c
test concurrency through races on getting a writer
2019-05-01 15:08:47 -03:00
Victor Shyba
30b113d64a
depth -> confirmations
2019-04-29 00:26:14 -04:00
Lex Berezhny
0a1e97fe23
cli test fix
2019-04-26 23:37:10 -04:00
Jack Robison
67088b2ca2
test_blob_writers_concurrency
2019-04-24 09:48:04 -04:00
Jack Robison
3234d70270
add peer address/port to hash blob writer
2019-04-24 09:48:04 -04:00
Jack Robison
861c25716e
add unit tests for cache_concurrent decorator
2019-04-24 09:48:04 -04:00
Jack Robison
01a81fceed
more streaming_only + save_blobs integration testing
2019-04-24 09:48:04 -04:00
Jack Robison
46b166952b
non async blob_completed callback, tests
2019-04-24 09:48:04 -04:00
Jack Robison
7d782d516a
track and close blob readers
2019-04-24 09:48:04 -04:00
Jack Robison
d3eac48035
tests, add __slots__ to AbstractBlob
2019-04-24 09:48:04 -04:00
Jack Robison
04ddee7d89
blob tests
2019-04-24 09:48:04 -04:00
Jack Robison
3a916a8e8e
tests
2019-04-24 09:48:04 -04:00
Jack Robison
b230d8fbcb
rename BlobFileManager -> BlobManager
2019-04-24 09:48:04 -04:00
Lex Berezhny
26fec098e4
fix stream unit tests
2019-04-21 14:28:43 -04:00
Lex Berezhny
71f5061848
exposed new protobuf fields in APIs and updated tests
2019-04-21 00:45:51 -04:00
Lex Berezhny
633f725634
stream manager test fix
2019-04-20 02:33:41 -04:00
Lex Berezhny
60080cbd19
updating to new protobufs
2019-04-20 02:33:41 -04:00
Victor Shyba
76dea9e89b
batch save supports
2019-04-20 01:19:40 -04:00
Lex Berezhny
7b57ba96dd
fix docopt parsing and stream manager tests
2019-03-29 21:14:20 -04:00
Lex Berezhny
a3bd335f7f
--languages, --locations fully support all attributes, add BTC
2019-03-29 21:14:20 -04:00
Lex Berezhny
750c0e4f4f
fix cli test
2019-03-27 21:57:22 -04:00
Lex Berezhny
5f8482bdb7
hash -> sd_hash, encoding fixes, update to new protobufs
2019-03-27 21:57:22 -04:00
Lex Berezhny
183e3ac1c7
claim search
2019-03-25 22:54:08 -04:00
Lex Berezhny
e2964f9728
test cli fix, take 2
2019-03-25 22:54:08 -04:00
Lex Berezhny
e0cea60c87
fix cli test
2019-03-25 22:54:08 -04:00
Lex Berezhny
814eaca524
cli tests fixed
2019-03-25 22:54:08 -04:00