@@ -105,7 +105,7 @@ async fn test_accumulators_root_created() {
105105 cfg. set_buffer_stake_for_protocol_upgrade_bps_for_testing ( 0 ) ;
106106 }
107107 if version == ProtocolVersion :: MAX_ALLOWED {
108- cfg. enable_accumulators_for_testing ( ) ;
108+ cfg. set_enable_accumulators_for_testing ( true ) ;
109109 }
110110 cfg
111111 } ) ;
@@ -176,7 +176,7 @@ async fn test_accumulators_disabled() {
176176 cfg. set_buffer_stake_for_protocol_upgrade_bps_for_testing ( 0 ) ;
177177 }
178178 if version == ProtocolVersion :: MAX_ALLOWED {
179- cfg. enable_accumulators_for_testing ( ) ;
179+ cfg. set_enable_accumulators_for_testing ( true ) ;
180180 }
181181 cfg
182182 } ) ;
@@ -293,7 +293,7 @@ async fn test_accumulators_disabled() {
293293async fn test_deposits ( ) {
294294 let _guard = ProtocolConfig :: apply_overrides_for_testing ( |_, mut cfg| {
295295 cfg. create_root_accumulator_object_for_testing ( ) ;
296- cfg. enable_accumulators_for_testing ( ) ;
296+ cfg. set_enable_accumulators_for_testing ( true ) ;
297297 cfg
298298 } ) ;
299299
@@ -347,7 +347,7 @@ async fn test_deposits() {
347347#[ sim_test]
348348async fn test_multiple_settlement_txns ( ) {
349349 let _guard = ProtocolConfig :: apply_overrides_for_testing ( |_, mut cfg| {
350- cfg. enable_accumulators_for_testing ( ) ;
350+ cfg. set_enable_accumulators_for_testing ( true ) ;
351351 cfg. set_max_updates_per_settlement_txn_for_testing ( 3 ) ;
352352 cfg
353353 } ) ;
@@ -463,7 +463,7 @@ fn verify_accumulator_exists(
463463async fn test_deposit_and_withdraw ( ) {
464464 let _guard = ProtocolConfig :: apply_overrides_for_testing ( |_, mut cfg| {
465465 cfg. create_root_accumulator_object_for_testing ( ) ;
466- cfg. enable_accumulators_for_testing ( ) ;
466+ cfg. set_enable_accumulators_for_testing ( true ) ;
467467 cfg
468468 } ) ;
469469
@@ -510,7 +510,7 @@ async fn test_deposit_and_withdraw() {
510510async fn test_deposit_and_withdraw_with_larger_reservation ( ) {
511511 let _guard = ProtocolConfig :: apply_overrides_for_testing ( |_, mut cfg| {
512512 cfg. create_root_accumulator_object_for_testing ( ) ;
513- cfg. enable_accumulators_for_testing ( ) ;
513+ cfg. set_enable_accumulators_for_testing ( true ) ;
514514 cfg
515515 } ) ;
516516
@@ -543,7 +543,7 @@ async fn test_deposit_and_withdraw_with_larger_reservation() {
543543async fn test_withdraw_non_existent_balance ( ) {
544544 let _guard = ProtocolConfig :: apply_overrides_for_testing ( |_, mut cfg| {
545545 cfg. create_root_accumulator_object_for_testing ( ) ;
546- cfg. enable_accumulators_for_testing ( ) ;
546+ cfg. set_enable_accumulators_for_testing ( true ) ;
547547 cfg
548548 } ) ;
549549
@@ -572,7 +572,7 @@ async fn test_withdraw_non_existent_balance() {
572572async fn test_withdraw_insufficient_balance ( ) {
573573 let _guard = ProtocolConfig :: apply_overrides_for_testing ( |_, mut cfg| {
574574 cfg. create_root_accumulator_object_for_testing ( ) ;
575- cfg. enable_accumulators_for_testing ( ) ;
575+ cfg. set_enable_accumulators_for_testing ( true ) ;
576576 cfg
577577 } ) ;
578578
0 commit comments