The invention is applicable to the field of Internet technology improvement, and provides a blockchain consensus method based on a trust relationship. The method comprises: S1, quantifying the trust relationship between nodes according to transaction and block data; S2, according to trust relationship between the nodes, constructing a trust relationship diagram and generating a trust matrix; S3, iteratively calculating the trust value of each node by using the trust relationship of the nodes of the whole network; and S4, randomly selecting a representative node as the master node with the billing right each round of consensus, and selecting, by the master node, several transaction creation blocks from the transaction poo. The representative mechanism is adopted to professionalize the accounting nodes, which reduces the consensus cost, saves energy, and improves the efficiency of the node consensus and the expansion capability of the algorithm. The representative node is selected basedon the trust relationship, and does not depend on the token of the blockchain, so that the billing right is concentrated on a few 'rich people'.