This PR fixes the issue with difficulty target precision reduction (related to the MSB).
Also we no longer need target_to_bits helper, for header bits validation it makes more sense to use bits_to_target because it is actually untrusted input while target is provided already validated.
This PR fixes the issue with difficulty target precision reduction (related to the MSB).
Also we no longer need
target_to_bits
helper, for header bits validation it makes more sense to usebits_to_target
because it is actually untrusted input while target is provided already validated.