Victor Shyba
cb78e95e3d
add missing space on query, typo
2022-03-23 13:40:01 -03:00
Victor Shyba
34bd9e5cb4
exclude sd blobs from calculation and make them be picked last on removal
2022-03-21 04:26:27 -03:00
Victor Shyba
b3614d965d
remove all references to bottoming out
2022-03-02 13:00:34 -03:00
Victor Shyba
1aa4d9d585
simplify, genaralize to any size and fix tests
2022-02-28 13:06:51 -03:00
Victor Shyba
8019f4bdb3
stop after finding what to download
2022-02-28 13:06:51 -03:00
Victor Shyba
ca65c1ebc5
replace duplicated code
2022-02-28 13:06:51 -03:00
Victor Shyba
dc7cd545ba
extract method and avoid using hash builtin name
2022-02-28 13:06:51 -03:00
Victor Shyba
76bd59d82e
extract min_prefix_colliding_bits to a contanst
2022-02-28 13:06:51 -03:00
Victor Shyba
461687ffb4
check that the stored blob is at least 1 prefix byte close to peer id
2022-02-28 13:06:51 -03:00
Victor Shyba
dd5b9ca81b
add migrator to set head blobs should_announce=0
2022-02-20 22:33:57 -03:00
Victor Shyba
03b59ac6fc
dont set head blob to announce on save
2022-02-20 22:33:57 -03:00
Victor Shyba
43ac3336d7
break tie by length
2022-02-20 22:24:04 -03:00
Alex Grintsvayg
7c7a0d4bdf
let stream_update work on non-stream claims
2022-02-08 09:28:17 -05:00
Victor Shyba
5cb4c06d0c
add prefix_neighbors_count to routing table debug api
2022-01-12 12:39:23 -03:00
Lex Berezhny
aaa11c02bf
added integration test
2022-01-10 08:46:10 -05:00
vertbyqb
d2ebbf5db6
jsonrpc_channel_sign - Convert hexdata to a string before signing
...
Fixes #3533
2022-01-10 08:46:10 -05:00
Victor Shyba
7df02303b2
fix missing docopt argument
2022-01-05 17:10:31 -03:00
Victor Shyba
19fa274227
add sd hash to API
2022-01-05 17:10:31 -03:00
Lex Berezhny
23c10faff5
lint
2021-12-22 18:29:46 -05:00
Lex Berezhny
1eaa195363
reduced crypto dependency in wallet to coincurve
2021-12-22 18:29:46 -05:00
Lex Berezhny
d815a6f02c
use ecdsa for signing/veryfing instead of coincurve due to compatibility issues
2021-12-22 18:29:46 -05:00
Lex Berezhny
f741b00768
progress on deterministic channel keys
2021-12-22 18:29:46 -05:00
Jeffrey Picard
d66f46e07b
Switch RangeField back to ints
2021-12-03 18:12:38 -05:00
Jeffrey Picard
1b322dc404
Update protobufs, go hub shim, and claim test.
2021-12-03 13:03:00 -05:00
Jack Robison
0d3ca80008
support lists of constraints for all range fields
2021-12-03 13:03:00 -05:00
Jack Robison
7bb293e5d6
update claim_search
doc
...
backward compatibility for `trending_mixed`, `trending_local`, `trending_global`, and `trending_group` args to `claim_search`
2021-12-02 14:51:52 -05:00
Victor Shyba
a19060c08d
log unexpected errors, rename task/loop
2021-11-09 14:27:06 -05:00
Victor Shyba
d6d0ebf8f4
cache space stats from running components so status is instant
2021-11-09 14:27:06 -05:00
Victor Shyba
0d810d92ca
add index for blob table so size summaries are faster
2021-11-09 14:27:06 -05:00
Victor Shyba
1ff914a6f4
download from stored announcements and dont reannounce
2021-11-09 14:27:06 -05:00
Victor Shyba
5959b1be72
improve disk space manager status, include more info and unify space queries
2021-11-09 14:27:06 -05:00
Victor Shyba
d12a214c05
normal_blobs->stream_blobs, proactive->background
2021-11-09 14:27:06 -05:00
Victor Shyba
3a83052f2e
fix free space calculation, test it and give a margin of 10mb before starting so it doesnt insist when full
2021-11-09 14:27:06 -05:00
Victor Shyba
510b44ca92
move more logic out of the downloader component
2021-11-09 14:27:06 -05:00
Victor Shyba
fbfd02b08b
add analytics event for network disk space
2021-11-09 14:27:06 -05:00
Victor Shyba
b39c26fc86
announce orphan blobs manually, as that was done when save stream
2021-11-09 14:27:06 -05:00
Victor Shyba
95b2c8d175
cleanup background downloader blobs from conf
2021-11-09 14:27:06 -05:00
Victor Shyba
d52748b09f
separated network seeding space metrics
2021-11-09 14:27:06 -05:00
Victor Shyba
34d18a3a9a
don't save streams for network blobs and bypass disk space manager
2021-11-09 14:27:06 -05:00
Victor Shyba
703c391f99
schedule the download task instead
2021-11-09 14:27:06 -05:00
Victor Shyba
13667df374
download from DHT
2021-11-09 14:27:06 -05:00
Victor Shyba
8800d6985f
drop channel support, prepare to hook into DHT
2021-11-09 14:27:06 -05:00
Victor Shyba
364b8f2605
handle case where something that isn't a sd blob gets hit
2021-11-09 14:27:06 -05:00
Victor Shyba
67b9ea9deb
no api yet
2021-11-09 14:27:06 -05:00
Victor Shyba
b78f2336a7
download only blobs
2021-11-09 14:27:06 -05:00
Victor Shyba
23a5ce3df7
fix exception arguments
2021-11-09 14:27:06 -05:00
Victor Shyba
8f88e28e50
test add/remove/list subscriptions
2021-11-09 14:27:06 -05:00
Victor Shyba
9cf6139557
fix and test main api
2021-11-09 14:27:06 -05:00
Victor Shyba
d556065a8b
download all blobs and check that on tests
2021-11-09 14:27:06 -05:00
Victor Shyba
951716f7dc
create downloader component and initial tests
2021-11-09 14:27:06 -05:00
Jack Robison
b62a0b4607
Update daemon.py
...
docstring
2021-10-15 09:40:15 -04:00
Cristian Vicas
1f044321fb
Updated documentation for RPC calls: status, blob_list.
2021-10-15 09:40:15 -04:00
Jack Robison
7a56eff1ac
small fixes
2021-10-05 16:44:49 -04:00
Jack Robison
615e489d8d
fix stream_update
--clear_channel flag
2021-10-05 16:44:49 -04:00
Jack Robison
bfeeacb230
tests
2021-10-05 16:44:49 -04:00
Victor Shyba
dade49743b
fix file reflect and add test
2021-10-04 19:26:05 -03:00
Lex Berezhny
dfa6701c43
disk space metrics
2021-10-03 19:33:18 -04:00
Victor Shyba
245b564f13
generalize stream empty to argument empty
2021-09-30 13:24:17 -03:00
Victor Shyba
0d8d1ea4f3
empty stream name error for user input
2021-09-30 13:24:17 -03:00
Victor Shyba
27a427a363
error for missing channel private key
2021-09-30 13:24:17 -03:00
Victor Shyba
2ff028a694
error for already purchased claims
2021-09-30 13:24:17 -03:00
belikor
bbbaf59591
daemon: fix documentation in the file_list
docstring
...
This is necessary to produce the `docs/api.json`
(through `scripts/generate_json_api.py`)
with correct information, and to be able to parse this file later on
by other tools.
2021-09-23 21:00:31 -05:00
Lex Berezhny
9b9794b5e0
default is_mine to true during migration
2021-09-20 09:23:42 -04:00
Lex Berezhny
7264b53e5f
during disk clean your own sd blob is now kept and file status of deleted files is set to stopped
2021-09-15 10:37:08 -04:00
Lex Berezhny
60836d8523
db migration and other fixes
2021-09-15 09:10:06 -04:00
Lex Berezhny
ef89c2e47a
use databse to track blob disk space use and preserve own blobs
2021-09-15 09:10:06 -04:00
Victor Shyba
358ef4536f
add ConflictingInputValueError for claim_id+claim_ids
2021-09-10 18:57:20 -03:00
Victor Shyba
5061a35e66
remove ignored output from hub node
2021-09-10 18:57:20 -03:00
Victor Shyba
8206441834
run CI for old and new setups
2021-09-10 18:57:20 -03:00
Victor Shyba
d713783736
ignore default values
2021-09-10 18:57:20 -03:00
Victor Shyba
9e81dd2360
refactor arguments fixup
2021-09-10 18:57:20 -03:00
Victor Shyba
e2798969d7
claim_id is an invertible field, not a repeated
2021-09-10 18:57:20 -03:00
Victor Shyba
1c31ec66f2
simplify operator handling
2021-09-10 18:57:20 -03:00
Victor Shyba
241f9fc7b0
not_claim_id/not_claim_ids is not a search parameter
2021-09-10 18:57:20 -03:00
Victor Shyba
a799503c97
update fields from hub
2021-09-10 18:57:20 -03:00
Victor Shyba
9685928087
there is no first_search
2021-09-10 18:57:20 -03:00
Victor Shyba
3c4571a4e0
remove fallback
2021-09-10 18:57:20 -03:00
Jeffrey Picard
046147eb1d
updates for fields
2021-09-10 18:57:20 -03:00
Jeffrey Picard
7834520e54
update code to be consistent with field renames
2021-09-10 18:57:20 -03:00
Jeffrey Picard
8e5b4d4b6f
hardcode port
2021-09-10 18:57:20 -03:00
Jeffrey Picard
4544a074d9
Move the go hub settings from network to ledger config and hook reset
...
correctly.
2021-09-10 18:57:20 -03:00
Jeffrey Picard
9b78501392
Set default server to the networks default and use go hub by default
2021-09-10 18:57:20 -03:00
Jeffrey Picard
a4955a2b79
remove uneeded prints
2021-09-10 18:57:20 -03:00
Jeffrey Picard
15a56ca25e
tons of small changes squashed together
2021-09-10 18:57:20 -03:00
Jeffrey Picard
9f65799a3d
uncomment tests, add remove_duplicates param
...
Cleanup prints and commented out code
remove print
don't do list claims
cleanup
2021-09-10 18:57:20 -03:00
Jeffrey Picard
a97fc6dba8
cleanup and reorgnazing some stuff
...
Fixing tests
relabel failing tests properly
run all the tests for the hub
cleanup HubNode
2021-09-10 18:57:20 -03:00
Cristian Vicas
45bf6c3bf3
Drop comment_* apis.
...
Refactored dangling functions.
Added unit test.
2021-09-02 11:38:29 +03:00
Cristian Vicas
fef0cc764d
Drop comment_* apis
...
Removed the comment API
Removed tests for the comment API
Removed the documentation section
Removed the comment server configuration
2021-09-02 08:51:00 +03:00
belikor
d26c06dbf3
jsonrpc_support_sum: remove the + signs from the docstring
...
These symbols came from 0a0ac3b7c9
and were probably added
accidentally to the beginning of the line by copying and pasting
some diffs.
2021-08-25 13:28:02 -05:00
Lex Berezhny
dc1d9e1c84
upgrade pylint and fix lint errors
2021-08-20 22:36:35 -04:00
Jack Robison
eccedada40
add TODOs for errors raised that aren't defined in lbry.error
2021-08-17 12:31:03 -04:00
Jack Robison
25d54accf8
return api errors from wallet_add
and wallet_create
2021-08-17 12:30:17 -04:00
Jack Robison
d07685f0e9
only log tracebacks for api errors not defined in lbry.error
2021-08-17 11:30:58 -04:00
Lex Berezhny
51d21d8c86
working disk cleanup
2021-08-16 14:15:12 -04:00
Lex Berezhny
4e8d10cb44
disk space manager and status API
2021-08-13 10:32:46 -04:00
Victor Shyba
1849c02cb6
fix typo in kwargs key
2021-07-26 16:02:48 -03:00
belikor
6421cecafb
daemon: fix --claim_id
with lbrynet claim search
...
For some reason, when using `claim_search`
with `--claim_id`, the arguments dictionary will also
contain `claim_ids` with an empty list, even if we didn't specify it.
```
lbrynet claim search --claim_id=8945573bcfcb7f8276187dfbb93545eac4ebf71a
```
Using both `claim_id` and `claim_ids` will raise a `ValueError`
exception so the daemon won't return a valid result
even if the claim ID is in fact valid.
So if `claim_id` exists, we need to discard `claim_ids`
if it is empty, before proceeding with the rest of the code.
On the other hand, if `claim_ids` is used, and `claim_id` is absent,
there will be no problem as `claim_id` won't be added to the dictionary.
```
lbrynet claim search --claim_ids=8945573bcfcb7f8276187dfbb93545eac4ebf71a
```
2021-07-19 22:24:43 -05:00
Alex Grin
74116cc550
Merge branch 'master' into propagate_external_ip_change
2021-07-19 14:12:19 -04:00
belikor
b7791d2845
exchange_rate_manager: raise exception if 'error'
is in json_response
...
If the error is not handled, the running daemon will continuously
print the following error message:
```
Traceback (most recent call last):
File "lbry/extras/daemon/exchange_rate_manager.py", line 77, in get_rate
File "lbry/extras/daemon/exchange_rate_manager.py", line 189, in get_rate_from_response
KeyError: 0
```
This started happening when the UPBit exchange decided to delist
the LBC coin.
Normally `json_response` should be a dictionary, not a list,
so `json_response[0]` causes an error.
By checking for the `'error'` key, we can raise the proper exception.
Once this is done, the message will be a warning, not a traceback.
```
WARNING lbry.extras.daemon.exchange_rate_manager:92:
Failed to get exchange rate from UPbit: result not found
```
2021-07-19 13:41:49 -04:00
Victor Shyba
6254f53716
propagate external ip changes from upnp component to dht node protocol
2021-07-08 03:46:05 -03:00