mirror of
https://github.com/LBRYFoundation/lbry-sdk.git
synced 2025-08-23 17:27:25 +00:00
lint
This commit is contained in:
parent
6474c86d32
commit
f28e3bfe37
2 changed files with 8 additions and 7 deletions
|
@ -4333,7 +4333,7 @@ class Daemon(metaclass=JSONRPCServerType):
|
||||||
accounts = [wallet.get_account_or_error(account_id)] if account_id else wallet.accounts
|
accounts = [wallet.get_account_or_error(account_id)] if account_id else wallet.accounts
|
||||||
txos = await self.ledger.get_txos(
|
txos = await self.ledger.get_txos(
|
||||||
wallet=wallet, accounts=accounts, read_only=True,
|
wallet=wallet, accounts=accounts, read_only=True,
|
||||||
**self._constrain_txo_from_kwargs({}, unspent=True, is_my_output=True, **kwargs)
|
**self._constrain_txo_from_kwargs({}, is_spent=False, is_my_output=True, **kwargs)
|
||||||
)
|
)
|
||||||
txs = []
|
txs = []
|
||||||
while txos:
|
while txos:
|
||||||
|
@ -4358,7 +4358,7 @@ class Daemon(metaclass=JSONRPCServerType):
|
||||||
Usage:
|
Usage:
|
||||||
txo_list [--account_id=<account_id>] [--type=<type>...] [--txid=<txid>...]
|
txo_list [--account_id=<account_id>] [--type=<type>...] [--txid=<txid>...]
|
||||||
[--claim_id=<claim_id>...] [--name=<name>...]
|
[--claim_id=<claim_id>...] [--name=<name>...]
|
||||||
[--is_spent] [--is_not_spent] [--unspent]
|
[--is_spent] [--is_not_spent]
|
||||||
[--is_my_input_or_output |
|
[--is_my_input_or_output |
|
||||||
[[--is_my_output | --is_not_my_output] [--is_my_input | --is_not_my_input]]
|
[[--is_my_output | --is_not_my_output] [--is_my_input | --is_not_my_input]]
|
||||||
]
|
]
|
||||||
|
@ -4372,7 +4372,6 @@ class Daemon(metaclass=JSONRPCServerType):
|
||||||
--name=<name> : (str or list) claim name
|
--name=<name> : (str or list) claim name
|
||||||
--is_spent : (bool) only show spent txos
|
--is_spent : (bool) only show spent txos
|
||||||
--is_not_spent : (bool) only show not spent txos
|
--is_not_spent : (bool) only show not spent txos
|
||||||
--unspent : (bool) deprecated, alias for --is_not_spent
|
|
||||||
--is_my_input_or_output : (bool) txos which have your inputs or your outputs,
|
--is_my_input_or_output : (bool) txos which have your inputs or your outputs,
|
||||||
if using this flag the other related flags
|
if using this flag the other related flags
|
||||||
are ignored (--is_my_output, --is_my_input, etc)
|
are ignored (--is_my_output, --is_my_input, etc)
|
||||||
|
@ -4404,7 +4403,7 @@ class Daemon(metaclass=JSONRPCServerType):
|
||||||
|
|
||||||
Usage:
|
Usage:
|
||||||
txo_plot [--account_id=<account_id>] [--type=<type>...] [--txid=<txid>...]
|
txo_plot [--account_id=<account_id>] [--type=<type>...] [--txid=<txid>...]
|
||||||
[--claim_id=<claim_id>...] [--name=<name>...] [--unspent]
|
[--claim_id=<claim_id>...] [--name=<name>...] [--is_spent] [--is_not_spent]
|
||||||
[--is_my_input_or_output |
|
[--is_my_input_or_output |
|
||||||
[[--is_my_output | --is_not_my_output] [--is_my_input | --is_not_my_input]]
|
[[--is_my_output | --is_not_my_output] [--is_my_input | --is_not_my_input]]
|
||||||
]
|
]
|
||||||
|
@ -4419,7 +4418,8 @@ class Daemon(metaclass=JSONRPCServerType):
|
||||||
--txid=<txid> : (str or list) transaction id of outputs
|
--txid=<txid> : (str or list) transaction id of outputs
|
||||||
--claim_id=<claim_id> : (str or list) claim id
|
--claim_id=<claim_id> : (str or list) claim id
|
||||||
--name=<name> : (str or list) claim name
|
--name=<name> : (str or list) claim name
|
||||||
--unspent : (bool) hide spent outputs, show only unspent ones
|
--is_spent : (bool) only show spent txos
|
||||||
|
--is_not_spent : (bool) only show not spent txos
|
||||||
--is_my_input_or_output : (bool) txos which have your inputs or your outputs,
|
--is_my_input_or_output : (bool) txos which have your inputs or your outputs,
|
||||||
if using this flag the other related flags
|
if using this flag the other related flags
|
||||||
are ignored (--is_my_output, --is_my_input, etc)
|
are ignored (--is_my_output, --is_my_input, etc)
|
||||||
|
@ -4476,7 +4476,7 @@ class Daemon(metaclass=JSONRPCServerType):
|
||||||
Returns: {Paginated[Output]}
|
Returns: {Paginated[Output]}
|
||||||
"""
|
"""
|
||||||
kwargs['type'] = ['other', 'purchase']
|
kwargs['type'] = ['other', 'purchase']
|
||||||
kwargs['unspent'] = True
|
kwargs['is_not_spent'] = True
|
||||||
return self.jsonrpc_txo_list(*args, **kwargs)
|
return self.jsonrpc_txo_list(*args, **kwargs)
|
||||||
|
|
||||||
@requires(WALLET_COMPONENT)
|
@requires(WALLET_COMPONENT)
|
||||||
|
|
|
@ -864,7 +864,8 @@ class Database(SQLiteMixin):
|
||||||
|
|
||||||
return txos
|
return txos
|
||||||
|
|
||||||
def _clean_txo_constraints_for_aggregation(self, constraints):
|
@staticmethod
|
||||||
|
def _clean_txo_constraints_for_aggregation(constraints):
|
||||||
constraints.pop('include_is_spent', None)
|
constraints.pop('include_is_spent', None)
|
||||||
constraints.pop('include_is_my_input', None)
|
constraints.pop('include_is_my_input', None)
|
||||||
constraints.pop('include_is_my_output', None)
|
constraints.pop('include_is_my_output', None)
|
||||||
|
|
Loading…
Add table
Reference in a new issue