File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -2749,9 +2749,12 @@ impl MinerConfigFile {
2749
2749
for ( slice, seconds) in block_rejection_timeout_items. iter ( ) {
2750
2750
match slice. parse :: < u64 > ( ) {
2751
2751
Ok ( slice_slot) => rejection_timeout_durations. insert ( slice_slot, Duration :: from_secs ( * seconds) ) ,
2752
- Err ( e) => panic ! ( "block_rejection_timeout_items keys must be unsigned integers: {}" , e)
2752
+ Err ( e) => panic ! ( "block_rejection_timeout_steps keys must be unsigned integers: {}" , e)
2753
2753
} ;
2754
2754
}
2755
+ if !rejection_timeout_durations. contains_key ( & 0 ) {
2756
+ panic ! ( "block_rejection_timeout_steps requires a definition for the '0' key/step" ) ;
2757
+ }
2755
2758
rejection_timeout_durations
2756
2759
} else {
2757
2760
miner_default_config. block_rejection_timeout_steps
You can’t perform that action at this time.
0 commit comments