()
| 985 | |
| 986 | #[test] |
| 987 | fn test_difficulty_adjustments() { |
| 988 | for (start_time, end_time, start_target, end_target) in DIFFICULTY_ADJUSTMENTS { |
| 989 | let new_target_bytes = calculate_new_difficulty(start_time, end_time, start_target); |
| 990 | let bits = target_to_bits(&new_target_bytes); |
| 991 | assert_eq!(bits, end_target); |
| 992 | } |
| 993 | } |
| 994 | |
| 995 | #[test] |
| 996 | fn test_bridge_block_header_from_header() { |
nothing calls this directly
no test coverage detected