Skip to content

Commit

Permalink
Filter out not applied operations (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
droserasprout authored Apr 23, 2021
1 parent d30bee8 commit 579e95e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/dipdup/datasources/tzkt/datasource.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ async def _fetch_operations(self, address: str, offset: int, first_level: int, l
"level.gt": first_level,
"level.le": last_level,
"select": ','.join(OPERATION_FIELDS),
"status": "applied",
},
) as resp:
operations = await resp.json()
Expand Down Expand Up @@ -262,8 +263,6 @@ async def on_operation_message(
operation = self.convert_operation(operation_json)
if operation.type != 'transaction':
continue
if operation.status != 'applied':
continue
await self._caches[address].add(operation)

async with in_transaction():
Expand Down

0 comments on commit 579e95e

Please sign in to comment.