Exemple #1
0
        public void ProducerGasPriceComparer_for_legacy_transactions(int gasPriceX, int gasPriceY, int expectedResult)
        {
            TestingContext          context  = new TestingContext();
            IComparer <Transaction> comparer = context.GetProducerComparer(new BlockPreparationContext(0, 0));

            AssertLegacyTransactions(comparer, gasPriceX, gasPriceY, expectedResult);
        }
Exemple #2
0
        public void ProducerGasPriceComparer_for_legacy_transactions_1559(int gasPriceX, int gasPriceY, int headBaseFee, long headBlockNumber, int expectedResult)
        {
            long                    eip1559Transition = 5;
            TestingContext          context           = new TestingContext(true, eip1559Transition);
            IComparer <Transaction> comparer          = context.GetProducerComparer(new BlockPreparationContext(0, 0));

            AssertLegacyTransactions(comparer, gasPriceX, gasPriceY, expectedResult);
        }
Exemple #3
0
        public void ProducerGasPriceComparer_for_eip1559_transactions_1559(int feeCapX, int gasPremiumX, int feeCapY, int gasPremiumY, int headBaseFee, long headBlockNumber, int expectedResult)
        {
            long                    eip1559Transition = 5;
            TestingContext          context           = new TestingContext(true, eip1559Transition);
            IComparer <Transaction> comparer          = context.GetProducerComparer(new BlockPreparationContext((UInt256)headBaseFee, headBlockNumber));

            Assert1559Transactions(comparer, feeCapX, gasPremiumX, feeCapY, gasPremiumY, expectedResult);
        }