Jack Robison
3234d70270
add peer address/port to hash blob writer
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
676f0015aa
refactor BlobFile into AbstractBlob, BlobFile, and BlobBuffer classes
2019-04-24 09:48:04 -04:00
Victor Shyba
b834f29634
nullify length on blob delete
2019-02-21 21:00:28 -03:00
Jack Robison
dbb6ba6241
recover streams with missing sd blobs, handle previous sd blob bugs
...
-test download and recover stream with old key sorting
2019-02-15 15:21:29 -05:00
Jack Robison
56c41b2fea
fix integration test
...
-cancel running reflector uploads from publishes upon shutdown
-refactor blob.delete to be non-async
-delete blobs synchronously
2019-02-14 15:43:26 -05:00
Jack Robison
0c93090d2c
faster is_valid_hashcharacter
2019-02-08 19:57:26 -05:00
Jack Robison
45404b6ad4
faster is_valid_blobhash
2019-02-08 19:54:59 -05:00
Victor Shyba
141d68a2cd
fix write race condition
2019-02-08 02:39:29 -03:00
Victor Shyba
3a15ff4bcd
test incomplete streams, respect real length, delete on incomplete assembly
2019-02-06 15:56:06 -03:00
Jack Robison
0e972ec2ae
refactor BlobFile.close to be non async
2019-02-06 11:00:57 -05:00
Victor Shyba
a4ced4dbd2
set verified after callback
2019-02-05 13:17:00 -03:00
Jack Robison
2bce7cecfa
fix sendfile on windows
2019-02-04 16:48:48 -05:00
Victor Shyba
f5bf1463af
fixes from review
2019-02-01 17:09:37 -03:00
Victor Shyba
25050fdeeb
fixes for writers (check inside lock and dont hold verified bytes)
2019-02-01 16:05:14 -03:00
Jack Robison
a5524d490c
async lbrynet.blob
2019-01-24 00:13:15 -05:00
Lex Berezhny
b5340505e5
fix blobmanager tests and dont run conf tests
2019-01-07 21:56:05 -05:00
Lex Berezhny
fb4e94b04a
asyncifying minimal amount of the old blob/p2p code
2019-01-07 21:56:05 -05:00
Jack Robison
1b4230b06e
move is_valid_blobhash to lbrynet.blob.blob_file
2018-11-09 16:52:46 -05:00
Jack Robison
a6b643bb34
move files
2018-11-09 16:52:42 -05:00
Lex Berezhny
f4c6dc90c9
updated references lbrynet.core -> lbrynet.p2p
2018-11-04 20:25:24 -05:00
Hugo
2e6c848c39
Upgrade Python syntax with pyupgrade --py36-plus
2018-10-23 12:02:10 -04:00
Hugo
3f704be85c
Fix spelling
2018-10-18 14:40:37 +03:00
Lex Berezhny
10b34d6b33
unnecessary list() added during py3 port
...
instead of recursive bytes2unicode use a proper JSONEncoder to conver bytes->unicode for json.dumps()
removing excessive isinstance(data, bytes) checks
py3: / -> // and list() around .items() that gets modified in loop
moved lbrynet.undecorated to where its actually used and hopefully we can delete it eventually
removed build/upload_assets.py, travis can do all this now
2018-08-24 11:40:43 -04:00
Lex Berezhny
d35d340613
fixing unit tests
...
fixing integration tests
skip running functional tests on travis until they are fixed
2018-08-24 11:37:53 -04:00
Lex Berezhny
4ece422f48
No longer inheriting from object and added proper use of super().
2018-08-24 11:37:53 -04:00
Jack Robison
679c2f403f
fix incorrectly raised DownloadCanceledError for already verified blobs
...
-make InvalidDataError message clearer
-fix BlobReflectorClient result
2018-03-22 13:23:12 -04:00
Jack Robison
e9b9118c2a
whitespace
2018-02-13 10:27:51 -05: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
96d8cb17d9
delete deprecated producer/consumer read methods from BlobFile
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
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
Kay Kurokawa
043758c11f
rename moved_verified_blob as saved_verified_blob
2017-10-06 17:05:16 -04:00
Kay Kurokawa
d9cc81766d
use DeferredLock instead of threading.Lock() as it can cause deadlocks
2017-10-06 17:05:10 -04:00
Kay Kurokawa
533835a732
add comments and docstrings
2017-09-27 17:40:52 -04:00
Kay Kurokawa
f6da00cbab
no need to catch IOError exception here, let it propagage
2017-09-27 17:30:20 -04:00
Kay Kurokawa
3b5690614c
Return HashBlobReader instead of file handle in open_for_reading()
2017-09-27 17:30:20 -04:00
Kay Kurokawa
09e25ba285
add reader, for BlobFile, change original reader to v0
2017-09-27 17:30:20 -04:00
Jack Robison
6cbe86d057
rename is_validated() to get_is_verified() to distinguish from verified property
2017-09-20 14:02:34 -04:00
Jack Robison
8419e1e1d5
change some ValueErrors to IOErrors
2017-09-20 13:59:26 -04:00
Kay Kurokawa
af3ab96815
deleting unused BlobFile.finished_deferred
2017-09-20 13:59:25 -04:00
Jack Robison
14636a5d38
split up HashBlob.py into lbrynet.blob
2017-09-20 13:59:24 -04:00