In cognitive wireless networks, multi-node cooperative spectrum sensing can effectively improve the accuracy of spectrum sensing, but there is a non-linear relationship between the number of nodes and sensing accuracy. Nodes with low reliability participate in cooperative sensing, which is not conducive to the improvement of sensing accuracy, and reduces the energy efficiency of spectrum sensing, which poses challenges to the normal operation of cognitive wireless networks. In order to improve energy efficiency and sensing performance, this paper proposes the node evaluation and scheduling (NES) algorithm and the Secure Spectrum Sensing based on Blockchain (SSSB) algorithm, which can evaluate the reliability of sensing nodes in real time, and obtain the trust value of the node. The nodes information is stored in the management center of blockchain. Blockchain encrypts nodes information to ensure that a node corresponds to its own trust value without confusion. Fusion Center of cognitive wireless networks select good performance nodes to participate in cooperative spectrum sensing. Which can reduce energy consumption while improving the sensing performance. The simulation experiment results show that the new algorithm in this paper is far superior to the traditional algorithm. Under the same other conditions, the detection probability is increased by 5%, and the energy consumption is reduced by 10%, and the safety index has also been greatly improved.INDEX TERMS Cognitive wireless networks, blockchain, energy efficiency, sensing accuracy.