| With the rapid development of urbanization in China,people’s demand for house purchase is increasing in recent years.However,with the gradual expansion of the city scale,new buildings are often located far away from the city center,which results in inconvenient transportation and incomplete surrounding facilities.Additionally,the prices of new buildings are expensive compared to second-hand housing.On the other hand,second-hand housing offers a unique location,complete surrounding facilities,and a shorter delivery period.Consequently,second-hand housing has gradually gained favor.However,in the realm of second-hand housing transactions,challenges arise from excessive reliance on intermediaries,the proliferation of false housing listings,and the lack of mutual trust between buyers and sellers due to opaque information.Blockchain technology,with its decentralized,traceable,and transparent nature,presents a viable solution to these problems.Nevertheless,practical implementations of blockchain systems often encounter obstacles such as prolonged processing delays,high communication overhead,and low throughput,which result in diminished system performance and user inconvenience.In response,this thesis proposes the design and implementation of a second-hand housing transaction supervision service system that leverages blockchain technology to address these challenges.To address issues such as information opacity and the difficulty of verifying housing authenticity between buyers and sellers,this thesis has constructed a consortium blockchain system to achieve transparent and authentic sharing of housing information.Furthermore,an improved Practical Byzantine Fault Tolerance(PBFT)consensus protocol is proposed in this thesis.The protocol assesses the performance of system nodes based on both node reputation scores and the number of node connections.By combining the weights assigned to these two indicators,the total score of each node is calculated.The node with the highest score is then selected as the primary node through a ranking process based on the scores.Subsequently,data consensus is achieved using this improved protocol.The enhanced protocol optimizes the primary node election process of the original protocol,thereby avoiding the significant system communication overhead caused by frequent view switching.This optimization results in shortened request latency,enhanced trust among system nodes,and improved system performance.Through experimental comparisons,the improved protocol proposed in this thesis demonstrates better performance in reducing request latency and minimizing communication overhead.The second-hand housing transaction supervision service system based on blockchain technology is developed using a B/S architecture and MVC pattern.The system is primarily implemented in Java language.The system includes various functionalities such as user management,housing information publishing,housing search,on-chain sharing of housing information,housing transaction management,audit management,comment management,and real estate blockchain management.Subsequently,functional testing and non-functional testing are conducted on the system to validate the applicability of the research findings presented in this thesis. |