Commit graph

416 commits

Author SHA1 Message Date
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