Ejemplo n.º 1
0
 public NinjaApiBlockChainProvider(QBitNinjaClient ninjaClient, RPCClient rpcClient, Network network,
                                   IAddressValidator addressValidator, BlockHeightSettings blockHeightSettings)
 {
     _ninjaClient         = ninjaClient;
     _rpcClient           = rpcClient;
     _ninjaClient.Colored = true;
     _network             = network;
     _addressValidator    = addressValidator;
     _blockHeightSettings = blockHeightSettings;
 }
Ejemplo n.º 2
0
        public UpdateBalanceFunctions(IObservableWalletRepository observableWalletRepository,
                                      OperationsConfirmationsSettings confirmationsSettings,
                                      IBlockChainProvider blockChainProvider,
                                      IWalletBalanceService walletBalanceService,
                                      BlockHeightSettings blockHeightSettings,
                                      ILastProcessedBlockRepository lastProcessedBlockRepository,
                                      HotWalletAddressSettings hotWalletAddressSettings,
                                      ILogFactory logFactory)
        {
            _observableWalletRepository   = observableWalletRepository;
            _confirmationsSettings        = confirmationsSettings;
            _blockChainProvider           = blockChainProvider;
            _walletBalanceService         = walletBalanceService;
            _blockHeightSettings          = blockHeightSettings;
            _lastProcessedBlockRepository = lastProcessedBlockRepository;
            _hotWalletAddressSettings     = hotWalletAddressSettings;
            _log = logFactory.CreateLog(this);

            _log.Info("Starting balance updating", context: blockHeightSettings);
        }
 public StartupManager(BlockHeightSettings blockHeightSettings, ILogFactory logFactory)
 {
     _blockHeightSettings = blockHeightSettings;
     _log = logFactory.CreateLog(this);
 }