How does Mining Work and its Issues