CatapultServer  v0.5.0.1 (Elephant)
catapult::consumers::HashCheckOptions Struct Reference

Options for configuring the hash check consumer. More...

Public Member Functions

constexpr HashCheckOptions ()
 Creates default options. More...
 
constexpr HashCheckOptions (uint64_t cacheDuration, uint64_t pruneInterval, uint64_t maxCacheSize)
 Creates options with custom cacheDuration, pruneInterval and maxCacheSize. More...
 

Public Attributes

uint64_t CacheDuration
 Amount of time a hash should be cached. More...
 
uint64_t PruneInterval
 Minimum amount of time between cache pruning. More...
 
uint64_t MaxCacheSize
 Maximum size of the cache. More...
 

Detailed Description

Options for configuring the hash check consumer.

Constructor & Destructor Documentation

◆ HashCheckOptions() [1/2]

constexpr catapult::consumers::HashCheckOptions::HashCheckOptions ( )
inlineconstexpr

Creates default options.

◆ HashCheckOptions() [2/2]

constexpr catapult::consumers::HashCheckOptions::HashCheckOptions ( uint64_t  cacheDuration,
uint64_t  pruneInterval,
uint64_t  maxCacheSize 
)
inlineconstexpr

Creates options with custom cacheDuration, pruneInterval and maxCacheSize.

Member Data Documentation

◆ CacheDuration

uint64_t catapult::consumers::HashCheckOptions::CacheDuration

Amount of time a hash should be cached.

◆ MaxCacheSize

uint64_t catapult::consumers::HashCheckOptions::MaxCacheSize

Maximum size of the cache.

◆ PruneInterval

uint64_t catapult::consumers::HashCheckOptions::PruneInterval

Minimum amount of time between cache pruning.


The documentation for this struct was generated from the following file: