blockchain consensus algorithms and artificial intelligence