Skip to content

Commit

Permalink
Use the iotago.Block.Slot() method
Browse files Browse the repository at this point in the history
  • Loading branch information
alexsporn committed Mar 22, 2024
1 parent 28eb213 commit 49f6936
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit 49f6936

Please sign in to comment.