Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Debug assert that target != zero in difficulty calc
The `difficulty` calculation requires dividing a target value by `self`. Add an assertion that `self` is not zero to help devs debug this. Note that this should never really be hit, but its possible there is a bug somewhere causing the target to be set to zero - so this may help debugging. Also, add panics section to rustdocs.
- Loading branch information