Remove unnecessary generator
Signed-off-by: shubhendra <withshubh@gmail.com>
This commit is contained in:
parent
87fe5c6101
commit
601f99ac16
2 changed files with 2 additions and 2 deletions
|
@ -538,7 +538,7 @@ class Ledger(metaclass=LedgerRegistry):
|
|||
"request %i transactions, %i/%i for %s are already synced", len(to_request), len(already_synced),
|
||||
len(remote_history), address
|
||||
)
|
||||
remote_history_txids = set(txid for txid, _ in remote_history)
|
||||
remote_history_txids = {txid for txid, _ in remote_history}
|
||||
async for tx in self.request_synced_transactions(to_request, remote_history_txids, address):
|
||||
pending_synced_history[tx_indexes[tx.id]] = f"{tx.id}:{tx.height}:"
|
||||
if len(pending_synced_history) % 100 == 0:
|
||||
|
|
|
@ -547,7 +547,7 @@ class SQLDB:
|
|||
WHERE claim_hash = ?
|
||||
""", targets
|
||||
)
|
||||
return set(target[0] for target in targets)
|
||||
return {target[0] for target in targets}
|
||||
|
||||
def validate_channel_signatures(self, height, new_claims, updated_claims, spent_claims, affected_channels, timer):
|
||||
if not new_claims and not updated_claims and not spent_claims:
|
||||
|
|
Loading…
Add table
Reference in a new issue