コード例 #1
0
        public void should_add_some_transactions_to_storage_when_using_accept_when_filter()
        {
            var filter = AcceptWhenTxFilter
                         .Create()
                         .Nonce(n => n >= 0)
                         .GasPrice(p => p > 2 && p < 1500)
                         .Build();
            var transactions = AddAndFilterTransactions(_inMemoryTxStorage, filter);

            transactions.Filtered.Count().Should().NotBe(0);
        }
コード例 #2
0
        public void should_add_some_transactions_to_storage_when_using_accept_when_filter()
        {
            _filter = AcceptWhenTxFilter
                      .Create()
                      .Nonce(n => n >= 0)
                      .GasPrice(p => p > 2 && p < 1500)
                      .Build();
            var transactions      = GetTransactions();
            var addedTransactions = ApplyFilter(transactions);

            addedTransactions.Should().NotBeEmpty();
        }