@@ -66,32 +66,32 @@ fn expect_strategies(
6666
6767#[ tokio:: test]
6868async fn test_ix_commit_single_account_100_bytes ( ) {
69- commit_single_account ( 100 , CommitStrategy :: Args , false ) . await ;
69+ commit_single_account ( 100 , CommitStrategy :: StateArgs , false ) . await ;
7070}
7171
7272#[ tokio:: test]
7373async fn test_ix_commit_single_account_100_bytes_and_undelegate ( ) {
74- commit_single_account ( 100 , CommitStrategy :: Args , true ) . await ;
74+ commit_single_account ( 100 , CommitStrategy :: StateArgs , true ) . await ;
7575}
7676
7777#[ tokio:: test]
7878async fn test_ix_commit_single_account_800_bytes ( ) {
79- commit_single_account ( 800 , CommitStrategy :: FromBuffer , false ) . await ;
79+ commit_single_account ( 800 , CommitStrategy :: StateBuffer , false ) . await ;
8080}
8181
8282#[ tokio:: test]
8383async fn test_ix_commit_single_account_800_bytes_and_undelegate ( ) {
84- commit_single_account ( 800 , CommitStrategy :: FromBuffer , true ) . await ;
84+ commit_single_account ( 800 , CommitStrategy :: StateBuffer , true ) . await ;
8585}
8686
8787#[ tokio:: test]
8888async fn test_ix_commit_single_account_one_kb ( ) {
89- commit_single_account ( 1024 , CommitStrategy :: FromBuffer , false ) . await ;
89+ commit_single_account ( 1024 , CommitStrategy :: StateBuffer , false ) . await ;
9090}
9191
9292#[ tokio:: test]
9393async fn test_ix_commit_single_account_ten_kb ( ) {
94- commit_single_account ( 10 * 1024 , CommitStrategy :: FromBuffer , false ) . await ;
94+ commit_single_account ( 10 * 1024 , CommitStrategy :: StateBuffer , false ) . await ;
9595}
9696
9797async fn commit_single_account (
@@ -173,7 +173,7 @@ async fn test_ix_commit_two_accounts_1kb_2kb() {
173173 & [ 1024 , 2048 ] ,
174174 1 ,
175175 false ,
176- expect_strategies ( & [ ( CommitStrategy :: Args , 2 ) ] ) ,
176+ expect_strategies ( & [ ( CommitStrategy :: StateArgs , 2 ) ] ) ,
177177 )
178178 . await ;
179179}
@@ -185,7 +185,7 @@ async fn test_ix_commit_two_accounts_512kb() {
185185 & [ 512 , 512 ] ,
186186 1 ,
187187 false ,
188- expect_strategies ( & [ ( CommitStrategy :: Args , 2 ) ] ) ,
188+ expect_strategies ( & [ ( CommitStrategy :: StateArgs , 2 ) ] ) ,
189189 )
190190 . await ;
191191}
@@ -197,7 +197,7 @@ async fn test_ix_commit_three_accounts_512kb() {
197197 & [ 512 , 512 , 512 ] ,
198198 1 ,
199199 false ,
200- expect_strategies ( & [ ( CommitStrategy :: Args , 3 ) ] ) ,
200+ expect_strategies ( & [ ( CommitStrategy :: StateArgs , 3 ) ] ) ,
201201 )
202202 . await ;
203203}
@@ -209,7 +209,7 @@ async fn test_ix_commit_six_accounts_512kb() {
209209 & [ 512 , 512 , 512 , 512 , 512 , 512 ] ,
210210 1 ,
211211 false ,
212- expect_strategies ( & [ ( CommitStrategy :: Args , 6 ) ] ) ,
212+ expect_strategies ( & [ ( CommitStrategy :: StateArgs , 6 ) ] ) ,
213213 )
214214 . await ;
215215}
@@ -221,22 +221,25 @@ async fn test_ix_commit_four_accounts_1kb_2kb_5kb_10kb_single_bundle() {
221221 & [ 1024 , 2 * 1024 , 5 * 1024 , 10 * 1024 ] ,
222222 1 ,
223223 false ,
224- expect_strategies ( & [ ( CommitStrategy :: Args , 4 ) ] ) ,
224+ expect_strategies ( & [ ( CommitStrategy :: StateArgs , 4 ) ] ) ,
225225 )
226226 . await ;
227227}
228228
229229#[ tokio:: test]
230230async fn test_commit_20_accounts_1kb_bundle_size_2 ( ) {
231- commit_20_accounts_1kb ( 2 , expect_strategies ( & [ ( CommitStrategy :: Args , 20 ) ] ) )
232- . await ;
231+ commit_20_accounts_1kb (
232+ 2 ,
233+ expect_strategies ( & [ ( CommitStrategy :: StateArgs , 20 ) ] ) ,
234+ )
235+ . await ;
233236}
234237
235238#[ tokio:: test]
236239async fn test_commit_5_accounts_1kb_bundle_size_3 ( ) {
237240 commit_5_accounts_1kb (
238241 3 ,
239- expect_strategies ( & [ ( CommitStrategy :: Args , 5 ) ] ) ,
242+ expect_strategies ( & [ ( CommitStrategy :: StateArgs , 5 ) ] ) ,
240243 false ,
241244 )
242245 . await ;
@@ -248,8 +251,8 @@ async fn test_commit_5_accounts_1kb_bundle_size_3_undelegate_all() {
248251 3 ,
249252 expect_strategies ( & [
250253 // Intent fits in 1 TX only with ALT, see IntentExecutorImpl::try_unite_tasks
251- ( CommitStrategy :: FromBufferWithLookupTable , 3 ) ,
252- ( CommitStrategy :: Args , 2 ) ,
254+ ( CommitStrategy :: StateBufferWithLookupTable , 3 ) ,
255+ ( CommitStrategy :: StateArgs , 2 ) ,
253256 ] ) ,
254257 true ,
255258 )
@@ -261,8 +264,8 @@ async fn test_commit_5_accounts_1kb_bundle_size_4() {
261264 commit_5_accounts_1kb (
262265 4 ,
263266 expect_strategies ( & [
264- ( CommitStrategy :: Args , 1 ) ,
265- ( CommitStrategy :: FromBufferWithLookupTable , 4 ) ,
267+ ( CommitStrategy :: StateArgs , 1 ) ,
268+ ( CommitStrategy :: StateBufferWithLookupTable , 4 ) ,
266269 ] ) ,
267270 false ,
268271 )
@@ -274,8 +277,8 @@ async fn test_commit_5_accounts_1kb_bundle_size_4_undelegate_all() {
274277 commit_5_accounts_1kb (
275278 4 ,
276279 expect_strategies ( & [
277- ( CommitStrategy :: Args , 1 ) ,
278- ( CommitStrategy :: FromBufferWithLookupTable , 4 ) ,
280+ ( CommitStrategy :: StateArgs , 1 ) ,
281+ ( CommitStrategy :: StateBufferWithLookupTable , 4 ) ,
279282 ] ) ,
280283 true ,
281284 )
@@ -286,23 +289,26 @@ async fn test_commit_5_accounts_1kb_bundle_size_4_undelegate_all() {
286289async fn test_commit_5_accounts_1kb_bundle_size_5_undelegate_all ( ) {
287290 commit_5_accounts_1kb (
288291 5 ,
289- expect_strategies ( & [ ( CommitStrategy :: FromBufferWithLookupTable , 5 ) ] ) ,
292+ expect_strategies ( & [ ( CommitStrategy :: StateBufferWithLookupTable , 5 ) ] ) ,
290293 true ,
291294 )
292295 . await ;
293296}
294297
295298#[ tokio:: test]
296299async fn test_commit_20_accounts_1kb_bundle_size_3 ( ) {
297- commit_20_accounts_1kb ( 3 , expect_strategies ( & [ ( CommitStrategy :: Args , 20 ) ] ) )
298- . await ;
300+ commit_20_accounts_1kb (
301+ 3 ,
302+ expect_strategies ( & [ ( CommitStrategy :: StateArgs , 20 ) ] ) ,
303+ )
304+ . await ;
299305}
300306
301307#[ tokio:: test]
302308async fn test_commit_20_accounts_1kb_bundle_size_4 ( ) {
303309 commit_20_accounts_1kb (
304310 4 ,
305- expect_strategies ( & [ ( CommitStrategy :: FromBufferWithLookupTable , 20 ) ] ) ,
311+ expect_strategies ( & [ ( CommitStrategy :: StateBufferWithLookupTable , 20 ) ] ) ,
306312 )
307313 . await ;
308314}
@@ -312,9 +318,9 @@ async fn test_commit_20_accounts_1kb_bundle_size_6() {
312318 commit_20_accounts_1kb (
313319 6 ,
314320 expect_strategies ( & [
315- ( CommitStrategy :: FromBufferWithLookupTable , 18 ) ,
321+ ( CommitStrategy :: StateBufferWithLookupTable , 18 ) ,
316322 // Two accounts don't make it into the bundles of size 6
317- ( CommitStrategy :: Args , 2 ) ,
323+ ( CommitStrategy :: StateArgs , 2 ) ,
318324 ] ) ,
319325 )
320326 . await ;
@@ -324,7 +330,7 @@ async fn test_commit_20_accounts_1kb_bundle_size_6() {
324330async fn test_commit_20_accounts_1kb_bundle_size_20 ( ) {
325331 commit_20_accounts_1kb (
326332 20 ,
327- expect_strategies ( & [ ( CommitStrategy :: FromBufferWithLookupTable , 20 ) ] ) ,
333+ expect_strategies ( & [ ( CommitStrategy :: StateBufferWithLookupTable , 20 ) ] ) ,
328334 )
329335 . await ;
330336}
@@ -336,7 +342,7 @@ async fn test_commit_8_accounts_1kb_bundle_size_8() {
336342 expect_strategies ( & [
337343 // Four accounts don't make it into the bundles of size 8, but
338344 // that bundle also needs lookup tables
339- ( CommitStrategy :: FromBufferWithLookupTable , 8 ) ,
345+ ( CommitStrategy :: StateBufferWithLookupTable , 8 ) ,
340346 ] ) ,
341347 )
342348 . await ;
@@ -349,7 +355,7 @@ async fn test_commit_20_accounts_1kb_bundle_size_8() {
349355 expect_strategies ( & [
350356 // Four accounts don't make it into the bundles of size 8, but
351357 // that bundle also needs lookup tables
352- ( CommitStrategy :: FromBufferWithLookupTable , 20 ) ,
358+ ( CommitStrategy :: StateBufferWithLookupTable , 20 ) ,
353359 ] ) ,
354360 )
355361 . await ;
0 commit comments