Skip to content

Commit 389926f

Browse files
committed
instance_manager: Add comment to clarify that filters are not reverted
1 parent 6dc5c31 commit 389926f

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

core/src/subgraph/instance_manager.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -534,6 +534,9 @@ where
534534
// Revert the in-memory state:
535535
// - Remove hosts for reverted dynamic data sources.
536536
// - Clear the entity cache.
537+
//
538+
// Note that we do not currently revert the filters,
539+
// which is not ideal, but also not incorrect.
537540
ctx.state.instance.revert_data_sources(subgraph_ptr.number);
538541
ctx.state.entity_lfu_cache = LfuCache::new();
539542
continue;
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"x","type":"uint16"}],"name":"Trigger","type":"event"},{"inputs":[{"internalType":"uint16","name":"x","type":"uint16"}],"name":"emitTrigger","outputs":[],"stateMutability":"nonpayable","type":"function"}]

0 commit comments

Comments
 (0)