mirror of
https://github.com/LBRYFoundation/lbry-sdk.git
synced 2025-08-23 17:27:25 +00:00
add save_resolved_claims
config setting to disable saving claims upon resolving them
This commit is contained in:
parent
3921180d77
commit
ed785fb087
2 changed files with 6 additions and 1 deletions
|
@ -616,6 +616,11 @@ class Config(CLIConfig):
|
||||||
"Strategy to use when selecting UTXOs for a transaction",
|
"Strategy to use when selecting UTXOs for a transaction",
|
||||||
STRATEGIES, "standard")
|
STRATEGIES, "standard")
|
||||||
|
|
||||||
|
save_resolved_claims = Toggle(
|
||||||
|
"Save content claims to the database when they are resolved to keep file_list up to date, "
|
||||||
|
"only disable this if file_x commands are not needed", True
|
||||||
|
)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def streaming_host(self):
|
def streaming_host(self):
|
||||||
return self.streaming_server.split(':')[0]
|
return self.streaming_server.split(':')[0]
|
||||||
|
|
|
@ -4853,7 +4853,7 @@ class Daemon(metaclass=JSONRPCServerType):
|
||||||
|
|
||||||
async def resolve(self, accounts, urls):
|
async def resolve(self, accounts, urls):
|
||||||
results = await self.ledger.resolve(accounts, urls)
|
results = await self.ledger.resolve(accounts, urls)
|
||||||
if results:
|
if self.conf.save_resolved_claims and results:
|
||||||
try:
|
try:
|
||||||
claims = self.stream_manager._convert_to_old_resolve_output(self.wallet_manager, results)
|
claims = self.stream_manager._convert_to_old_resolve_output(self.wallet_manager, results)
|
||||||
await self.storage.save_claims_for_resolve([
|
await self.storage.save_claims_for_resolve([
|
||||||
|
|
Loading…
Add table
Reference in a new issue