A safe and reliable terminal environment is crucial to ensure the security of the electricity trading system. The existing terminal security system based on identity authentication and access control has internal threats that are difficult to solve. For example, multiple internal malicious nodes cause broadcast message tampering attacks and malicious packet loss, resulting in message dissemination failure. Existing blockchain-based trust management systems are good for addressing insider threats, but suffer from low efficiency. In order to solve the internal threat problem of the electric electricity trading system, from the perspective of trust evaluation and trust management of the terminal environment, an efficient and reliable blockchain-based electric trading terminal (ERBTM) trust management model is proposed. First of all, we collect a variety of trust factors to evaluate the credibility of the terminal, which solves the problem of accuracy in the process of trust assessment; secondly, we improve the speed of storing trust values on the chain and ensure the robustness of the system by improving the consensus algorithm; Finally, we designed the structure of the block that stores the trust value to ensure that the trust value is not tampered with. The experimental results show that, compared with similar methods, the ERBTM model can effectively deal with the endogenous security threats of terminals in the electricity trading environment, and has significant advantages in terms of efficiency and reliability.