@@ -1104,7 +1104,13 @@ impl Config {
1104
1104
} ,
1105
1105
miner_status,
1106
1106
confirm_microblocks : false ,
1107
- max_execution_time : miner_config. max_execution_time ,
1107
+ max_execution_time : if let Some ( max_execution_time_secs) =
1108
+ miner_config. max_execution_time
1109
+ {
1110
+ Some ( Duration :: from_secs ( max_execution_time_secs) )
1111
+ } else {
1112
+ None
1113
+ } ,
1108
1114
}
1109
1115
}
1110
1116
@@ -1147,7 +1153,13 @@ impl Config {
1147
1153
} ,
1148
1154
miner_status,
1149
1155
confirm_microblocks : true ,
1150
- max_execution_time : miner_config. max_execution_time ,
1156
+ max_execution_time : if let Some ( max_execution_time_secs) =
1157
+ miner_config. max_execution_time
1158
+ {
1159
+ Some ( Duration :: from_secs ( max_execution_time_secs) )
1160
+ } else {
1161
+ None
1162
+ } ,
1151
1163
}
1152
1164
}
1153
1165
@@ -2179,8 +2191,8 @@ pub struct MinerConfig {
2179
2191
pub tenure_extend_cost_threshold : u64 ,
2180
2192
/// Define the timeout to apply while waiting for signers responses, based on the amount of rejections
2181
2193
pub block_rejection_timeout_steps : HashMap < u32 , Duration > ,
2182
-
2183
- pub max_execution_time : Option < Duration > ,
2194
+ /// Define max execution for contract calls
2195
+ pub max_execution_time : Option < u64 > ,
2184
2196
}
2185
2197
2186
2198
impl Default for MinerConfig {
@@ -2630,7 +2642,7 @@ pub struct MinerConfigFile {
2630
2642
pub tenure_timeout_secs : Option < u64 > ,
2631
2643
pub tenure_extend_cost_threshold : Option < u64 > ,
2632
2644
pub block_rejection_timeout_steps : Option < HashMap < String , u64 > > ,
2633
- pub max_execution_time : Option < Duration > ,
2645
+ pub max_execution_time : Option < u64 > ,
2634
2646
}
2635
2647
2636
2648
impl MinerConfigFile {
0 commit comments