Adaptive consensus optimization in blockchain using reinforcement learning and validation in adversarial environments | Synapse