Network Security, Game Theory, and the Implications for Blockchain Design