| Rapidly advancing,blockchain technology is now being utilized in a variety of areas,from finance to public services,information security,supply chain,and more.Blockchain applications built on various blockchains are also emerging.However,with the development of blockchain technology and the expansion of application scenarios,various risks are also emerging,such as currency theft,money laundering and various cyber crimes.Blockchain technology is a double-edged sword,so it must be supervised to make the application of blockchain technology develop in a benign direction.The amount of data on the blockchain is very large.If manual supervision is relied on,its cost and efficiency are unacceptable,so automatic supervision is imperative.If you want to supervise blockchain and blockchain applications,you need to identify risks based on the data on the chain.So the first step of supervision is to collect data from different chains and applications for subsequent calculation.In view of the above requirements,this paper designs and implements the data collection subsystem in the blockchain general supervision platform.The paper analyzes the functional requirements of the data acquisition subsystem,divides the system functions into two functions,including the managed application configuration information management and acquisition task management,analyzes the use cases of each function in detail,and puts forward the non-functional requirements of the system.The overall design of the data acquisition subsystem is given.According to the micro-service architecture,the data collection subsystem is divided into five sub-services and packages,and the hierarchical architecture of the system is given based on the above division,and then the relational database and non-relational database are designed.The detailed design of the data collection subsystem is described.According to the five sub-services divided in the overall design,the business process of each sub-service is designed and implemented by using the tools such as sequence diagram,class diagram and flow chart.The paper gives the results of the function test and performance evaluation of the data acquisition subsystem,The system can regularly collect the data of the specified blockchain application according to the configuration requirements and then store the big data,and can use the plug-in mechanism to conduct a small amount of development on the premise of ensuring the availability of the subsystem,so as to access the new heterogeneous blockchain and achieve the purpose of ensuring the availability and scalability of the system. |