Skip to content
This repository was archived by the owner on Oct 28, 2021. It is now read-only.

Commit 8f7e7ac

Browse files
author
Dimitry
committed
fix gasPricer tests
1 parent 1373260 commit 8f7e7ac

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

test/unittests/libethereum/GasPricer.cpp

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -95,95 +95,95 @@ BOOST_AUTO_TEST_CASE(basicGasPricer_RPC_API_Test_Frontier)
9595
{
9696
u256 _expectedAsk = 16056883295;
9797
u256 _expectedBid = 1;
98-
dev::test::executeGasPricerTest("RPC_API_Test_Frontier", 30.679, 15.0, "/BlockchainTests/bcGasPricerTest/RPC_API_Test.json", TransactionPriority::Medium, _expectedAsk, _expectedBid, eth::Network::FrontierTest);
98+
dev::test::executeGasPricerTest("RPC_API_Test_Frontier", 30.679, 15.0, "/BlockchainTests/ValidBlocks/bcGasPricerTest/RPC_API_Test.json", TransactionPriority::Medium, _expectedAsk, _expectedBid, eth::Network::FrontierTest);
9999
}
100100

101101
BOOST_AUTO_TEST_CASE(basicGasPricer_RPC_API_Test_Homestead)
102102
{
103103
u256 _expectedAsk = 16056864311;
104104
u256 _expectedBid = 1;
105-
dev::test::executeGasPricerTest("RPC_API_Test_Homestead", 30.679, 15.0, "/BlockchainTests/bcGasPricerTest/RPC_API_Test.json", TransactionPriority::Medium, _expectedAsk, _expectedBid, eth::Network::HomesteadTest);
105+
dev::test::executeGasPricerTest("RPC_API_Test_Homestead", 30.679, 15.0, "/BlockchainTests/ValidBlocks/bcGasPricerTest/RPC_API_Test.json", TransactionPriority::Medium, _expectedAsk, _expectedBid, eth::Network::HomesteadTest);
106106
}
107107

108108
BOOST_AUTO_TEST_CASE(basicGasPricer_bcValidBlockTest)
109109
{
110-
dev::test::executeGasPricerTest("SimpleTx_Frontier", 30.679, 15.0, "/BlockchainTests/bcValidBlockTest/SimpleTx.json", TransactionPriority::Medium, 155632494086, 10);
110+
dev::test::executeGasPricerTest("SimpleTx_Frontier", 30.679, 15.0, "/BlockchainTests/ValidBlocks/bcValidBlockTest/SimpleTx.json", TransactionPriority::Medium, 155632494086, 10);
111111
}
112112

113113
BOOST_AUTO_TEST_CASE(basicGasPricer_bcUncleTest_Frontier)
114114
{
115115
u256 _expectedAsk = 155632494086;
116116
u256 _expectedBid = 1;
117-
dev::test::executeGasPricerTest("twoUncle_Frontier", 30.679, 15.0, "/BlockchainTests/bcUncleTest/twoUncle.json", TransactionPriority::Medium, _expectedAsk, _expectedBid, eth::Network::FrontierTest);
117+
dev::test::executeGasPricerTest("twoUncle_Frontier", 30.679, 15.0, "/BlockchainTests/ValidBlocks/bcUncleTest/twoUncle.json", TransactionPriority::Medium, _expectedAsk, _expectedBid, eth::Network::FrontierTest);
118118
}
119119

120120
BOOST_AUTO_TEST_CASE(basicGasPricer_bcUncleTest_Homestead)
121121
{
122122
u256 _expectedAsk = 155632494086;
123123
u256 _expectedBid = 1;
124-
dev::test::executeGasPricerTest("twoUncle_Homestead", 30.679, 15.0, "/BlockchainTests/bcUncleTest/twoUncle.json", TransactionPriority::Medium, _expectedAsk, _expectedBid, eth::Network::HomesteadTest);
124+
dev::test::executeGasPricerTest("twoUncle_Homestead", 30.679, 15.0, "/BlockchainTests/ValidBlocks/bcUncleTest/twoUncle.json", TransactionPriority::Medium, _expectedAsk, _expectedBid, eth::Network::HomesteadTest);
125125
}
126126

127127
BOOST_AUTO_TEST_CASE(basicGasPricer_bcUncleHeaderValidity_Frontier)
128128
{
129129
u256 _expectedAsk = 155632494086;
130130
u256 _expectedBid = 1;
131-
dev::test::executeGasPricerTest("correct_Frontier", 30.679, 15.0, "/BlockchainTests/bcUncleHeaderValidity/correct.json", TransactionPriority::Medium, _expectedAsk, _expectedBid, eth::Network::FrontierTest);
131+
dev::test::executeGasPricerTest("correct_Frontier", 30.679, 15.0, "/BlockchainTests/InvalidBlocks/bcUncleHeaderValidity/correct.json", TransactionPriority::Medium, _expectedAsk, _expectedBid, eth::Network::FrontierTest);
132132
}
133133

134134
BOOST_AUTO_TEST_CASE(basicGasPricer_bcUncleHeaderValidity_Homestead)
135135
{
136136
u256 _expectedAsk = 155633980282;
137137
u256 _expectedBid = 1;
138-
dev::test::executeGasPricerTest("correct_Homestead", 30.679, 15.0, "/BlockchainTests/bcUncleHeaderValidity/correct.json", TransactionPriority::Medium, _expectedAsk, _expectedBid, eth::Network::HomesteadTest);
138+
dev::test::executeGasPricerTest("correct_Homestead", 30.679, 15.0, "/BlockchainTests/InvalidBlocks/bcUncleHeaderValidity/correct.json", TransactionPriority::Medium, _expectedAsk, _expectedBid, eth::Network::HomesteadTest);
139139
}
140140

141141
BOOST_AUTO_TEST_CASE(basicGasPricer_notxs_frontier)
142142
{
143143
u256 _expectedAsk = 155632494086;
144144
u256 _expectedBid = 155632494086;
145-
dev::test::executeGasPricerTest("notxs_Frontier", 30.679, 15.0, "/BlockchainTests/bcGasPricerTest/notxs.json", TransactionPriority::Medium, _expectedAsk, _expectedBid, eth::Network::FrontierTest);
145+
dev::test::executeGasPricerTest("notxs_Frontier", 30.679, 15.0, "/BlockchainTests/ValidBlocks/bcGasPricerTest/notxs.json", TransactionPriority::Medium, _expectedAsk, _expectedBid, eth::Network::FrontierTest);
146146
}
147147

148148
BOOST_AUTO_TEST_CASE(basicGasPricer_notxs_homestead)
149149
{
150150
u256 _expectedAsk = 155632494086;
151151
u256 _expectedBid = 155632494086;
152-
dev::test::executeGasPricerTest("notxs_Homestead", 30.679, 15.0, "/BlockchainTests/bcGasPricerTest/notxs.json", TransactionPriority::Medium, _expectedAsk, _expectedBid, eth::Network::HomesteadTest);
152+
dev::test::executeGasPricerTest("notxs_Homestead", 30.679, 15.0, "/BlockchainTests/ValidBlocks/bcGasPricerTest/notxs.json", TransactionPriority::Medium, _expectedAsk, _expectedBid, eth::Network::HomesteadTest);
153153
}
154154

155155
BOOST_AUTO_TEST_CASE(basicGasPricer_highGasUsage_LowestPrio)
156156
{
157157
u256 _expectedAsk = 15731408053;
158158
u256 _expectedBid = 10000000000000;
159-
dev::test::executeGasPricerTest("highGasUsage_Frontier", 30.679, 15.0, "/BlockchainTests/bcGasPricerTest/highGasUsage.json", TransactionPriority::Lowest, _expectedAsk, _expectedBid, eth::Network::FrontierTest);
159+
dev::test::executeGasPricerTest("highGasUsage_Frontier", 30.679, 15.0, "/BlockchainTests/ValidBlocks/bcGasPricerTest/highGasUsage.json", TransactionPriority::Lowest, _expectedAsk, _expectedBid, eth::Network::FrontierTest);
160160
}
161161

162162
BOOST_AUTO_TEST_CASE(basicGasPricer_highGasUsage_LowPrio)
163163
{
164164
u256 _expectedAsk = 15731408053;
165165
u256 _expectedBid = 15734152261884;
166-
dev::test::executeGasPricerTest("highGasUsage_Frontier", 30.679, 15.0, "/BlockchainTests/bcGasPricerTest/highGasUsage.json", TransactionPriority::Low, _expectedAsk, _expectedBid, eth::Network::FrontierTest);
166+
dev::test::executeGasPricerTest("highGasUsage_Frontier", 30.679, 15.0, "/BlockchainTests/ValidBlocks/bcGasPricerTest/highGasUsage.json", TransactionPriority::Low, _expectedAsk, _expectedBid, eth::Network::FrontierTest);
167167
}
168168

169169
BOOST_AUTO_TEST_CASE(basicGasPricer_highGasUsage_MediumPrio)
170170
{
171171
u256 _expectedAsk = 15731408053;
172172
u256 _expectedBid = 20000000000000;
173-
dev::test::executeGasPricerTest("highGasUsage_Frontier", 30.679, 15.0, "/BlockchainTests/bcGasPricerTest/highGasUsage.json", TransactionPriority::Medium, _expectedAsk, _expectedBid, eth::Network::FrontierTest);
173+
dev::test::executeGasPricerTest("highGasUsage_Frontier", 30.679, 15.0, "/BlockchainTests/ValidBlocks/bcGasPricerTest/highGasUsage.json", TransactionPriority::Medium, _expectedAsk, _expectedBid, eth::Network::FrontierTest);
174174
}
175175

176176
BOOST_AUTO_TEST_CASE(basicGasPricer_highGasUsage_HighPrio)
177177
{
178178
u256 _expectedAsk = 15731408053;
179179
u256 _expectedBid = 24265847738115;
180-
dev::test::executeGasPricerTest("highGasUsage_Frontier", 30.679, 15.0, "/BlockchainTests/bcGasPricerTest/highGasUsage.json", TransactionPriority::High, _expectedAsk, _expectedBid, eth::Network::FrontierTest);
180+
dev::test::executeGasPricerTest("highGasUsage_Frontier", 30.679, 15.0, "/BlockchainTests/ValidBlocks/bcGasPricerTest/highGasUsage.json", TransactionPriority::High, _expectedAsk, _expectedBid, eth::Network::FrontierTest);
181181
}
182182

183183
BOOST_AUTO_TEST_CASE(basicGasPricer_highGasUsage_HighestPrio)
184184
{
185185
u256 _expectedAsk = 15731408053;
186186
u256 _expectedBid = 30000000000000;
187-
dev::test::executeGasPricerTest("highGasUsage_Frontier", 30.679, 15.0, "/BlockchainTests/bcGasPricerTest/highGasUsage.json", TransactionPriority::Highest, _expectedAsk, _expectedBid, eth::Network::FrontierTest);
187+
dev::test::executeGasPricerTest("highGasUsage_Frontier", 30.679, 15.0, "/BlockchainTests/ValidBlocks/bcGasPricerTest/highGasUsage.json", TransactionPriority::Highest, _expectedAsk, _expectedBid, eth::Network::FrontierTest);
188188
}
189189
BOOST_AUTO_TEST_SUITE_END()

0 commit comments

Comments
 (0)