rough refactor to add pool to mining_history