Commit graph

153 commits

Author SHA1 Message Date
Miroslav Kovar
f92b610a03 Simplify 2019-10-21 12:43:40 -04:00
Miroslav Kovar
268f6447cb Sanitize suggested, add tests 2019-10-21 12:43:40 -04:00
Miroslav Kovar
ed93c647d2 Sanitize file names before saving 2019-10-21 12:43:40 -04:00
Lex Berezhny
481e265ec7 added wallet.save() in test since it is no longer saved redundantly on startup 2019-10-18 18:08:43 -04:00
Lex Berezhny
4e7e475a5e minor fixups for logging 2019-10-18 12:02:36 -04:00
Miroslav Kovar
f8a5bc94e5 Pass root logger instead 2019-10-18 12:02:36 -04:00
Miroslav Kovar
6b0b441329 Fix logging bug 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
12a0cbf4e1 improve preference sync integration test 2019-10-16 17:19:10 -04:00
Lex Berezhny
39bc8c45c3 test fix 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
398fe55083 renamed: test_sync.py -> test_wallet_commands.py 2019-10-16 12:06:05 -04:00
Lex Berezhny
45eef03576 fixes 2019-10-14 12:57:09 -04:00
Lex Berezhny
e2b92c99ef added wallet balance command 2019-10-13 20:06:11 -04:00
Lex Berezhny
37ae302fc6 timestamped top-level wallet preferences 2019-10-12 20:23:29 -04:00
Miroslav Kovar
19e8b6e11f Add test 2019-10-11 10:12:18 -04:00
Victor Shyba
05a28ea346 handle attempts to add peers with no node id and issue a warning 2019-10-07 13:20:38 -03:00
Victor Shyba
624f986978 handle peer_is_good for unknown node id 2019-10-07 13:20:38 -03:00
Victor Shyba
8cd18e47e7 get_kad... -> make_kad.. 2019-10-07 13:20:38 -03:00
Victor Shyba
517868f73c fix unit tests 2019-10-07 13:20:38 -03:00
Victor Shyba
7aa5e2cbe1 use a dataclass experiment 2019-10-07 13:20:38 -03:00
Victor Shyba
7d6db20081 use cache for dht peer objects 2019-10-07 13:20:38 -03:00
Lex Berezhny
56df145052 updating/abanding streams/channels works across all accounts 2019-10-07 09:57:22 -04:00
Hugo
3a3a9b5f4e Fix spelling 2019-10-03 21:40:06 -04:00
Victor Shyba
4a6af0b938 retriable resolve 2019-09-30 12:57:18 -04:00
Lex Berezhny
1d5333c737 integration test fix 2019-09-23 13:49:50 -04:00
Lex Berezhny
68e9fd8541 account integration test fix 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
Miroslav Kovar
9fbc83fe9d Always handle claim_name as a string 2019-09-20 14:22:01 -04:00
Victor Shyba
965972a719 match regex from app into ours 2019-09-19 17:30:22 -04:00
Miroslav Kovar
34d19c4a72 Remove superfluous test 2019-09-19 17:16:18 -04:00
Miroslav Kovar
9b0910767d Fix formatting, support null argument only 2019-09-19 17:16:18 -04:00
Miroslav Kovar
32cc077e1f enable to set max_key_fee to null via cli 2019-09-19 17:16:18 -04:00
Miroslav Kovar
1e7bec48b6 Add integration test, remove unit test 2019-09-19 15:21:01 -04:00
Miroslav Kovar
c035837a14 Fix failing key payment for null max key fee 2019-09-19 15:21:01 -04:00
Victor Shyba
c5530aee5f refactor tests 2019-09-18 19:19:34 -04:00
Victor Shyba
817f01593e call the correct method on is_valid_address 2019-09-18 19:19:34 -04:00
Jack Robison
a095f89c81
remove redundant test 2019-09-17 12:09:19 -04:00
Lex Berezhny
81f16d7061 refactored address_list API to be more detailed 2019-09-17 09:08:29 -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
Victor Shyba
291d14f2d4 move as_dict to json_encoder 2019-09-12 14:08:37 -03:00
Jack Robison
f9880c8931
test sqlite binding error 2019-09-09 21:46:04 -04:00
Lex Berezhny
d2ad3e7ff1 initial kv store 2019-09-03 12:00:29 -04:00
Victor Shyba
6c79f98d3c connect directly on test server 2019-09-03 11:29:02 -03:00
Victor Shyba
96800de052 switch tests and fixes + support for multiple servers 2019-08-31 06:37:29 -03:00
Oleg Silkin
8f7c291e33 Adds comment_hide functionality 2019-08-26 12:43:07 -04:00
Victor Shyba
7fdd9dc293 fix annoying assertEquals warning 2019-08-21 22:03:24 -03:00
Jack Robison
deb6a07160
fix test 2019-08-19 12:51:17 -04: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
f3a163b382 fix names and types 2019-08-12 18:16:58 -03:00
Victor Shyba
022d60ec2c both exceptions can be raised, depending on when the call happens 2019-08-12 18:16:57 -03:00
Victor Shyba
5728493abb refactor basenetwork so each session takes care of itself 2019-08-12 18:16:57 -03:00
Jack Robison
357ce881a6
more blob exchange tests 2019-08-12 10:47:28 -04:00
Jack Robison
aa417f5410
test max request size 2019-08-12 10:47:28 -04:00
Jack Robison
0ca29b9518
test idle timeout 2019-08-12 10:47:28 -04:00
Lex Berezhny
46d89929ba fixup balance tests and other stuff 2019-08-12 10:22:14 -04:00
Lex Berezhny
98d4d00f96 most commands now work across all accounts 2019-08-12 10:22:14 -04:00
Jack Robison
b8b42a1fd2
add error_message to ttfb analytics, update tests 2019-08-09 12:55:01 -04:00
Jack Robison
bc33cad999 add test for connection failure analytics 2019-08-05 13:39:38 -04:00
Jack Robison
e2b3141536 typing 2019-08-05 13:39:38 -04:00
Victor Shyba
35541bbbb9 new api format, hide subtotals by default 2019-08-05 11:08:33 -04:00
Victor Shyba
59424a3e73 add query to get tips summary for granular balances 2019-08-05 11:08:33 -04:00
Victor Shyba
2056888667 implement tips_received tips_sent, wip, in python for now 2019-08-05 11:08:33 -04:00
Victor Shyba
1e54785742 add granular balances 2019-08-05 11:08:33 -04:00
Jack Robison
f4c111f04c
handle null content fee 2019-07-29 17:56:24 -04:00
Oleg Silkin
2545ebbece Adds unittests & fixes comment_client functions 2019-07-29 14:55:42 -04:00
Oleg Silkin
14ec6ce43b Adds unit-testing for delete comment signatures 2019-07-29 14:55:42 -04:00
Victor Shyba
45fb673e49 dont fail when s3 is out of reach 2019-07-23 17:44:13 -04:00
Victor Shyba
df41a82b23 fix integration test 2019-07-22 11:31:45 -04:00
Lex Berezhny
b89f04b1f1 fix claim integration tests 2019-07-20 15:45:15 -04:00
Lex Berezhny
ad2df4871e popular tags are indexed and use different search strategy than less popular tags 2019-07-20 15:45:15 -04:00
Lex Berezhny
08da763327 more metrics cleanup 2019-07-18 19:54:38 -04:00
Lex Berezhny
d7ec3c182d tuples 2019-07-18 19:54:38 -04:00
Lex Berezhny
ffe6418392 fix metrics json response test 2019-07-18 19:54:38 -04:00
Lex Berezhny
49b0f59790 added metrics module 2019-07-18 19:54:38 -04:00
Victor Shyba
4d64fca9de fix memory blob showing as completed/verified 2019-07-17 18:54:21 -03:00
Victor Shyba
8b1307e1ca file status completed set only if all bytes were written 2019-07-17 18:54:21 -03:00
Victor Shyba
6997ea608d fix reconnect and timeouts 2019-07-16 23:59:28 -03:00
Jack Robison
d319761483
interrupt slow queries and log them for debugging
- add QUERY_TIMEOUT_MS env variable

- return sqlite timeout errors, jsonrpc error code -32000
2019-07-16 20:05:45 -04:00
Lex Berezhny
ae4a29d41c prevent duplicate tags 2019-07-16 00:57:53 -04:00
Lex Berezhny
d27a3b6421 support for UN M.49 region codes in language 2019-07-16 00:57:53 -04:00
Lex Berezhny
d083910255 refactored metrics gathering for wallet server 2019-07-16 00:57:53 -04:00
Lex Berezhny
dc8b4b5252 instrument wallet.server.db.reader with timer metrics 2019-07-16 00:57:53 -04:00
Victor Shyba
a4d8508b40 update remote height on demand 2019-07-13 01:21:26 -04:00
Lex Berezhny
cc098f3090 refactored wallet server db reader to support thread pool and process pool 2019-07-11 14:04:49 -04:00
Lex Berezhny
99d21e93f3 added --no_totals argument to claim_search 2019-07-07 23:51:32 -04:00
Jack Robison
a2953ac9ac
test session bloat from timed out sockets 2019-07-01 11:36:26 -04:00
Lex Berezhny
9ce93a1da6 added --not_channel_ids and --has_channel_signature 2019-06-23 20:24:35 -04:00
Lex Berezhny
d0e1468acd channel migration better handles missing or invalid certificates 2019-06-23 13:46:02 -04:00
Lex Berezhny
816cde32a9 fix support reorg error 2019-06-23 10:56:59 -04:00
Lex Berezhny
488c2e2f17 searching by fee_amount and fee_currency 2019-06-22 23:24:56 -04:00
Lex Berezhny
9e11fc1e99 dont error when claim search gets invalid channel 2019-06-22 23:24:56 -04:00
Lex Berezhny
a8b590ecbb add tag normalization on storage and on search 2019-06-22 23:24:56 -04:00
Lex Berezhny
8ca8591ed6 wrong test method reverted 2019-06-22 23:24:56 -04:00
Lex Berezhny
e393314423 fix for claims_in_channel not updating on abandoned claim 2019-06-22 23:24:56 -04:00
Lex Berezhny
d8265add2d added coin selection strategy for both prefer_confirmed and only_confirmed 2019-06-21 03:27:22 -04:00