A blockchain consensus mechanism for real-time regulation of renewable energy power systems | Synapse