Fixed bitcoin integration bugs