SMARTPOOL: Practical Decentralized Pooled Mining