Optimized byzantine fault tolerant algorithm for improving performance and security with trust values | Synapse