updated for bitcoin