Behind Blockchain: Byzantine Generals Problem