/// <summary> /// Initializes a new instance of the <see cref="BlockStore"/> class. /// </summary> public BlockStore( IOptions <IndexerSettings> configuration, ILogger <BlockStore> logger, IStorageOperations storageOperations, ISyncOperations syncOperations, SyncConnection syncConnection, IUtxoCache utxoCache) : base(configuration, logger) { this.storageOperations = storageOperations; this.syncOperations = syncOperations; this.syncConnection = syncConnection; this.utxoCache = utxoCache; log = logger; watch = Stopwatch.Start(); }
public MongoStorageOperations( SyncConnection syncConnection, IMongoDb storage, IUtxoCache utxoCache, IOptions <IndexerSettings> configuration, GlobalState globalState, IMapMongoBlockToStorageBlock mongoBlockToStorageBlock, IScriptInterpeter scriptInterpeter, IStorage storage1) { this.syncConnection = syncConnection; this.globalState = globalState; this.scriptInterpeter = scriptInterpeter; this.storage = storage1; this.mongoBlockToStorageBlock = mongoBlockToStorageBlock; this.configuration = configuration.Value; db = storage; }
public CirrusMongoStorageOperations( SyncConnection syncConnection, IStorage storage, IUtxoCache utxoCache, IOptions <IndexerSettings> configuration, GlobalState globalState, IMapMongoBlockToStorageBlock mongoBlockToStorageBlock, IScriptInterpeter scriptInterpeter, ICryptoClientFactory clientFactory, ICirrusMongoDb db) : base( syncConnection, db, utxoCache, configuration, globalState, mongoBlockToStorageBlock, scriptInterpeter, storage) { this.clientFactory = clientFactory; cirrusClient = this.clientFactory.Create(syncConnection) as CirrusClient; cirrusdDb = db; }