/// <summary> /// Initializes instance of the object based on DBreeze based coinview. /// </summary> /// <param name="inner">Underlying coinview with database storage.</param> /// <param name="dateTimeProvider">Provider of time functions.</param> /// <param name="loggerFactory">Factory to be used to create logger for the puller.</param> /// <param name="stakeChainStore">Storage of POS block information.</param> public CachedCoinView(DBreezeCoinView inner, IDateTimeProvider dateTimeProvider, ILoggerFactory loggerFactory, StakeChainStore stakeChainStore = null) : this(dateTimeProvider, loggerFactory, stakeChainStore) { Guard.NotNull(inner, nameof(inner)); this.inner = inner; }
public CachedCoinView(Network network, ICheckpoints checkpoint, DBreezeCoinView inner, IDateTimeProvider dateTimeProvider, ILoggerFactory loggerFactory, INodeStats nodeStats, ConsensusSettings consensusSettings, StakeChainStore stakeChainStore = null, IRewindDataIndexCache rewindDataIndexCache = null) : this(network, checkpoint, dateTimeProvider, loggerFactory, nodeStats, consensusSettings, stakeChainStore, rewindDataIndexCache) { Guard.NotNull(inner, nameof(inner)); this.inner = inner; }
/// <summary> /// Initializes instance of the object based on DBreeze based coinview. /// </summary> /// <param name="inner">Underlying coinview with database storage.</param> /// <param name="dateTimeProvider">Provider of time functions.</param> /// <param name="loggerFactory">Factory to be used to create logger for the puller.</param> /// <param name="nodeStats">The node stats.</param> /// <param name="stakeChainStore">Storage of POS block information.</param> /// <param name="rewindDataIndexCache">Rewind data index store.</param> public CachedCoinView(DBreezeCoinView inner, IDateTimeProvider dateTimeProvider, ILoggerFactory loggerFactory, INodeStats nodeStats, StakeChainStore stakeChainStore = null, IRewindDataIndexCache rewindDataIndexCache = null) : this(dateTimeProvider, loggerFactory, nodeStats, stakeChainStore, rewindDataIndexCache) { Guard.NotNull(inner, nameof(inner)); this.inner = inner; }