The Economic Limits of Permissionless Consensus