add config option for filtering channels

This commit is contained in:
Victor Shyba 2019-10-18 02:50:49 -03:00 committed by Lex Berezhny
parent c7e964ec42
commit 77daf6812a
2 changed files with 6 additions and 3 deletions

View file

@ -2884,9 +2884,6 @@ class Daemon(metaclass=JSONRPCServerType):
if not preview:
await self.broadcast_or_release(tx, blocking)
#await self.storage.save_claims([self._old_get_temp_claim_info(
# tx, new_txo, claim_address, claim, name, dewies_to_lbc(amount)
#)])
# await self.analytics_manager.send_claim_action('publish') todo: what to send?
else:
await account.ledger.release_tx(tx)

View file

@ -106,6 +106,12 @@ class LBRYElectrumX(ElectrumX):
self.daemon = self.session_mgr.daemon
self.bp: LBRYBlockProcessor = self.session_mgr.bp
self.db: LBRYDB = self.bp.db
# space separated list of channel URIs used for filtering bad content
filtering_channels = self.env.default('FILTERING_CHANNELS', '')
if ' ' in filtering_channels:
self.filtering_channels_uris = filtering_channels.split(' ')
else:
self.filtering_channels_uris = []
def set_request_handlers(self, ptuple):
super().set_request_handlers(ptuple)