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
4ece422f48
No longer inheriting from object and added proper use of super().
2018-08-24 11:37:53 -04:00
Lex Berezhny
59e4ac30c2
fixing py2 stuff that broke during py3 fixes
2018-08-24 11:37:53 -04:00
Lex Berezhny
076af7ef43
py3 compatibility updates
2018-08-24 11:37:53 -04:00
Victor Shyba
b1c5fe0b4d
cryptblob write needs bytes on py3
2018-08-24 11:37:53 -04:00
Lex Berezhny
315661208d
integration test publishes actual file instead of just sources
2018-08-24 11:37:53 -04:00
Lex Berezhny
69446491b8
pylint and unit test fixes
2018-08-24 11:37:50 -04:00
Lex Berezhny
5520d518b5
DHT py3 compatibility, mostly commenting out implements() and fixing imports
...
cryptstream py3 support, mostly commenting out implements()
lbry_file py3 support, mostly commenting out implements()
file_manager py3 support, mostly commenting out implements()
core py3 support, mostly commenting out implements() and fixing imports
2018-08-24 11:37:25 -04:00
Victor Shyba
fab932abb6
replace pycrypto->cryptography
2018-05-04 23:56:51 -03:00
Jack Robison
d7bfeae6b8
fix position of stream terminator blob
2018-02-21 16:37:00 -05:00
Jack Robison
e9b9118c2a
whitespace
2018-02-13 10:27:51 -05:00
Jack Robison
68542f3ae1
refactor EncryptedFileDownloader and EncryptedFileManager
...
-remove stream info manager (DBEncryptedMetadataManager)
-split `add_lbry_file` into separate `add_published_file` and `add_downloaded_file` functions
-set the download path upon adding file to the db, use the source file path for publishes
-remove the lbry file manager-wide download directory, set for each file individually
-add claim `metadata`, `claim_name`, `claim_id`, `outpoint`, `txid`, `nout`, `channel_claim_id`, and `channel_name` attributes to EncryptedFileDownloader
2018-02-13 10:27:50 -05:00
Jack Robison
64e04f8a68
refactor start_lbry_file
2018-01-04 21:28:09 -05:00
Jack Robison
2af61460a7
add attributes to lbry file base classes
2018-01-04 21:25:56 -05:00
Jack Robison
2523afa266
catch error from blob with invalid AES key size
2018-01-04 21:25:55 -05: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
1360345395
use blob.open_for_reading() in StreamBlobDecryptor
2017-10-31 15:38:00 -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
Jack Robison
487f2490ab
simplify CryptStreamCreator
2017-09-20 13:59:20 -04:00
Jack Robison
100c18d9b6
send CryptBlobInfo (not a CryptStreamBlobMaker) to DiskBlobManager.creator_finished
2017-09-20 13:59:19 -04:00
Jack Robison
e3cc3992b0
remove unnecessary functions
2017-09-20 13:59:19 -04:00
Jack Robison
632fd764fa
show more information for a blob padding error
2017-09-20 13:59:19 -04:00
Jack Robison
a72fef07c0
inlinecallbacks
2017-09-20 13:59:18 -04:00
Victor Shyba
e69ba64707
pycrypt -> cryptography + remove manual padding, use lib
2017-09-20 13:59:17 -04:00
Victor Shyba
5bbb29fd79
add error handling to blobs creation
2017-09-20 13:59:16 -04:00
Kay Kurokawa
0639bb9865
add support for should_announce feature
2017-08-28 10:43:57 -04:00
Kay Kurokawa
c0a2c6c830
remove blob manager reliance on HashBlob classes
2017-08-28 10:43:57 -04:00
Kay Kurokawa
3479c6ea8d
add docstring and unit test for CryptBlob.py
2017-06-28 12:13:24 -04:00
Job Evers-Meltzer
a38e5c855e
Remove upload_allowed attribute
...
This is unused and largely pulluting the argument list
of too many functions.
2017-02-15 06:48:50 -06:00
Alex Grintsvayg
267c6cbaca
refactor conf.settings
2017-01-16 22:32:54 -05:00
Job Evers-Meltzer
9366a6e561
bug fix: reset blob_requester between start/stop
2017-01-13 08:24:06 -06:00
Job Evers-Meltzer
488c04543d
add TODO comment
2017-01-13 08:24:06 -06:00
Job Evers-Meltzer
1bf1b7624c
more inlineCallback cleanup
2016-12-30 13:28:38 -06:00
Job Evers-Meltzer
227323b7a4
convert more to inlineCallbacks
2016-12-30 13:27:16 -06:00
Job Evers-Meltzer
1256beea96
remove blob_requester from DownloadManager
2016-12-30 13:27:16 -06:00
Job Evers-Meltzer
39b2e44492
Replace settings with conf.settings
...
In the next commit I change conf.settings to be initialized
at runtime instead of load time and so any import of
`from lbrynet.conf import settings` will be and stay None if
it happens before the initialization.
2016-12-30 13:05:18 -06:00
Job Evers-Meltzer
c30ea04959
Remove commented code
...
This is the result of running eradicate (https://github.com/myint/eradicate )
on the code and double-checking the changes.
2016-12-15 18:58:06 -06:00
Job Evers-Meltzer
7bce37a720
pylint: add check for missing-final-newline
2016-12-14 19:21:59 -06:00
Job Evers-Meltzer
b64fa51567
fixup long lines
2016-12-07 09:38:34 -05:00
Job Evers-Meltzer
61a354fa60
add bad-whitespace check to pylint
2016-11-09 11:27:07 -06:00
Job Evers-Meltzer
b68a1838f2
eliminate unused return value
2016-11-04 11:44:50 -05:00
Job Evers-Meltzer
43b2cd1433
cleanup whitespace and long-lines
2016-11-04 11:44:50 -05:00
Job Evers-Meltzer
862055a6de
move settings into conf file
2016-10-27 14:31:27 -05:00
Jack
06a88599df
--http-auth flag to use authentication, refactor settings
...
settings will prefer, in order:
-defaults
-settings in config file
-settings given as environmental variables
-settings given as command line args
2016-10-19 00:12:44 -04:00
Jack
71b989b29b
update from master
...
resolve merge conflicts:
lbrynet/core/client/BlobRequester.py
lbrynet/core/Peer.py
lbrynet/lbryfilemanager/EncryptedFileManager.py
lbrynet/lbrynet_daemon/Daemon.py
lbrynet/lbrynet_daemon/Publisher.py
2016-09-29 23:34:59 -04:00
Job Evers-Meltzer
7dbeb1f2cf
Remove LBRY prefix from class and module names
...
This is the result of running:
grep -RlI LBRY . | xargs sed -i 's/LBRY\([A-Z]\)/\1/g'
2016-09-27 11:18:35 -07:00
Jack
1720cce3b0
negotiated downloads
...
-uploads are still underway
2016-09-27 13:52:44 -04:00
Jimmy Kiselak
b0bfb5e443
use electrum as default
2016-02-23 15:13:34 -05:00