updated for bitcoin mining