@@ -2156,7 +2156,7 @@ pub struct MinerConfig {
2156
2156
/// Duration to wait before attempting to issue a tenure extend
2157
2157
pub tenure_timeout : Duration ,
2158
2158
/// Define the timeout to apply while waiting for signers responses, based on the amount of rejections
2159
- pub block_rejection_timeout_steps : HashMap < u64 , Duration > ,
2159
+ pub block_rejection_timeout_steps : HashMap < u32 , Duration > ,
2160
2160
}
2161
2161
2162
2162
impl Default for MinerConfig {
@@ -2196,7 +2196,7 @@ impl Default for MinerConfig {
2196
2196
tenure_extend_poll_secs : Duration :: from_secs ( DEFAULT_TENURE_EXTEND_POLL_SECS ) ,
2197
2197
tenure_timeout : Duration :: from_secs ( DEFAULT_TENURE_TIMEOUT_SECS ) ,
2198
2198
block_rejection_timeout_steps : {
2199
- let mut rejections_timeouts_default_map = HashMap :: < u64 , Duration > :: new ( ) ;
2199
+ let mut rejections_timeouts_default_map = HashMap :: < u32 , Duration > :: new ( ) ;
2200
2200
rejections_timeouts_default_map. insert ( 0 , Duration :: from_secs ( 600 ) ) ;
2201
2201
rejections_timeouts_default_map. insert ( 10 , Duration :: from_secs ( 300 ) ) ;
2202
2202
rejections_timeouts_default_map. insert ( 20 , Duration :: from_secs ( 150 ) ) ;
@@ -2744,9 +2744,9 @@ impl MinerConfigFile {
2744
2744
tenure_timeout : self . tenure_timeout_secs . map ( Duration :: from_secs) . unwrap_or ( miner_default_config. tenure_timeout ) ,
2745
2745
block_rejection_timeout_steps : {
2746
2746
if let Some ( block_rejection_timeout_items) = self . block_rejection_timeout_steps {
2747
- let mut rejection_timeout_durations = HashMap :: < u64 , Duration > :: new ( ) ;
2747
+ let mut rejection_timeout_durations = HashMap :: < u32 , Duration > :: new ( ) ;
2748
2748
for ( slice, seconds) in block_rejection_timeout_items. iter ( ) {
2749
- match slice. parse :: < u64 > ( ) {
2749
+ match slice. parse :: < u32 > ( ) {
2750
2750
Ok ( slice_slot) => rejection_timeout_durations. insert ( slice_slot, Duration :: from_secs ( * seconds) ) ,
2751
2751
Err ( e) => panic ! ( "block_rejection_timeout_steps keys must be unsigned integers: {}" , e)
2752
2752
} ;
0 commit comments