@@ -171,10 +171,8 @@ mod tests {
171171 /// The executor already has these parameters, and this field allows us
172172 /// to override the existing value.
173173 pub consensus_parameters : ConsensusParameters ,
174- /// Print execution backtraces if transaction execution reverts.
175- pub backtrace : bool ,
176- /// Default mode for utxo_validation
177- pub utxo_validation_default : bool ,
174+ /// Default mode for `forbid_fake_coins` in the executor.
175+ pub forbid_fake_coins_default : bool ,
178176 }
179177
180178 #[ derive( Clone , Debug ) ]
@@ -216,8 +214,7 @@ mod tests {
216214 config : Config ,
217215 ) -> Executor < Database , DisabledRelayer > {
218216 let executor_config = fuel_core_upgradable_executor:: config:: Config {
219- backtrace : config. backtrace ,
220- utxo_validation_default : config. utxo_validation_default ,
217+ forbid_fake_coins_default : config. forbid_fake_coins_default ,
221218 native_executor_version : None ,
222219 allow_historical_execution : true ,
223220 } ;
@@ -825,7 +822,7 @@ mod tests {
825822 let mut validator = create_executor (
826823 Default :: default ( ) ,
827824 Config {
828- utxo_validation_default : false ,
825+ forbid_fake_coins_default : false ,
829826 ..Default :: default ( )
830827 } ,
831828 ) ;
@@ -1158,7 +1155,7 @@ mod tests {
11581155
11591156 // setup executors with utxo-validation enabled
11601157 let config = Config {
1161- utxo_validation_default : true ,
1158+ forbid_fake_coins_default : true ,
11621159 ..Default :: default ( )
11631160 } ;
11641161 let producer = create_executor ( Database :: default ( ) , config. clone ( ) ) ;
@@ -1286,7 +1283,7 @@ mod tests {
12861283 let mut executor = create_executor (
12871284 Database :: default ( ) ,
12881285 Config {
1289- utxo_validation_default : true ,
1286+ forbid_fake_coins_default : true ,
12901287 ..Default :: default ( )
12911288 } ,
12921289 ) ;
@@ -1354,7 +1351,7 @@ mod tests {
13541351 let mut executor = create_executor (
13551352 db. clone ( ) ,
13561353 Config {
1357- utxo_validation_default : true ,
1354+ forbid_fake_coins_default : true ,
13581355 ..Default :: default ( )
13591356 } ,
13601357 ) ;
@@ -1423,7 +1420,7 @@ mod tests {
14231420 let mut executor = create_executor (
14241421 db. clone ( ) ,
14251422 Config {
1426- utxo_validation_default : true ,
1423+ forbid_fake_coins_default : true ,
14271424 ..Default :: default ( )
14281425 } ,
14291426 ) ;
@@ -1472,7 +1469,7 @@ mod tests {
14721469 let mut executor = create_executor (
14731470 db. clone ( ) ,
14741471 Config {
1475- utxo_validation_default : true ,
1472+ forbid_fake_coins_default : true ,
14761473 ..Default :: default ( )
14771474 } ,
14781475 ) ;
@@ -1667,7 +1664,7 @@ mod tests {
16671664 let mut executor = create_executor (
16681665 db. clone ( ) ,
16691666 Config {
1670- utxo_validation_default : false ,
1667+ forbid_fake_coins_default : false ,
16711668 ..Default :: default ( )
16721669 } ,
16731670 ) ;
@@ -1722,7 +1719,7 @@ mod tests {
17221719 let mut executor = create_executor (
17231720 db. clone ( ) ,
17241721 Config {
1725- utxo_validation_default : false ,
1722+ forbid_fake_coins_default : false ,
17261723 ..Default :: default ( )
17271724 } ,
17281725 ) ;
@@ -1824,7 +1821,7 @@ mod tests {
18241821 let mut executor = create_executor (
18251822 db. clone ( ) ,
18261823 Config {
1827- utxo_validation_default : false ,
1824+ forbid_fake_coins_default : false ,
18281825 ..Default :: default ( )
18291826 } ,
18301827 ) ;
@@ -1930,9 +1927,8 @@ mod tests {
19301927 let mut executor = create_executor (
19311928 db. clone ( ) ,
19321929 Config {
1933- utxo_validation_default : false ,
1930+ forbid_fake_coins_default : false ,
19341931 consensus_parameters : consensus_parameters. clone ( ) ,
1935- ..Default :: default ( )
19361932 } ,
19371933 ) ;
19381934
@@ -2091,7 +2087,7 @@ mod tests {
20912087 let mut executor = create_executor (
20922088 db. clone ( ) ,
20932089 Config {
2094- utxo_validation_default : true ,
2090+ forbid_fake_coins_default : true ,
20952091 ..Default :: default ( )
20962092 } ,
20972093 ) ;
@@ -2380,7 +2376,7 @@ mod tests {
23802376 create_executor (
23812377 database,
23822378 Config {
2383- utxo_validation_default : true ,
2379+ forbid_fake_coins_default : true ,
23842380 ..Default :: default ( )
23852381 } ,
23862382 )
@@ -2807,7 +2803,7 @@ mod tests {
28072803 let mut executor = create_executor (
28082804 database. clone ( ) ,
28092805 Config {
2810- utxo_validation_default : true ,
2806+ forbid_fake_coins_default : true ,
28112807 ..Default :: default ( )
28122808 } ,
28132809 ) ;
@@ -2871,7 +2867,7 @@ mod tests {
28712867 let mut executor = create_executor (
28722868 database. clone ( ) ,
28732869 Config {
2874- utxo_validation_default : true ,
2870+ forbid_fake_coins_default : true ,
28752871 ..Default :: default ( )
28762872 } ,
28772873 ) ;
@@ -2893,9 +2889,8 @@ mod tests {
28932889
28942890 let consensus_parameters = ConsensusParameters :: default ( ) ;
28952891 let config = Config {
2896- utxo_validation_default : true ,
2892+ forbid_fake_coins_default : true ,
28972893 consensus_parameters : consensus_parameters. clone ( ) ,
2898- ..Default :: default ( )
28992894 } ;
29002895
29012896 let mut tx = TransactionBuilder :: script (
@@ -3088,7 +3083,7 @@ mod tests {
30883083 . finalize ( ) ;
30893084
30903085 let config = Config {
3091- utxo_validation_default : false ,
3086+ forbid_fake_coins_default : false ,
30923087 ..Default :: default ( )
30933088 } ;
30943089 let ( sender, mut receiver) = tokio:: sync:: mpsc:: channel ( 2 ) ;
@@ -3152,7 +3147,7 @@ mod tests {
31523147 . finalize ( ) ;
31533148
31543149 let config = Config {
3155- utxo_validation_default : false ,
3150+ forbid_fake_coins_default : false ,
31563151 ..Default :: default ( )
31573152 } ;
31583153 let ( sender, mut receiver) = tokio:: sync:: mpsc:: channel ( 2 ) ;
0 commit comments