Joint optimization of energy consumption and network latency in blockchain-enabled fog computing networks | Synapse