Add antireplay cache mock

This commit is contained in:
9seconds
2021-03-15 10:52:14 +03:00
parent 8eb5fed92f
commit 3dc263d6d7
3 changed files with 16 additions and 5 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ func (s *stableBloomFilter) SeenBefore(digest []byte) bool {
func NewStableBloomFilter(byteSize uint, errorRate float64) mtglib.AntiReplayCache {
sf := boom.NewDefaultStableBloomFilter(byteSize*8, errorRate) // nolint: gomnd
sf.SetHash(xxhash.New64())
sf.SetHash(xxhash.New64())
return &stableBloomFilter{
filter: *sf,