Trade-offs in large blockchain-based IoT system design