Skip to content

Commit de16697

Browse files
Fix processing big map messages (#125)
1 parent d2606bf commit de16697

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/dipdup/datasources/datasource.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ def on_head(self, fn: HeadCallback) -> None:
7373
def emit_operations(self, operations: List[OperationData], block: HeadBlockData) -> None:
7474
super().emit(EventType.operations, datasource=self, operations=operations, block=block)
7575

76-
def emit_big_maps(self, big_maps: List[BigMapData]) -> None:
77-
super().emit(EventType.big_maps, datasource=self, big_maps=big_maps)
76+
def emit_big_maps(self, big_maps: List[BigMapData], block: HeadBlockData) -> None:
77+
super().emit(EventType.big_maps, datasource=self, big_maps=big_maps, block=block)
7878

7979
def emit_rollback(self, from_level: int, to_level: int) -> None:
8080
super().emit(EventType.rollback, datasource=self, from_level=from_level, to_level=to_level)

src/dipdup/datasources/tzkt/datasource.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,7 @@ async def _on_big_map_message(self, message: List[Dict[str, Any]]) -> None:
675675
for big_map_json in data:
676676
big_map = self.convert_big_map(big_map_json)
677677
big_maps.append(big_map)
678-
self.emit_big_maps(big_maps)
678+
self.emit_big_maps(big_maps, self.block)
679679

680680
async def _on_head_message(self, message: List[Dict[str, Any]]) -> None:
681681
async for data in self._extract_message_data('head', message):

0 commit comments

Comments
 (0)