Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New( chainID isc.ChainID, nr sm_utils.NodeRandomiser, wal sm_gpa_utils.BlockWAL, store state.Store, metrics metrics.IChainStateManagerMetrics, log *logger.Logger, timers StateManagerTimers, ) (gpa.GPA, error)
Types ¶
type StateManagerTimers ¶
type StateManagerTimers struct { // How many blocks may be stored in cache before old ones start being deleted BlockCacheMaxSize int // How long should the block stay in block cache before being deleted BlockCacheBlocksInCacheDuration time.Duration // How often should the block cache be cleaned BlockCacheBlockCleaningPeriod time.Duration // How often get block requests should be repeated StateManagerGetBlockRetry time.Duration // How often requests waiting for response should be checked for expired context StateManagerRequestCleaningPeriod time.Duration // How often timer tick fires in state manager StateManagerTimerTickPeriod time.Duration TimeProvider sm_gpa_utils.TimeProvider }
func NewStateManagerTimers ¶
func NewStateManagerTimers(tpOpt ...sm_gpa_utils.TimeProvider) StateManagerTimers
Source Files ¶
Click to show internal directories.
Click to hide internal directories.