Skip to content

Commit

Permalink
Get API for evicted slot
Browse files Browse the repository at this point in the history
  • Loading branch information
karimodm committed Oct 4, 2023
1 parent 65a302f commit fac1e85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/protocol/engine/mempool/v1/mempool.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ func (m *MemPool[VoteRank]) Evict(slot iotago.SlotIndex) {
})
}

maxCommittableAge := m.apiProvider.CurrentAPI().ProtocolParameters().MaxCommittableAge()
maxCommittableAge := m.apiProvider.APIForSlot(slot).ProtocolParameters().MaxCommittableAge()
if slot <= maxCommittableAge {
return
}
Expand Down

0 comments on commit fac1e85

Please sign in to comment.