fix calculating block diff

now its unpacks bits to target and then calculates difficulty