Blockchain technology has become a research hotspot in recent years.In the financial,logistics and other indus-tries,there have been landing cases of alliance blockchain.As the core technology of blockchain,consensus algorithm will have a direct impact on the overall performance of blockchain.The PBFT(practical byzantine fault tolerance)algorithm used in alliance chain still has the problems of long transaction confirmation time and low throughput.For alliance chain application scenario,based on PBFT algorithm,non-Byzantine fault-tolerant protocol is introduced.Combined with the election mechanism based on node be-havior,a three-level consensus mechanism PBFT,GBFT,is proposed.Finally,GBFT is compared with PBFT algorithm in terms of throughput,transaction confirmation delay and fault tolerance.The experimental results show that GBFT maintains 1/3 of the fault tolerance of PBFT,improves throughput and reduces transaction confirmation delay.