|
@ -90,22 +90,22 @@ BOOST_AUTO_TEST_CASE(basicGasPricerNoUpdate) |
|
|
|
|
|
|
|
|
BOOST_AUTO_TEST_CASE(basicGasPricer_RPC_API_Test) |
|
|
BOOST_AUTO_TEST_CASE(basicGasPricer_RPC_API_Test) |
|
|
{ |
|
|
{ |
|
|
dev::test::executeGasPricerTest("RPC_API_Test", 30.679, 15.0, "/BlockTests/bcRPC_API_Test.json", TransactionPriority::Medium, 155632494086, 155632494086); |
|
|
dev::test::executeGasPricerTest("RPC_API_Test", 30.679, 15.0, "/BlockTests/bcRPC_API_Test.json", TransactionPriority::Medium, 155632494086, 1); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
BOOST_AUTO_TEST_CASE(basicGasPricer_bcValidBlockTest) |
|
|
BOOST_AUTO_TEST_CASE(basicGasPricer_bcValidBlockTest) |
|
|
{ |
|
|
{ |
|
|
dev::test::executeGasPricerTest("SimpleTx", 30.679, 15.0, "/BlockTests/bcValidBlockTest.json", TransactionPriority::Medium, 155632494086, 155632494086); |
|
|
dev::test::executeGasPricerTest("SimpleTx", 30.679, 15.0, "/BlockTests/bcValidBlockTest.json", TransactionPriority::Medium, 155632494086, 10); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
BOOST_AUTO_TEST_CASE(basicGasPricer_bcUncleTest) |
|
|
BOOST_AUTO_TEST_CASE(basicGasPricer_bcUncleTest) |
|
|
{ |
|
|
{ |
|
|
dev::test::executeGasPricerTest("twoUncle", 30.679, 15.0, "/BlockTests/bcUncleTest.json", TransactionPriority::Medium, 155632494086, 155632494086); |
|
|
dev::test::executeGasPricerTest("twoUncle", 30.679, 15.0, "/BlockTests/bcUncleTest.json", TransactionPriority::Medium, 155632494086, 1); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
BOOST_AUTO_TEST_CASE(basicGasPricer_bcUncleHeaderValiditiy) |
|
|
BOOST_AUTO_TEST_CASE(basicGasPricer_bcUncleHeaderValiditiy) |
|
|
{ |
|
|
{ |
|
|
dev::test::executeGasPricerTest("correct", 30.679, 15.0, "/BlockTests/bcUncleHeaderValiditiy.json", TransactionPriority::Medium, 155632494086, 155632494086); |
|
|
dev::test::executeGasPricerTest("correct", 30.679, 15.0, "/BlockTests/bcUncleHeaderValiditiy.json", TransactionPriority::Medium, 155632494086, 1); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
BOOST_AUTO_TEST_CASE(basicGasPricer_notxs) |
|
|
BOOST_AUTO_TEST_CASE(basicGasPricer_notxs) |
|
@ -115,26 +115,26 @@ BOOST_AUTO_TEST_CASE(basicGasPricer_notxs) |
|
|
|
|
|
|
|
|
BOOST_AUTO_TEST_CASE(basicGasPricer_highGasUsage_LowestPrio) |
|
|
BOOST_AUTO_TEST_CASE(basicGasPricer_highGasUsage_LowestPrio) |
|
|
{ |
|
|
{ |
|
|
dev::test::executeGasPricerTest("highGasUsage", 30.679, 15.0, "/BlockTests/bcGasPricerTest.json", TransactionPriority::Lowest, 15731290119, 10000000000000); |
|
|
dev::test::executeGasPricerTest("highGasUsage", 30.679, 15.0, "/BlockTests/bcGasPricerTest.json", TransactionPriority::Lowest, 15731292650, 10000000000000); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
BOOST_AUTO_TEST_CASE(basicGasPricer_highGasUsage_LowPrio) |
|
|
BOOST_AUTO_TEST_CASE(basicGasPricer_highGasUsage_LowPrio) |
|
|
{ |
|
|
{ |
|
|
dev::test::executeGasPricerTest("highGasUsage", 30.679, 15.0, "/BlockTests/bcGasPricerTest.json", TransactionPriority::Low, 15731290119, 15812460025839); |
|
|
dev::test::executeGasPricerTest("highGasUsage", 30.679, 15.0, "/BlockTests/bcGasPricerTest.json", TransactionPriority::Low, 15731292650, 15734152261884); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
BOOST_AUTO_TEST_CASE(basicGasPricer_highGasUsage_MediumPrio) |
|
|
BOOST_AUTO_TEST_CASE(basicGasPricer_highGasUsage_MediumPrio) |
|
|
{ |
|
|
{ |
|
|
dev::test::executeGasPricerTest("highGasUsage", 30.679, 15.0, "/BlockTests/bcGasPricerTest.json", TransactionPriority::Medium, 15731290119, 20072941956000); |
|
|
dev::test::executeGasPricerTest("highGasUsage", 30.679, 15.0, "/BlockTests/bcGasPricerTest.json", TransactionPriority::Medium, 15731292650, 20000000000000); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
BOOST_AUTO_TEST_CASE(basicGasPricer_highGasUsage_HighPrio) |
|
|
BOOST_AUTO_TEST_CASE(basicGasPricer_highGasUsage_HighPrio) |
|
|
{ |
|
|
{ |
|
|
dev::test::executeGasPricerTest("highGasUsage", 30.679, 15.0, "/BlockTests/bcGasPricerTest.json", TransactionPriority::High, 15731290119, 24328405650672); |
|
|
dev::test::executeGasPricerTest("highGasUsage", 30.679, 15.0, "/BlockTests/bcGasPricerTest.json", TransactionPriority::High, 15731292650, 24265847738115); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
BOOST_AUTO_TEST_CASE(basicGasPricer_highGasUsage_HighestPrio) |
|
|
BOOST_AUTO_TEST_CASE(basicGasPricer_highGasUsage_HighestPrio) |
|
|
{ |
|
|
{ |
|
|
dev::test::executeGasPricerTest("highGasUsage", 30.679, 15.0, "/BlockTests/bcGasPricerTest.json", TransactionPriority::Highest, 15731290119, 30000000000000); |
|
|
dev::test::executeGasPricerTest("highGasUsage", 30.679, 15.0, "/BlockTests/bcGasPricerTest.json", TransactionPriority::Highest, 15731292650, 30000000000000); |
|
|
} |
|
|
} |
|
|
BOOST_AUTO_TEST_SUITE_END() |
|
|
BOOST_AUTO_TEST_SUITE_END() |
|
|