Commit graph

513 commits

Author SHA1 Message Date
Lex Berezhny
459716bd6e initial RETURN_OP based purchase metadata 2019-10-30 23:00:45 -04:00
Lex Berezhny
41e0e6762c added wallet management tests and address unsubscribe feature on wallet server 2019-10-30 17:59:12 -04:00
Victor Shyba
1391c1d607 remove bandwidth and subscriptions limits from wallet server 2019-10-29 19:51:26 -04:00
Lex Berezhny
8e5d47061f check txo.has_address before calling txo.get_address() 2019-10-29 11:53:34 -04:00
Lex Berezhny
99ce40f736 reduce output on travis and dont install python2 on mac build 2019-10-26 15:02:43 -04:00
Lex Berezhny
d2315f4fd7 added ledger.on_ready to know when ledger is finished syncing 2019-10-26 15:01:17 -04:00
Hugo
223bcdc261 Revert changes to generated files 2019-10-26 10:36:52 -04:00
Hugo
087124ce42 Update unit test asserts 2019-10-26 10:36:52 -04:00
Hugo
c5cfd8f40e Upgrade Python syntax with pyupgrade --py37-plus 2019-10-26 10:36:52 -04:00
Lex Berezhny
7b86b3843f refactored and updates all list commands to always be paginated 2019-10-26 00:15:19 -04:00
Julin S
c61fae05d6 Convert some format() strings in lbry and torba to fstrings 2019-10-25 20:47:39 -04:00
Lex Berezhny
a7f8febed7 dont error if blank password was set previously 2019-10-23 10:45:55 -04:00
Lex Berezhny
ad6bd840a9 make decrypt atomic, if it fails the state for all encrypted values in account does not change 2019-10-18 18:08:43 -04:00
Lex Berezhny
0fa9e8d9f5 if decrypted private key is empty, no longer save the encrypted empty string as private key 2019-10-18 18:08:43 -04:00
Lex Berezhny
583833017b refactor save and encryption check 2019-10-18 18:08:43 -04:00
Lex Berezhny
d50ebcf9eb do not save wallet if gap did not change, also dont encrypt on save if already encrypted 2019-10-18 18:08:43 -04:00
Lex Berezhny
81ddf7e1d2 use an assert to check password 2019-10-18 18:08:43 -04:00
Lex Berezhny
180035296e support unlocking with blank password but throw an error when encrypting with blank password 2019-10-18 18:08:43 -04:00
Lex Berezhny
5cebc7f5cd pylint 2019-10-18 12:02:36 -04:00
Lex Berezhny
1c8aad7a07 fix for encrypted wallet with import read-only channel accounts 2019-10-17 22:28:44 -04:00
Lex Berezhny
7b5f23e17d incorporate password in the wallet.hash 2019-10-16 15:49:10 -04:00
Lex Berezhny
d1a123997d sync_apply always updates local password if encrypt-on-disk is enabled 2019-10-16 12:06:05 -04:00
Lex Berezhny
bcd69f812e sync_apply overwrites local password when encrypt-on-disk is true 2019-10-16 12:06:05 -04:00
Lex Berezhny
e5be1ff157 bug fixes and encrypt-on-disk preference 2019-10-16 12:06:05 -04:00
Lex Berezhny
b8b24da292 encrypt/decrypt/lock/unlock commands return True 2019-10-14 12:57:09 -04:00
Lex Berezhny
45eef03576 fixes 2019-10-14 12:57:09 -04:00
Lex Berezhny
270f77df24 wallet encryption 2019-10-14 12:57:09 -04:00
Lex Berezhny
fea7275148 mypy fixes 2019-10-12 20:23:29 -04:00
Lex Berezhny
64581fc81b pylint 2019-10-12 20:23:29 -04:00
Lex Berezhny
37ae302fc6 timestamped top-level wallet preferences 2019-10-12 20:23:29 -04:00
StrikerRUS
eb8a88dbd6 refactored integration folder as well 2019-10-11 10:31:54 -04:00
StrikerRUS
62e3258dda revert spaces fixes 2019-10-11 10:31:54 -04:00
StrikerRUS
9959d2c70d use more specific asserts in torba tests 2019-10-11 10:31:54 -04:00
Hugo
3a3a9b5f4e Fix spelling 2019-10-03 21:40:06 -04:00
Victor Shyba
b3f087dbc7 fix fastest session for when online but unavailable 2019-09-30 10:58:11 -04:00
Victor Shyba
4231e7f3ff fix for new pylint in torba 2019-09-24 12:23:34 -03:00
Lex Berezhny
1b0d802941 is_change bug fix 2019-09-23 13:49:50 -04:00
Lex Berezhny
1d090765ba pylint dict comp 2019-09-23 13:49:50 -04:00
Lex Berezhny
6c6050528a windows doesnt have json_group_object sqlite function available, switching to group_concat 2019-09-23 13:49:50 -04:00
Lex Berezhny
ea434e3469 wallet_id related test fixes 2019-09-23 13:49:50 -04:00
Lex Berezhny
84587ac232 wallet commands and wallet_id argument to other commands 2019-09-23 13:49:50 -04:00
Victor Shyba
9c86cb7954 proper dict formatting on tests 2019-09-18 19:28:11 -04:00
Victor Shyba
ef94c1eccc use existing donation_address instead 2019-09-18 19:28:11 -04:00
Victor Shyba
64eaa5e3aa add options to set server description, payment address and daily fee 2019-09-18 19:28:11 -04:00
Victor Shyba
817f01593e call the correct method on is_valid_address 2019-09-18 19:19:34 -04:00
Jack Robison
abac82c1c6
skip test_fetchall_prevents_sqlite_misuse on travis
-print how many attempts the race condition took to trigger
2019-09-17 12:44:43 -04:00
Jack Robison
02c51c6059
typing 2019-09-17 12:09:19 -04:00
Jack Robison
46b45d0387
gotta fetch 'em all 2019-09-17 12:09:19 -04:00
Jack Robison
1aa2983216
fix db errors during shutdown 2019-09-17 12:09:19 -04:00
Jack Robison
287902f01b
test fetchall prevents SQLITE_MISUSE 2019-09-17 12:09:19 -04:00
Jack Robison
7dc3e4e7a1
test verbosity 2019-09-17 12:09:19 -04:00
Jack Robison
0b31aad901
test binding errors vs sqlite_misuse race errors 2019-09-17 12:09:19 -04:00
Lex Berezhny
b7c2054a66 mypy fixes 2019-09-17 09:08:29 -04:00
Lex Berezhny
81f16d7061 refactored address_list API to be more detailed 2019-09-17 09:08:29 -04:00
Lex Berezhny
3c46c6cbb9 fix mypy type issue 2019-09-16 13:21:45 -04:00
Lex Berezhny
d31f09c174 client wallet db versioning 2019-09-16 13:21:45 -04:00
Lex Berezhny
7c22111ae0 channel certificate and channel claim can be different accounts, also JSON RPC responses now include a field showing if the channel certificate is available 2019-09-16 13:21:45 -04:00
Alex Grintsvayg
2026848a77
default wallet server to LBC coin 2019-09-16 12:01:38 -04:00
Jack Robison
5fcca6ed0c
feedback
-add comment for the fetchall() that if removed will cause SQLITE_MISUSE
2019-09-10 15:03:17 -04:00
Jack Robison
a05c44ad1e
fix SQLITE_MISUSE
fixes https://github.com/lbryio/lbry-sdk/issues/2164
2019-09-09 22:38:53 -04:00
Victor Shyba
375c2a3363 fix rare edge cases on network 2019-09-09 12:25:16 -04:00
Victor Shyba
4839ca631a make restricted default 2019-09-02 15:10:16 -03:00
Victor Shyba
5018fe90de can also be protocolerror 2019-09-01 00:02:07 -03:00
Victor Shyba
379144bcfe fix restriction rules, minor refactor, translate error from transaction not found into returning none 2019-08-31 17:39:03 -03:00
Victor Shyba
d2cd0ece5f restore multi server, improve sync concurrency 2019-08-31 06:37:29 -03:00
Victor Shyba
10b7ccaa92 fix unordered history inconsistency 2019-08-31 06:37:29 -03:00
Victor Shyba
925eb618de failing test for unordered mempool 2019-08-31 06:37:29 -03:00
Victor Shyba
96800de052 switch tests and fixes + support for multiple servers 2019-08-31 06:37:29 -03:00
Victor Shyba
9df659b647 no chdir 2019-08-31 06:37:29 -03:00
Victor Shyba
9cfa9b2c57 use only the main session, dont cancel on connectionerror 2019-08-26 11:17:39 -03:00
Victor Shyba
b9b8178e30 use a semaphore to avoid false timeouts on large syncs 2019-08-26 11:17:39 -03:00
Victor Shyba
089cefb77b make it debug for now, there are false positives 2019-08-26 11:17:39 -03:00
Victor Shyba
ee9ea1faab get history only from main server 2019-08-26 11:17:39 -03:00
Victor Shyba
22b2cf8b0c warn when out of sync 2019-08-26 11:17:39 -03:00
Victor Shyba
10bd3c9dda fix misc reconnect scenarios 2019-08-26 11:17:39 -03:00
Victor Shyba
6c3147fcf4 simple address subs instead of batch 2019-08-26 11:17:39 -03:00
Jack Robison
5e8d169c50 debug 2019-08-26 11:17:39 -03:00
Jack Robison
8657a35fd7 switch_to_fastest 2019-08-26 11:17:39 -03:00
Victor Shyba
202861a900 fix unpack leftovers 2019-08-21 22:03:24 -03:00
Victor Shyba
4c41e7cb29 check headers bounds on access 2019-08-21 22:03:24 -03:00
Alex Grin
f7443061ef
less verbose logging 2019-08-21 09:54:10 -04:00
Jack Robison
c4e0c659a7
fix missing perf_counter 2019-08-20 19:22:22 -04:00
Jack Robison
f6ba09b171
mypy 2019-08-20 15:41:27 -04:00
Jack Robison
b827881024
mypy 2019-08-20 15:35:06 -04:00
Jack Robison
89e395b5f4
pylint 2019-08-20 15:26:00 -04:00
Jack Robison
c590954eb9
include connection latency in server selection 2019-08-20 15:11:01 -04:00
Jack Robison
a5af3866fd
time.time -> time.perf_counter 2019-08-20 14:56:13 -04:00
Jack Robison
1bef56f030
disconnect from duplicate servers (same ip, different dns) 2019-08-20 14:55:24 -04:00
Jack Robison
9045737504
track response time for server.version only 2019-08-20 14:54:55 -04:00
Jack Robison
0e48772c84
track connection latency 2019-08-20 14:45:53 -04:00
Jack Robison
72690b5cff
raise asyncio.TimeoutError 2019-08-20 14:19:50 -04:00
Jack Robison
07bae26fd3
close connection and reraise on CancelledError 2019-08-20 14:16:56 -04:00
Victor Shyba
7b0e4617d3 fix db test stability 2019-08-20 04:11:04 -03:00
Victor Shyba
af797296ed rolling averages on response time 2019-08-19 16:50:24 -03:00
Victor Shyba
c826c7da0d take load into consideration when picking fastest 2019-08-19 14:02:30 -03:00
Victor Shyba
20af1396b9 refactor stop 2019-08-19 14:02:30 -03:00
Victor Shyba
f567aca532 retry and batch requests, fix some loose ends 2019-08-19 14:02:30 -03:00
Alex Grin
ff73418fc1
Merge pull request #2371 from lbryio/basenetwork_refactor
refactor basenetwork so each session takes care of itself
2019-08-16 10:19:53 -04:00
Victor Shyba
ab6944b7b0 wallet server: dont fail to start on segwit txs 2019-08-14 10:26:02 -03:00
Victor Shyba
4d741bd200 update lbrycrd to 17, add option to disable segwit for now 2019-08-13 18:07:15 -03:00