add --blocklist_channel_ids to claim_search command
This commit is contained in:
parent
3cffaa43f7
commit
1e6542d12d
2 changed files with 5 additions and 1 deletions
|
@ -2152,6 +2152,7 @@ class Daemon(metaclass=JSONRPCServerType):
|
|||
[--claim_id=<claim_id> | --claim_ids=<claim_ids>...]
|
||||
[--channel=<channel> |
|
||||
[[--channel_ids=<channel_ids>...] [--not_channel_ids=<not_channel_ids>...]]]
|
||||
[--blocklist_channel_ids=<blocklist_channel_ids>...]
|
||||
[--has_channel_signature] [--valid_channel_signature | --invalid_channel_signature]
|
||||
[--is_controlling] [--release_time=<release_time>] [--public_key_id=<public_key_id>]
|
||||
[--timestamp=<timestamp>] [--creation_timestamp=<creation_timestamp>]
|
||||
|
@ -2192,6 +2193,9 @@ class Daemon(metaclass=JSONRPCServerType):
|
|||
use in conjunction with --valid_channel_signature
|
||||
--not_channel_ids=<not_channel_ids>: (list) exclude claims signed by any of these channels
|
||||
(arguments must be claim ids of the channels)
|
||||
--blocklist_channel_ids=<blocklist_channel_ids>: (list) channel_ids of channels containing
|
||||
reposts of claims you want to be blocked from
|
||||
search results
|
||||
--has_channel_signature : (bool) claims with a channel signature (valid or invalid)
|
||||
--valid_channel_signature : (bool) claims with a valid channel signature or no signature,
|
||||
use in conjunction with --has_channel_signature to
|
||||
|
|
|
@ -184,7 +184,7 @@ class LBRYElectrumX(ElectrumX):
|
|||
|
||||
async def claimtrie_search(self, **kwargs):
|
||||
if kwargs:
|
||||
kwargs['blocklist_channel_ids'] = self.filtering_channels_ids
|
||||
kwargs.setdefault('blocklist_channel_ids', []).extend(self.filtering_channels_ids)
|
||||
return await self.run_and_cache_query('search', reader.search_to_bytes, kwargs)
|
||||
|
||||
async def claimtrie_resolve(self, *urls):
|
||||
|
|
Loading…
Reference in a new issue