示例#1
0
        public PartialTransactionsBehavior(
            ILoggerFactory loggerFactory,
            IFederationWalletManager federationWalletManager,
            Network network,
            IFederatedPegSettings federatedPegSettings,
            ICrossChainTransferStore crossChainTransferStore)
        {
            Guard.NotNull(loggerFactory, nameof(loggerFactory));
            Guard.NotNull(federationWalletManager, nameof(federationWalletManager));
            Guard.NotNull(network, nameof(network));
            Guard.NotNull(federatedPegSettings, nameof(federatedPegSettings));
            Guard.NotNull(crossChainTransferStore, nameof(crossChainTransferStore));

            this.logger                  = loggerFactory.CreateLogger(this.GetType().FullName);
            this.loggerFactory           = loggerFactory;
            this.federationWalletManager = federationWalletManager;
            this.network                 = network;
            this.federatedPegSettings    = federatedPegSettings;
            this.crossChainTransferStore = crossChainTransferStore;
            this.ipAddressComparer       = new IPAddressComparer();
        }
示例#2
0
        public PartialTransactionsBehavior(
            ILoggerFactory loggerFactory,
            IFederationWalletManager federationWalletManager,
            Network network,
            IFederatedPegSettings federatedPegSettings,
            ICrossChainTransferStore crossChainTransferStore,
            IInputConsolidator inputConsolidator)
        {
            Guard.NotNull(loggerFactory, nameof(loggerFactory));
            Guard.NotNull(federationWalletManager, nameof(federationWalletManager));
            Guard.NotNull(network, nameof(network));
            Guard.NotNull(federatedPegSettings, nameof(federatedPegSettings));
            Guard.NotNull(crossChainTransferStore, nameof(crossChainTransferStore));

            this.logger                  = loggerFactory.CreateLogger("Impleum.Bitcoin.Fullnode");
            this.loggerFactory           = loggerFactory;
            this.federationWalletManager = federationWalletManager;
            this.network                 = network;
            this.federatedPegSettings    = federatedPegSettings;
            this.crossChainTransferStore = crossChainTransferStore;
            this.ipAddressComparer       = new IPAddressComparer();
            this.inputConsolidator       = inputConsolidator;
        }