Commit graph

1153 commits

Author SHA1 Message Date
Lex Berezhny
7a4e5dcb05 handle claims in abandoned channels 2020-07-12 12:02:58 -04:00
Lex Berezhny
24a88db595 console fix 2020-07-12 09:22:06 -04:00
Lex Berezhny
915233c96c fixes 2020-07-12 08:55:25 -04:00
Lex Berezhny
aa9365f218 refactored sync 2020-07-11 18:18:33 -04:00
Lex Berezhny
15b8891fce make resolve command work from cli 2020-07-07 10:52:41 -04:00
Lex Berezhny
f8a8a75ae9 regenerated interface metadata 2020-07-07 10:49:40 -04:00
Lex Berezhny
d18ed6c19b wrap short url creation in try/except 2020-07-07 00:20:11 -04:00
Lex Berezhny
4aa44d3b5a set work_mem for postgres 2020-07-06 22:42:15 -04:00
Lex Berezhny
34a9dff141 fixed conflict with two cursors when one is reading and another is commiting 2020-07-06 09:18:22 -04:00
Lex Berezhny
7d9bf03574 refactored 2020-07-05 23:03:45 -04:00
Lex Berezhny
3fe1981657 faster inputs/outputs sync 2020-07-03 15:47:25 -04:00
Lex Berezhny
192c79c49c capture stderr before process pool starts 2020-07-01 18:32:20 -04:00
Lex Berezhny
5883c9bc6c hide error from protobuf 2020-06-30 23:13:38 -04:00
Lex Berezhny
4b50d1e329 vacuum before setting inputs 2020-06-30 19:37:00 -04:00
Lex Berezhny
39d8a20fd5 pgcopy COPY command 2020-06-30 17:32:51 -04:00
Lex Berezhny
b45a222f98 event subscription and publishing bug fixes 2020-06-29 18:10:26 -04:00
Lex Berezhny
2495df8859 null in claim description 2020-06-27 23:14:28 -04:00
Lex Berezhny
635aebfeeb fixed null claim name support for postgres 2020-06-27 23:00:12 -04:00
Lex Berezhny
f2ff4410dc re-enable postgres integration tests 2020-06-27 22:24:59 -04:00
Lex Berezhny
564018c937 better debug badrow 2020-06-27 11:46:49 -04:00
Lex Berezhny
4d1eafc0a4 debug badrow 2020-06-27 09:39:23 -04:00
Lex Berezhny
211f8b2e59 pause console elapsed timer when no blocks read/save 2020-06-27 09:22:52 -04:00
Lex Berezhny
9500be26fd no order by file 2020-06-26 23:37:10 -04:00
Lex Berezhny
017ef5b41a order by file 2020-06-26 23:35:11 -04:00
Lex Berezhny
4b19861a74 console improvements 2020-06-26 21:52:01 -04:00
Lex Berezhny
5a0a987f0c refactored and simplified the blockchain sync 2020-06-26 10:39:58 -04:00
Lex Berezhny
4cb4659489 removed Takeovers for now 2020-06-26 10:39:16 -04:00
Lex Berezhny
e64b108404 console 2020-06-23 13:11:16 -04:00
Lex Berezhny
71e14c8e63 least 2020-06-22 20:30:05 -04:00
Lex Berezhny
9757c69189 pylint 2020-06-22 11:02:59 -04:00
Lex Berezhny
d8fb31aedd addeed greatest sql function that supports postgres and sqlite 2020-06-22 10:52:17 -04:00
Lex Berezhny
54a0bf9290 fixups to make lbrynet work on cli with postgres 2020-06-21 23:21:43 -04:00
Lex Berezhny
a3ef8d7411 pylint 2020-06-21 20:14:14 -04:00
Lex Berezhny
9198877098 include_is_spent no longer needed 2020-06-21 19:52:39 -04:00
Lex Berezhny
46da2584ca db 2020-06-21 19:51:09 -04:00
Lex Berezhny
53b7d0a58b blockchain 2020-06-21 19:50:53 -04:00
Lex Berezhny
d1a243247d progress 2020-06-19 14:28:34 -04:00
Lex Berezhny
a39f87b3c5 more resilient test 2020-06-10 15:25:45 -04:00
Lex Berezhny
96d1926da4 upgrad pyyaml 2020-06-09 23:25:42 -04:00
Lex Berezhny
2927875830 placeholder classes to pass pylint 2020-06-06 13:20:26 -04:00
Lex Berezhny
82062b5601 trying codecov 2020-06-06 12:20:19 -04:00
Lex Berezhny
db1f984558 moved fast_sync.py script 2020-06-05 19:21:39 -04:00
Lex Berezhny
e66445b46e deleted lbry.extras 2020-06-05 19:18:00 -04:00
Lex Berezhny
82b69109bd pylint 2020-06-05 00:51:55 -04:00
Lex Berezhny
ec4e36446c update lbrycrd download URL 2020-06-05 00:38:57 -04:00
Lex Berezhny
3ef83febc0 progress 2020-06-05 00:35:22 -04:00
Lex Berezhny
ffecd02fbc deleted db/search 2020-06-05 00:31:26 -04:00
Lex Berezhny
ebddb1f0f5 moved exchange rate manager 2020-06-04 18:48:44 -04:00
Lex Berezhny
29b1f93699 switch cli to use pre-generated interface 2020-06-04 17:51:01 -04:00
Lex Berezhny
c12e07de11 stricter check for old windows directory structure 2020-06-04 17:49:59 -04:00
Lex Berezhny
726bae97b0 generated lbry.service.metadata 2020-06-04 17:29:34 -04:00
Lex Berezhny
5efb36ffd2 windows & mac path tests 2020-06-04 17:29:34 -04:00
Lex Berezhny
9a40381f5a imports 2020-06-04 17:29:34 -04:00
Lex Berezhny
47f6d542c5 import fix 2020-06-04 17:29:34 -04:00
Lex Berezhny
a042377a7b run unittest on multiple platforms 2020-06-03 19:43:08 -04:00
Lex Berezhny
596ed08395 EventQueuePublisher uses a buffer to reduce number of tasks created 2020-05-22 18:40:21 -04:00
Lex Berezhny
2af29b892b new cli 2020-05-20 18:05:49 -04:00
Lex Berezhny
7ffb169376 Service.run -> Daemon.run 2020-05-20 18:05:13 -04:00
Lex Berezhny
d11f4f9bed switched Client class from plain GET RPC to WebSockets 2020-05-20 18:04:18 -04:00
Lex Berezhny
f2e844c476 ignore warnings when parsing old claims 2020-05-20 18:02:47 -04:00
Lex Berezhny
4a9f9906a0 event streams can now be "closed" and thus you can listen for .last event 2020-05-20 18:01:34 -04:00
Lex Berezhny
b7ff6569e4 added Database.temp_sqlite_regtest 2020-05-20 17:59:26 -04:00
Lex Berezhny
12915143b8 improved directory structure configurability 2020-05-20 17:57:42 -04:00
Lex Berezhny
06d93e667a event reporting from blockchain.sync 2020-05-20 17:54:38 -04:00
Lex Berezhny
b341187b14 moved necessary code to get download directory to upstream appdirs and deleted winpaths.py 2020-05-19 17:05:03 -04:00
Lex Berezhny
be6ebf0047 refactored wallet and mnemonic 2020-05-18 08:26:36 -04:00
Lex Berezhny
7c4f943bcb updated to testcase 2020-05-18 08:24:44 -04:00
Lex Berezhny
5b5c45ea76 API is now typed and includes sharable argument lists 2020-05-18 08:24:15 -04:00
Lex Berezhny
6986211c1e lbry.blockchain fixes and cleanup 2020-05-18 08:22:23 -04:00
Lex Berezhny
8ac78990d8 updated setup.py and lbry/__init__.py now includes imports to solve cyclic import issues 2020-05-18 08:20:13 -04:00
Lex Berezhny
4f879bbbae new cli 2020-05-18 08:15:53 -04:00
Lex Berezhny
e3f080a7ad extract singular tags, languages, locations from kwargs 2020-05-18 08:15:24 -04:00
Lex Berezhny
d232eeaf81 plain execute function 2020-05-18 08:14:30 -04:00
Lex Berezhny
5d6388b366 added db_url to config 2020-05-18 08:13:29 -04:00
Lex Berezhny
955e44631d new API parser 2020-05-12 11:02:34 -04:00
Lex Berezhny
d488bfd9d4 refactored mnemonic.py 2020-05-09 18:33:23 -04:00
Lex Berezhny
391b95fd12 lbry.wallet.words minified removing line breaks and extra space and converted to tuples 2020-05-08 16:25:56 -04:00
Lex Berezhny
4b172e4180 updated testcase to use api instead of daemon 2020-05-08 10:34:57 -04:00
Lex Berezhny
29ef4425b0 fix import in managed_stream 2020-05-08 10:33:41 -04:00
Lex Berezhny
558b1aeadf made lbry.db.queries.add_channel_keys_to_txo_results async 2020-05-08 10:30:40 -04:00
Lex Berezhny
41ce3e4ad8 fix Output source offset calculation and made generat_channel_private_key async 2020-05-08 10:23:50 -04:00
Lex Berezhny
8c91777e5d refactored lbry.wallet 2020-05-06 10:53:31 -04:00
Lex Berezhny
db89607e4e added create_default_wallet and create_default_account conf options 2020-05-06 10:50:29 -04:00
Lex Berezhny
d476f08d13 convenience methods on ledger 2020-05-06 10:50:00 -04:00
Lex Berezhny
2a0c653c37 claim_search progress 2020-05-01 23:25:07 -04:00
Lex Berezhny
219c7cf37d removed lbry.wallet.server and lbry.wallet.orchstr8 2020-05-01 23:22:17 -04:00
Lex Berezhny
2f575a393f minor updates to stream_manager.py 2020-05-01 09:34:57 -04:00
Lex Berezhny
9554b66a37 wip lbry.service 2020-05-01 09:33:58 -04:00
Lex Berezhny
533f31cc89 wip lbry.wallet 2020-05-01 09:33:10 -04:00
Lex Berezhny
fef09c1773 wip misc 2020-05-01 09:31:33 -04:00
Lex Berezhny
6a33d86bfe wip lbry.db 2020-05-01 09:29:44 -04:00
Lex Berezhny
ccd32eae70 wip lbry.blockchain 2020-05-01 09:28:51 -04:00
Lex Berezhny
c61c9726b0 lbry/blockchain/constants.py -> lbry/constants.py 2020-04-28 13:28:30 -04:00
Lex Berezhny
fd5be69d55 lbry/wallet/server/db/{reader,fts} -> lbry/db 2020-04-28 12:26:17 -04:00
Lex Berezhny
1f5dbc3eb8 renamed: wallet/stream.py -> event.py 2020-04-25 08:29:25 -04:00
Lex Berezhny
4dd85a169b cleaning up wallet directory, mostly moving things to blockchain 2020-04-25 08:25:29 -04:00
Lex Berezhny
fe547f1b0e dropping custom wallet rpc implementation 2020-04-25 08:05:46 -04:00
Lex Berezhny
8545ab880b psycopg2 returns Decimal for SUM() 2020-04-12 15:30:25 -04:00
Lex Berezhny
4e85f34353 pylint 2020-04-12 12:05:03 -04:00
Lex Berezhny
777c6342f8 merged some old stashed code 2020-04-12 11:59:00 -04:00
Lex Berezhny
10c262a095 postgres 2020-04-12 11:06:05 -04:00
Lex Berezhny
4048cfb3e8
Update node.py 2020-04-11 21:20:02 -04:00
Lex Berezhny
42224dadb6 pylint 2020-04-11 20:15:04 -04:00
Lex Berezhny
53fc94d688 pylint and sqlalchemy 1.4 2020-04-11 20:01:10 -04:00
Lex Berezhny
ae9d4af8c0 postgresql support added 2020-04-11 17:27:41 -04:00
Lex Berezhny
2309d6354c schema chaining 2020-04-08 19:03:01 -04:00
Lex Berezhny
fd2f9846e9 parsing and inserting works 2020-04-08 19:03:01 -04:00
Lex Berezhny
4c0fbb84d6 reproduce issue with lbrycrd -reindex 2020-04-08 19:03:01 -04:00
Lex Berezhny
6d93f97b51 Transaction._deserialize now optionally accepts stream and returns self 2020-04-08 19:03:01 -04:00
Lex Berezhny
2ee13ce39f BCDataStream can now also take file pointer as argument 2020-04-08 19:03:01 -04:00
Lex Berezhny
bad4320ddf initial import of fast sync 2020-04-08 19:03:01 -04:00
Alex Grintsvayg
149d343201
drop a few unused conf vars 2020-04-07 16:11:23 -04:00
Lex Berezhny
496cc79ba8 v0.68.0 2020-04-06 12:55:21 -04:00
Jack Robison
d615f6761a
automatically batch large resolve requests 2020-04-06 12:03:33 -04:00
Jack Robison
5b29894048
add reset clients counter to prometheus 2020-04-06 12:03:33 -04:00
Victor Shyba
b2f70c7120 return none for unconfirmed time estimation 2020-04-06 06:03:35 -03:00
Jack Robison
87cdf1e3a0
improve test_reorg_change_claim_height 2020-04-05 16:58:36 -04:00
Jack Robison
57fd47022e
test_reorg_change_claim_height 2020-04-03 13:39:44 -04:00
Jack Robison
5eafd3bf6b
feedback 2020-04-03 13:39:44 -04:00
Jack Robison
640b5b0ea9
delete_claims_above_height with thread lock 2020-04-03 13:39:44 -04:00
Jack Robison
e4fb2f4680
test_reorg_dropping_claim 2020-04-03 13:39:44 -04:00
Jack Robison
f7065c6f0c
add reorg count metric to prometheus 2020-04-03 13:39:44 -04:00
Jack Robison
64f7f837e7
delete claims above reorg height from the database 2020-04-03 13:39:44 -04:00
Jack Robison
e94c28cfa2
fix header checkpoints on testnet 2020-04-03 12:21:17 -04:00
Victor Shyba
bac09e9b9f bump checkpoints 2020-04-03 12:26:52 -03:00
Lex Berezhny
962d04ae17 fix txo_spend 2020-04-01 21:03:56 -04:00
Lex Berezhny
f28e3bfe37 lint 2020-04-01 20:53:09 -04:00
Lex Berezhny
6474c86d32 cleaned up *_list commands 2020-04-01 20:44:34 -04:00
Lex Berezhny
769ea8cdfe added --is_spent filter to txo list/sum commands 2020-03-31 23:08:51 -04:00
Lex Berezhny
052e77dd5a v0.67.2 2020-03-31 17:47:19 -04:00
Lex Berezhny
f9aa95c987 default to None for all values in wallet_status when wallet_manager not started yet 2020-03-31 17:22:13 -04:00
Lex Berezhny
a5d06fb4a4 wallet_status no longer fails if wallet component has not started 2020-03-31 16:20:13 -04:00
Lex Berezhny
d5e5d90bdc v0.67.1 2020-03-31 12:38:38 -04:00
Lex Berezhny
6f22f6a59f use ceil() on duration float() instead of int() directly 2020-03-31 10:57:37 -04:00
Lex Berezhny
5ec74f8abe ffmpeg file analysis returns duration as integer now 2020-03-31 10:28:04 -04:00
Lex Berezhny
16d7547e03 changed default txo_spend batch_size default to 500 from 1000 2020-03-30 22:48:05 -04:00
Lex Berezhny
767112dcda updated txo_spend docs 2020-03-30 21:45:58 -04:00
Lex Berezhny
81e23d1d8c v0.67.0 2020-03-30 19:43:45 -04:00
Jack Robison
e7cded7511 check ffmpeg/ffmprobe paths in a thread 2020-03-30 19:11:04 -04:00
Jack Robison
33fbd715c0 don't block status on connectivity check 2020-03-30 19:11:04 -04:00
Jack Robison
25ba5b867c dont recheck ffmpeg installation in status 2020-03-30 19:11:04 -04:00
Victor Shyba
1b83a1d09a test and fix verifying from middle 2020-03-30 19:42:27 -03:00
Victor Shyba
d2fb7a7151 lock only when fetching, giving a chance for tip updates 2020-03-30 19:42:27 -03:00
Victor Shyba
7ad3447598 repair tip on open 2020-03-30 19:42:27 -03:00
Lex Berezhny
886d1e8a19 added --include_full_tx option to txo_list 2020-03-30 18:15:13 -04:00
Lex Berezhny
6de7a035fa added preview/blocking back into doc string 2020-03-30 17:47:38 -04:00
Lex Berezhny
48d2497eb2 added txo_spend command to support liquidating large number of txos (eg. tips) 2020-03-30 17:47:38 -04:00
Lex Berezhny
a8153627c6 move on_read.first to earlier 2020-03-30 17:02:08 -04:00
Lex Berezhny
ca31363180 listen for on_read.first before it is triggered 2020-03-30 14:53:52 -04:00
Lex Berezhny
0422d2a021 estimated timestamp should be integer 2020-03-29 19:39:37 -04:00