Game-Theoretic Approach to Blockchain Economics