Font Size: a A A

Research And Application Of Ledger Storage Optimization Based On Alliance Chain

Posted on:2021-01-06Degree:MasterType:Thesis
Country:ChinaCandidate:K JiFull Text:PDF
GTID:2428330605451259Subject:Electronics and Communications Engineering
Abstract/Summary:PDF Full Text Request
With the continuous development of the Internet industry,data security and historical traceability have become increasingly important.As an underlying transaction network integrating decentralization,smart contracts,immutable transaction records and consensus algorithm mechanisms,the alliance chain can effectively solve problems such as on-chain data security and historical data traceability.Due to its distributed ledger storage technology,each node on the chain will store a complete ledger,resulting in excessive node storage pressure.In this paper,the storage optimization of the alliance chain ledger is studied: the ledger storage space is released and the storage pressure on the nodes is reduced by choosing a periodic deletion method.Combined with the technical characteristics of alliance chain,it is applied to the Internet software platform,utilizing its distributed ledger storage technology,data with strong traceability and high security is stored in the blockchain ledger,and the interaction between the application platform and the bottom of the alliance chain is completed through the Java-SDK.With the help of system-level application platform,this paper implements the optimization of ledger storage into application practices and mainly does the following work:(1)Select the super ledger fabric1.4 as the alliance blockchain development platform,change the source code of the underlying block storage mode,optimize the gossip protocol distribution interface,add transaction interface deletion method,recompile the source code with the make instruction and regenerate the docker container image.(2)Design smart contracts that meet periodic deletion,add block deletion methods,optimize query and accounting methods,add life cycle parameters in each block on the chain,and record the block life cycle.(3)Aiming at the account book storage optimization of the alliance blockchain,a smart agricultural system platform for pig herders is designed.The alliance blockchain network is used as the bottom storage and it is connected with the upper system platform through Java SDK,so as to realize the real-time access of platform transaction data,select and delete historical data,and reduce the bottom storage pressure of the platform.The actual test shows that the storage optimization of alliance chain can not only release the memory storage space,but also further improve the efficiency of historical block query,making the application of blockchain technology more mature.
Keywords/Search Tags:Blockchain, Ledger storage, Life cycle, Smart contract
PDF Full Text Request
Related items