Commit graph

668 commits

Author SHA1 Message Date
Kay Kurokawa ea49cddf52
catch IOError when writing 2017-09-20 13:59:28 -04:00
Jack Robison 85f25a8d99
remove debug logging 2017-09-20 13:59:27 -04:00
Jack Robison 19ff0941f5
fix ClientProtocol. _handle_response_error 2017-09-20 13:59:27 -04:00
Jack Robison adf89a9d1a
logging 2017-09-20 13:59:27 -04:00
Jack Robison 421141b958
raise instead of assert 2017-09-20 13:59:26 -04:00
Jack Robison b9b5e755db
raise rather than assert 2017-09-20 13:59:26 -04:00
Jack Robison ad061b5ea3
use fixed BlobFile type 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
Jack Robison 7d6e62eb77
consolidate HashBlob and BlobFile 2017-09-20 13:59:24 -04:00
Kay Kurokawa e92321a9c1
have BlobFile.open_for_writing() return the writer instead of write and close functions 2017-09-20 13:59:23 -04:00
Kay Kurokawa 39c4db3471
make sure that we don't call HashBlobWriter.finished_cb multiple times when calling close() 2017-09-20 13:59:23 -04:00
Kay Kurokawa 468a16af58
move check for write_handle to the beginning and raise exception when writing to a closed file handle 2017-09-20 13:59:23 -04:00
Kay Kurokawa 196aa24b8b
add HashBlobWriter.close_handle() function to just close the write handle 2017-09-20 13:59:22 -04:00
Kay Kurokawa 94ff4e82bc
remove HashBob._close_writer(), move the closing of write handler to HashBlobWriter 2017-09-20 13:59:22 -04:00
Kay Kurokawa 0f95712a0f
rename HashBlobWriter.cancel() as close() to be more file like 2017-09-20 13:59:22 -04:00
Kay Kurokawa ab513d076b
fix multiple writers writing to the same buffer 2017-09-20 13:59:22 -04:00
Kay Kurokawa f2deee7201
fireback finished_deferred after deleting from self.writers so that BlobFile state is accurate after finished_deferred is called 2017-09-20 13:59:21 -04:00
Kay Kurokawa b655cd4fa6
add better comments for classes in HashBlob.py 2017-09-20 13:59:21 -04:00
Jack Robison 487f2490ab
simplify CryptStreamCreator 2017-09-20 13:59:20 -04:00
Jack Robison cfe73a8627
fix hanging streamprogressmanager 2017-09-20 13:59:19 -04:00
Jack Robison 1148a533bf
raise NotImplementedError on StreamCreator._blob_finished (sanity check) 2017-09-20 13:59:18 -04:00
Jack Robison c53a189605
remove TempBlob, clean up blob classes, use FBP and BytesIO in BlobFile 2017-09-20 13:59:18 -04:00
Victor Shyba 6022aa925b
fix import 2017-09-20 13:59:18 -04:00
Victor Shyba d2fc1daf26
use hashlib 2017-09-20 13:59:17 -04:00
Victor Shyba a6b8327fcf
save using a FBP instead of thread 2017-09-20 13:59:17 -04:00
Victor Shyba 7262e84150
use a buffer to wait for blob completion 2017-09-20 13:59:16 -04:00
Victor Shyba 5d69e74010
use WAL on sqlite3 2017-09-20 13:59:16 -04:00
Victor Shyba 5bbb29fd79
add error handling to blobs creation 2017-09-20 13:59:16 -04:00
Jack Robison 88fcd5b711
update _get_history for change in lbryum 2017-09-20 09:51:52 -04:00
hackrush fbd37c591f Expose include_tip_info param
Goes with lbryio/lbryum#153

Updated changelog and added docs for include_tip_info

Added proper doc for Returns of transaction_list

Fixed some other docs
2017-09-01 02:15:24 +05:30
Kay Kurokawa a9e6c89693 clean up and clarify in docstring when/where None is returned while searching for peers 2017-08-28 10:46:47 -04:00
Kay Kurokawa e0985695ac some pep8 fixes 2017-08-28 10:46:47 -04:00
Kay Kurokawa e2e28338f3 in ConnectionManager, be consistent and initialize conf values in __init__ 2017-08-28 10:46:47 -04:00
Kay Kurokawa a31b6b192f Create an optional way of downloading by head blob first in ConnectionManager 2017-08-28 10:46:47 -04:00
Kay Kurokawa c8bf1d8908 should_announce should be True by default 2017-08-28 10:43:57 -04:00
Kay Kurokawa 0494b11001 remove last_announce_time 2017-08-28 10:43:57 -04:00
Kay Kurokawa 0639bb9865 add support for should_announce feature 2017-08-28 10:43:57 -04:00
Kay Kurokawa 7e95169fbe add get_head_blob_hash() function in DownloadManager 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 8955838191 migrate blob database to have should_announce and last_announce_time 2017-08-28 10:43:57 -04:00
Jack Robison 8786133cd4
Revert "fix BlobFile._close_file"
reverts 5d24f7
2017-08-15 17:48:56 -04:00
Jack Robison 5d24f75ce2 fix BlobFile._close_file 2017-08-15 12:34:00 -04:00
Umpei Kay Kurokawa 34ed2467f2 Merge pull request #829 from lbryio/fix_abandon
Expose abandon by txid/nout in Daemon
2017-08-14 22:51:39 -04:00
Jack Robison 09d336bd0c
don't block blob_completed on the blob being announced
this considerably slows down the rate at which reflector server can
receive blobs
2017-08-10 13:53:10 -04:00
Alex Grintsvayg 02d4444780 fixed shutdown messages 2017-08-09 19:10:11 -04:00
Kay Kurokawa 4e8d8dfc23 Expose abandon by txid/nout in Daemon 2017-08-08 13:55:03 -04:00
Jack Robison c5fe8b5381
add claim_send_tip 2017-08-04 10:48:13 -04:00
Jack Robison 7b93073f7b
Merge branch 'master' into remove_tempblobmanager 2017-08-03 22:26:35 -04:00
Zestyr 2f2b27e872
Remove old float formatting 2017-07-31 10:38:20 -04:00
Kay Kurokawa 79d25f710d remove base BlobManager class 2017-07-27 13:38:40 -04:00
Kay Kurokawa d5664efdbf no longer allow initialization of TempBlobManager in Session 2017-07-27 11:38:29 -04:00
Kay Kurokawa f9b728530e Remove TempBlobManager 2017-07-27 11:38:23 -04:00
hackrush ecd602e5fb Added validation for currencies.
Now while setting currency via API/CLI it is checked that the user has
not entered any currency other that LBC, BTC or USD.

Fixes #778
2017-07-24 16:38:15 -04:00
Kay Kurokawa 15d672bfe0 fix if statment for resolving certificate 2017-07-20 14:05:00 -04:00
Kay Kurokawa fa1ebc995c fix if statement causing claim with certificate to not get cached 2017-07-20 12:38:06 -04:00
Kay Kurokawa e4df0bdb5f create UnknownOutpoint exception and use it 2017-07-17 12:17:35 -04:00
Kay Kurokawa 3cd972a4da fix UnknownNameError message 2017-07-17 12:01:20 -04:00
Kay Kurokawa 24035406d6 have claim_show no longer handle name argument, do not catch exceptions here as they will be caught in Wallet 2017-07-17 12:01:20 -04:00
Kay Kurokawa 21c1786dc6 rename Wallet.get_claim() to get_claim_by_claim_id() 2017-07-17 12:01:20 -04:00
Jack Robison 7f36bed79d
increase third party logger levels 2017-07-14 14:29:12 -04:00
Jack Robison 4c7c94e190
fix loggly setup 2017-07-14 14:29:02 -04:00
Jack Robison 142d30bbcf
fix HTTPSHandler 2017-07-14 14:29:01 -04:00
Kay Kurokawa 4bebfe9e25
fix malformed supports and amount in cache 2017-07-14 12:53:40 -04:00
Kay Kurokawa cbd85cd7d8
DRY fix for _handle_claim_result 2017-07-14 12:53:39 -04:00
Jack Robison 65bc93f2fe raise error on negative point reservation 2017-07-07 16:43:13 -04:00
Kay Kurokawa 4019f2a2e1 fix problems with DownloadManager startup and stop 2017-07-05 16:33:02 -04:00
Kay Kurokawa be75c1bc5b break up GetStream.start() function further for testing 2017-07-05 16:33:02 -04:00
Kay Kurokawa fc40f5525a add download_sd_blob timeout to GetStream 2017-07-05 16:33:02 -04:00
Kay Kurokawa bd4dd8e114 add timeout to download_sd_blob and StandaloneBlobDownloader 2017-07-05 16:33:02 -04:00
Kay Kurokawa 1c1b5096be use LoopingCall in SingleProgressManager to simplify it 2017-07-05 16:33:02 -04:00
Jack Robison e71389c7e3 update lbryum imports 2017-06-27 19:02:25 -04:00
Kay Kurokawa 14b2bb3019 add test for BlobManager 2017-06-23 10:24:27 -04:00
Kay Kurokawa f9b4d46599 work on removing manage from BlobManager and simplify blob deletion 2017-06-23 10:24:27 -04:00
Jack Robison bc34c22e58 update daemon settings and settings_set 2017-06-21 22:54:47 -04:00
Kay Kurokawa 59893e8fa8 fix typo which may not shut down blob_tracker 2017-06-16 14:00:08 -04:00
Jack Robison 9c88f820f9 add change_address param to publish 2017-06-12 13:43:15 -04:00
Jack Robison c56ac12913 add claim_send_to_address 2017-06-12 10:30:18 -04:00
Jack Robison ea0c6eca32 multi resolve 2017-06-09 14:48:55 -04:00
Jack Robison 2cfd29564b add resolution exception types 2017-06-09 14:48:55 -04:00
Jack Robison 82118e6692 fix blob manager db race condition 2017-06-09 14:09:17 -04:00
Kay Kurokawa a577f38d80 add claim address as an option to publish API command 2017-06-04 19:26:28 -04:00
Jack Robison 96927ec985 remove lbrynet.metadata 2017-06-02 11:50:50 -04:00
Kay Kurokawa da8256ad52 catch UnknownNamError instead of base Exception for resolve command 2017-06-01 16:26:03 -04:00
Jack Robison cd67ca6ce3 remove clean_bad_records 2017-05-11 14:31:50 -04:00
Jack Robison ecaa5249b4 migrate name metadata table 2017-05-11 14:31:50 -04:00
Jack Robison ca092262fb fix name metadata db race condition 2017-05-11 14:31:50 -04:00
Jack Robison 12097e3bfa broadcast transactions and claim certificates as defer succeed 2017-05-11 14:31:50 -04:00
Jack Robison 632462e1d5 only save stream claims with a sd hash to name_metadata table 2017-05-11 14:19:52 -04:00
Jack Robison 56e214feb6 fix save_name_metadata 2017-05-10 11:26:14 -04:00
Jack Robison 2a8a984efa add claim and uri caching to wallet and wallet storage 2017-05-03 17:14:36 -04:00
Alex Grintsvayg 113f8ff2d7 fix set_build and version 2017-05-03 13:00:01 -04:00
Jack Robison a9868a4f17 fix lbryum shut down 2017-05-01 21:09:23 -04:00
Jack Robison dcdd4d8fd6 wallet config bug 2017-05-01 21:09:23 -04:00
Alex Grintsvayg 2353dbcb00 refactor analytics 2017-04-26 14:19:03 -04:00
Alex Grintsvayg cd16383fa6 use git version when in dev 2017-04-26 14:18:41 -04:00
Alex Grintsvayg cdf67de46c pylint type checking 2017-04-25 14:36:14 -04:00
Jack Robison dffaf745ec wait for wallet subscriptions 2017-04-24 00:19:46 -04:00
Jack Robison dc7193bb8f Merge pull request #619 from wallermadev/master
Adding functionality to check the balance of a given wallet.
2017-04-23 20:27:36 -04:00
Mathew WAller c9c88055c3 Requested changes 2017-04-23 18:33:06 +01:00
Jack Robison 1ecb32b3ed less intensive blob availability check 2017-04-21 13:32:59 -04:00
Mathew WAller 6e37a0536a Removing pylint issues 2017-04-21 02:59:40 +01:00
Mathew WAller 8f0f27da1a Adding functionality to check the balance of a given wallet. 2017-04-21 02:16:26 +01:00
Alex Grintsvayg 492cbc83c9 pylint 2017-04-19 16:00:39 -04:00
Alex Grintsvayg 7f7a6a619f tests for windows, simplify pylint 2017-04-19 14:59:06 -04:00
Jack Robison bbfb5a7853 include schema version in version() response 2017-04-19 13:54:38 -04:00
Jack Robison 6ccab8bcb8 get availability by uri 2017-04-10 14:29:24 -04:00
Alex Grintsvayg 8db7c37fa7 exploring dht 2017-04-10 13:45:43 -04:00
Jack Robison a43127fffc add channel_new logging, fix docstring 2017-04-10 11:01:28 -04:00
Jack Robison 9531bdf396 fix file_list for files with abandoned claims 2017-04-09 21:44:58 -04:00
Jack Robison 04c119543f fix resolution and file_list bugs 2017-04-09 17:49:31 -04:00
Jack Robison ccc94a0db9 update wallet for new lbryum functionality 2017-04-06 20:50:29 -04:00
Jack Robison 45b3837638 use ClaimDict.source_hash in utils.get_sd_hash 2017-04-06 20:50:28 -04:00
Kay Kurokawa 931038d478 bug fixes for lbryschema integration 2017-04-04 20:30:51 -04:00
Kay Kurokawa ca041b5dc4 lbryschema integration 2017-04-04 20:30:51 -04:00
Alex Grin 5ec891c9ac Merge pull request #572 from lbryio/minor-wallet-updates
Minor wallet updates
2017-03-31 10:30:48 -04:00
Alex Grin 32e2ee8bf5 Merge pull request #569 from lbryio/fix_update
Remove update_metadata() function
2017-03-29 13:10:15 -04:00
Alex Grintsvayg 1916b990b7 typo 2017-03-28 17:14:13 -04:00
Alex Grintsvayg 84d9461deb Minor wallet updates 2017-03-28 17:13:59 -04:00
Alex Grintsvayg 9e5ac6f73e typo 2017-03-28 17:13:21 -04:00
Kay Kurokawa bb4bf620f4 remove update_metadata() function 2017-03-27 16:46:41 -04:00
Kay Kurokawa ddd8fd1a77 decrease connection timeout 2017-03-27 15:11:15 -04:00
Kay Kurokawa 3af5e9dc5c connect to multiple peers at once in manage 2017-03-27 15:11:15 -04:00
Kay Kurokawa b0fd6e57df create and properly distinguish get_unused_address and get_new_address 2017-03-27 12:41:53 -04:00
Alex Grintsvayg a2a29fc02c switch to txrequests to marry async requests to twisted 2017-03-24 17:20:33 -04:00
Alex Grintsvayg 0c42bc6382 fixes, refactors 2017-03-23 14:11:01 -04:00
Alex Grintsvayg 25d9f008de fix error handling in jsonrpc 2017-03-23 11:09:40 -04:00
Alex Grintsvayg f515583ec4 fix _get_transaction 2017-03-21 12:11:47 -04:00
Alex Grintsvayg 8f3b53197f dont add expected payment when payment rate is 0 2017-03-20 15:37:45 -04:00
Jack Robison a95c49bd08 add wallet_list 2017-03-19 10:52:51 -04:00
Kay Kurokawa 4edd13f4f4 fix wallet_public_key API command 2017-03-17 16:45:34 -04:00
Alex Grintsvayg 49b18a1fca minor 2017-03-15 16:33:41 -04:00
Alex Grintsvayg 29dea4901e add --version flag, remove simplejson dependency 2017-03-15 16:24:25 -04:00
Kay Kurokawa b2c2edfb12 fixed bug of decimal not being subtractable from float 2017-03-10 18:33:21 -05:00
Kay Kurokawa 8c61185387 handle decimal encoded string output from lbryum 2017-03-10 12:56:58 -05:00
Kay Kurokawa 98d3a4cb46 fix api consistency issues from lbryum 2017-03-10 11:52:12 -05:00
Kay Kurokawa 881efabc0c remove unused _get_status_of_claim() and get_name_and_validity_for_sd_hash() function in Wallet 2017-03-09 12:02:36 -05:00
Jack Robison 5d6ca0aae6 add get_sd_hash to utils 2017-03-09 10:39:25 -05:00
Alex Grintsvayg 68f5588bd9 make loggly logs less verbose 2017-03-08 11:23:28 -05:00
Kay Kurokawa 931925be15 remove start and reveal from file_utils 2017-03-07 21:17:06 -05:00
Jack Robison e2cc212eb8 Merge pull request #512 from lbryio/file-list-refactor
File list refactor
2017-03-07 20:38:04 -05:00
Alex Liebowitz 18c690d801 Add string comparison to ClaimOutpoint 2017-03-07 18:31:05 -05:00
Jack Robison 9744287370 change attribute "uri" to "name" 2017-03-07 18:29:44 -05:00
Kay Kurokawa 9755e9b11f Improvements to exchange rate manager 2017-03-03 12:50:47 -05:00
Kay Kurokawa 88f270180c add check in case local height is less than zero 2017-02-27 13:28:58 -05:00
Kay Kurokawa 824fbcc25a adding timeout to ClientProtocol 2017-02-27 13:02:35 -05:00
jobevers 70cf179139 Merge remote-tracking branch 'origin/master' into electron 2017-02-21 12:07:36 -06:00
jobevers 1d30ae447a Merge branch 'master' into electron 2017-02-21 10:47:28 -06:00
Job Evers‐Meltzer 998892ef0b Merge pull request #446 from lbryio/reseed
Script to Reseed a File
2017-02-21 06:11:32 -06:00
Kay Kurokawa 3522f9af7d use utils.call_later in DHTHash Announcer 2017-02-20 16:48:29 -05:00
Kay Kurokawa c27fe7af31 use utils.call_later in ConnectionManager 2017-02-20 16:48:29 -05:00