public async Task DoesntBroadcastWithInactiveFederation()
        {
            this.federationWalletManager.IsFederationWalletActive().Returns(false);

            var partialRequester = new PartialTransactionRequester(
                this.store,
                this.asyncProvider,
                this.nodeLifetime,
                this.federatedPegBroadcaster,
                this.ibdState,
                this.federationWalletManager,
                this.inputConsolidator);

            await partialRequester.BroadcastPartialTransactionsAsync();

            this.store.Received(0).GetTransfersByStatus(Arg.Any <CrossChainTransferStatus[]>());
        }
        public async Task DoesntBroadcastWithInactiveFederation()
        {
            this.federationWalletManager.IsFederationWalletActive().Returns(false);

            var partialRequester = new PartialTransactionRequester(
                this.loggerFactory,
                this.store,
                this.asyncProvider,
                this.nodeLifetime,
                this.connectionManager,
                this.federationGatewaySettings,
                this.ibdState,
                this.federationWalletManager);

            await partialRequester.BroadcastPartialTransactionsAsync();

            await this.store.Received(0).GetTransactionsByStatusAsync(Arg.Any <CrossChainTransferStatus>());
        }
Ejemplo n.º 3
0
        public async Task DoesntBroadcastInIBD()
        {
            this.ibdState.IsInitialBlockDownload().Returns(true);

            var partialRequester = new PartialTransactionRequester(
                this.loggerFactory,
                this.store,
                this.asyncProvider,
                this.nodeLifetime,
                this.connectionManager,
                this.federatedPegSettings,
                this.ibdState,
                this.federationWalletManager);

            await partialRequester.BroadcastPartialTransactionsAsync();

            this.store.Received(0).GetTransfersByStatus(Arg.Any <CrossChainTransferStatus[]>());
        }