Beispiel #1
0
        public UnconfirmedTxesBuilder(ICoreDaemon coreDaemon, ICoreStorage coreStorage, IStorageManager storageManager)
        {
            this.coreDaemon     = coreDaemon;
            this.coreStorage    = coreStorage;
            this.storageManager = storageManager;

            this.chain = new Lazy <Chain>(() => LoadChain());
        }
        public UnconfirmedTxesBuilder(ICoreDaemon coreDaemon, ICoreStorage coreStorage, IStorageManager storageManager)
        {
            this.coreDaemon = coreDaemon;
            this.coreStorage = coreStorage;
            this.storageManager = storageManager;

            this.chain = new Lazy<Chain>(() => LoadChain());
        }
Beispiel #3
0
        public StatsWorker(WorkerConfig workerConfig, ICoreDaemon coreDaemon)
            : base("StatsWorker", workerConfig.initialNotify, workerConfig.minIdleTime, workerConfig.maxIdleTime)
        {
            this.coreDaemon = coreDaemon;

            coreDaemon.UnconfirmedTxAdded += OnUnconfirmedTxAdded;
            coreDaemon.TxesConfirmed += OnTxesConfirmed;
            coreDaemon.TxesUnconfirmed += OnTxesUnconfirmed;
        }
Beispiel #4
0
        public StatsWorker(WorkerConfig workerConfig, ICoreDaemon coreDaemon)
            : base("StatsWorker", workerConfig.initialNotify, workerConfig.minIdleTime, workerConfig.maxIdleTime)
        {
            this.coreDaemon = coreDaemon;

            coreDaemon.UnconfirmedTxAdded += OnUnconfirmedTxAdded;
            coreDaemon.TxesConfirmed      += OnTxesConfirmed;
            coreDaemon.TxesUnconfirmed    += OnTxesUnconfirmed;
        }
Beispiel #5
0
        public PruningWorker(WorkerConfig workerConfig, ICoreDaemon coreDaemon, IStorageManager storageManager, ChainStateWorker chainStateWorker)
            : base("PruningWorker", workerConfig.initialNotify, workerConfig.minIdleTime, workerConfig.maxIdleTime)
        {
            this.coreDaemon       = coreDaemon;
            this.storageManager   = storageManager;
            this.chainStateWorker = chainStateWorker;

            this.prunedChain = new ChainBuilder();
            this.Mode        = PruningMode.None;
        }
        public PruningWorker(WorkerConfig workerConfig, ICoreDaemon coreDaemon, IStorageManager storageManager, ChainStateWorker chainStateWorker)
            : base("PruningWorker", workerConfig.initialNotify, workerConfig.minIdleTime, workerConfig.maxIdleTime)
        {
            this.coreDaemon = coreDaemon;
            this.storageManager = storageManager;
            this.chainStateWorker = chainStateWorker;

            this.prunedChain = new ChainBuilder();
            this.Mode = PruningMode.None;
        }