@@ -64,32 +64,32 @@ fn expect_strategies(
6464
6565#[ tokio:: test]
6666async fn test_ix_commit_single_account_100_bytes ( ) {
67- commit_single_account ( 100 , CommitStrategy :: Args , false ) . await ;
67+ commit_single_account ( 100 , CommitStrategy :: StateArgs , false ) . await ;
6868}
6969
7070#[ tokio:: test]
7171async fn test_ix_commit_single_account_100_bytes_and_undelegate ( ) {
72- commit_single_account ( 100 , CommitStrategy :: Args , true ) . await ;
72+ commit_single_account ( 100 , CommitStrategy :: StateArgs , true ) . await ;
7373}
7474
7575#[ tokio:: test]
7676async fn test_ix_commit_single_account_800_bytes ( ) {
77- commit_single_account ( 800 , CommitStrategy :: FromBuffer , false ) . await ;
77+ commit_single_account ( 800 , CommitStrategy :: StateBuffer , false ) . await ;
7878}
7979
8080#[ tokio:: test]
8181async fn test_ix_commit_single_account_800_bytes_and_undelegate ( ) {
82- commit_single_account ( 800 , CommitStrategy :: FromBuffer , true ) . await ;
82+ commit_single_account ( 800 , CommitStrategy :: StateBuffer , true ) . await ;
8383}
8484
8585#[ tokio:: test]
8686async fn test_ix_commit_single_account_one_kb ( ) {
87- commit_single_account ( 1024 , CommitStrategy :: FromBuffer , false ) . await ;
87+ commit_single_account ( 1024 , CommitStrategy :: StateBuffer , false ) . await ;
8888}
8989
9090#[ tokio:: test]
9191async fn test_ix_commit_single_account_ten_kb ( ) {
92- commit_single_account ( 10 * 1024 , CommitStrategy :: FromBuffer , false ) . await ;
92+ commit_single_account ( 10 * 1024 , CommitStrategy :: StateBuffer , false ) . await ;
9393}
9494
9595async fn commit_single_account (
@@ -162,7 +162,7 @@ async fn test_ix_commit_two_accounts_1kb_2kb() {
162162 & [ 1024 , 2048 ] ,
163163 1 ,
164164 false ,
165- expect_strategies ( & [ ( CommitStrategy :: Args , 2 ) ] ) ,
165+ expect_strategies ( & [ ( CommitStrategy :: StateArgs , 2 ) ] ) ,
166166 )
167167 . await ;
168168}
@@ -174,7 +174,7 @@ async fn test_ix_commit_two_accounts_512kb() {
174174 & [ 512 , 512 ] ,
175175 1 ,
176176 false ,
177- expect_strategies ( & [ ( CommitStrategy :: Args , 2 ) ] ) ,
177+ expect_strategies ( & [ ( CommitStrategy :: StateArgs , 2 ) ] ) ,
178178 )
179179 . await ;
180180}
@@ -186,7 +186,7 @@ async fn test_ix_commit_three_accounts_512kb() {
186186 & [ 512 , 512 , 512 ] ,
187187 1 ,
188188 false ,
189- expect_strategies ( & [ ( CommitStrategy :: Args , 3 ) ] ) ,
189+ expect_strategies ( & [ ( CommitStrategy :: StateArgs , 3 ) ] ) ,
190190 )
191191 . await ;
192192}
@@ -198,7 +198,7 @@ async fn test_ix_commit_six_accounts_512kb() {
198198 & [ 512 , 512 , 512 , 512 , 512 , 512 ] ,
199199 1 ,
200200 false ,
201- expect_strategies ( & [ ( CommitStrategy :: Args , 6 ) ] ) ,
201+ expect_strategies ( & [ ( CommitStrategy :: StateArgs , 6 ) ] ) ,
202202 )
203203 . await ;
204204}
@@ -210,22 +210,25 @@ async fn test_ix_commit_four_accounts_1kb_2kb_5kb_10kb_single_bundle() {
210210 & [ 1024 , 2 * 1024 , 5 * 1024 , 10 * 1024 ] ,
211211 1 ,
212212 false ,
213- expect_strategies ( & [ ( CommitStrategy :: Args , 4 ) ] ) ,
213+ expect_strategies ( & [ ( CommitStrategy :: StateArgs , 4 ) ] ) ,
214214 )
215215 . await ;
216216}
217217
218218#[ tokio:: test]
219219async fn test_commit_20_accounts_1kb_bundle_size_2 ( ) {
220- commit_20_accounts_1kb ( 2 , expect_strategies ( & [ ( CommitStrategy :: Args , 20 ) ] ) )
221- . await ;
220+ commit_20_accounts_1kb (
221+ 2 ,
222+ expect_strategies ( & [ ( CommitStrategy :: StateArgs , 20 ) ] ) ,
223+ )
224+ . await ;
222225}
223226
224227#[ tokio:: test]
225228async fn test_commit_5_accounts_1kb_bundle_size_3 ( ) {
226229 commit_5_accounts_1kb (
227230 3 ,
228- expect_strategies ( & [ ( CommitStrategy :: Args , 5 ) ] ) ,
231+ expect_strategies ( & [ ( CommitStrategy :: StateArgs , 5 ) ] ) ,
229232 false ,
230233 )
231234 . await ;
@@ -237,8 +240,8 @@ async fn test_commit_5_accounts_1kb_bundle_size_3_undelegate_all() {
237240 3 ,
238241 expect_strategies ( & [
239242 // Intent fits in 1 TX only with ALT, see IntentExecutorImpl::try_unite_tasks
240- ( CommitStrategy :: FromBufferWithLookupTable , 3 ) ,
241- ( CommitStrategy :: Args , 2 ) ,
243+ ( CommitStrategy :: StateBufferWithLookupTable , 3 ) ,
244+ ( CommitStrategy :: StateArgs , 2 ) ,
242245 ] ) ,
243246 true ,
244247 )
@@ -250,8 +253,8 @@ async fn test_commit_5_accounts_1kb_bundle_size_4() {
250253 commit_5_accounts_1kb (
251254 4 ,
252255 expect_strategies ( & [
253- ( CommitStrategy :: Args , 1 ) ,
254- ( CommitStrategy :: FromBufferWithLookupTable , 4 ) ,
256+ ( CommitStrategy :: StateArgs , 1 ) ,
257+ ( CommitStrategy :: StateBufferWithLookupTable , 4 ) ,
255258 ] ) ,
256259 false ,
257260 )
@@ -263,8 +266,8 @@ async fn test_commit_5_accounts_1kb_bundle_size_4_undelegate_all() {
263266 commit_5_accounts_1kb (
264267 4 ,
265268 expect_strategies ( & [
266- ( CommitStrategy :: Args , 1 ) ,
267- ( CommitStrategy :: FromBufferWithLookupTable , 4 ) ,
269+ ( CommitStrategy :: StateArgs , 1 ) ,
270+ ( CommitStrategy :: StateBufferWithLookupTable , 4 ) ,
268271 ] ) ,
269272 true ,
270273 )
@@ -275,23 +278,26 @@ async fn test_commit_5_accounts_1kb_bundle_size_4_undelegate_all() {
275278async fn test_commit_5_accounts_1kb_bundle_size_5_undelegate_all ( ) {
276279 commit_5_accounts_1kb (
277280 5 ,
278- expect_strategies ( & [ ( CommitStrategy :: FromBufferWithLookupTable , 5 ) ] ) ,
281+ expect_strategies ( & [ ( CommitStrategy :: StateBufferWithLookupTable , 5 ) ] ) ,
279282 true ,
280283 )
281284 . await ;
282285}
283286
284287#[ tokio:: test]
285288async fn test_commit_20_accounts_1kb_bundle_size_3 ( ) {
286- commit_20_accounts_1kb ( 3 , expect_strategies ( & [ ( CommitStrategy :: Args , 20 ) ] ) )
287- . await ;
289+ commit_20_accounts_1kb (
290+ 3 ,
291+ expect_strategies ( & [ ( CommitStrategy :: StateArgs , 20 ) ] ) ,
292+ )
293+ . await ;
288294}
289295
290296#[ tokio:: test]
291297async fn test_commit_20_accounts_1kb_bundle_size_4 ( ) {
292298 commit_20_accounts_1kb (
293299 4 ,
294- expect_strategies ( & [ ( CommitStrategy :: FromBufferWithLookupTable , 20 ) ] ) ,
300+ expect_strategies ( & [ ( CommitStrategy :: StateBufferWithLookupTable , 20 ) ] ) ,
295301 )
296302 . await ;
297303}
@@ -301,9 +307,9 @@ async fn test_commit_20_accounts_1kb_bundle_size_6() {
301307 commit_20_accounts_1kb (
302308 6 ,
303309 expect_strategies ( & [
304- ( CommitStrategy :: FromBufferWithLookupTable , 18 ) ,
310+ ( CommitStrategy :: StateBufferWithLookupTable , 18 ) ,
305311 // Two accounts don't make it into the bundles of size 6
306- ( CommitStrategy :: Args , 2 ) ,
312+ ( CommitStrategy :: StateArgs , 2 ) ,
307313 ] ) ,
308314 )
309315 . await ;
@@ -313,7 +319,7 @@ async fn test_commit_20_accounts_1kb_bundle_size_6() {
313319async fn test_commit_20_accounts_1kb_bundle_size_20 ( ) {
314320 commit_20_accounts_1kb (
315321 20 ,
316- expect_strategies ( & [ ( CommitStrategy :: FromBufferWithLookupTable , 20 ) ] ) ,
322+ expect_strategies ( & [ ( CommitStrategy :: StateBufferWithLookupTable , 20 ) ] ) ,
317323 )
318324 . await ;
319325}
@@ -325,7 +331,7 @@ async fn test_commit_8_accounts_1kb_bundle_size_8() {
325331 expect_strategies ( & [
326332 // Four accounts don't make it into the bundles of size 8, but
327333 // that bundle also needs lookup tables
328- ( CommitStrategy :: FromBufferWithLookupTable , 8 ) ,
334+ ( CommitStrategy :: StateBufferWithLookupTable , 8 ) ,
329335 ] ) ,
330336 )
331337 . await ;
@@ -338,7 +344,7 @@ async fn test_commit_20_accounts_1kb_bundle_size_8() {
338344 expect_strategies ( & [
339345 // Four accounts don't make it into the bundles of size 8, but
340346 // that bundle also needs lookup tables
341- ( CommitStrategy :: FromBufferWithLookupTable , 20 ) ,
347+ ( CommitStrategy :: StateBufferWithLookupTable , 20 ) ,
342348 ] ) ,
343349 )
344350 . await ;
0 commit comments