From 49f693688dea77e0629035f99642f580f46fecc1 Mon Sep 17 00:00:00 2001 From: Alexander Sporn Date: Fri, 22 Mar 2024 12:18:13 +0100 Subject: [PATCH] Use the iotago.Block.Slot() method --- .../presolidblockfilter/pre_solid_block_filter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/protocol/engine/filter/presolidfilter/presolidblockfilter/pre_solid_block_filter.go b/pkg/protocol/engine/filter/presolidfilter/presolidblockfilter/pre_solid_block_filter.go index 110d42f8b..8f79bea0d 100644 --- a/pkg/protocol/engine/filter/presolidfilter/presolidblockfilter/pre_solid_block_filter.go +++ b/pkg/protocol/engine/filter/presolidfilter/presolidblockfilter/pre_solid_block_filter.go @@ -82,7 +82,7 @@ func (f *PreSolidBlockFilter) ProcessReceivedBlock(block *model.Block, source pe } if _, isValidation := block.ValidationBlock(); isValidation { - blockSlot := block.ProtocolBlock().API.TimeProvider().SlotFromTime(block.ProtocolBlock().Header.IssuingTime) + blockSlot := block.ProtocolBlock().Slot() committee, exists := f.committeeFunc(blockSlot) if !exists { f.events.BlockPreFiltered.Trigger(&presolidfilter.BlockPreFilteredEvent{