An Improved Retrieval Method for Multi-Transaction Mode Consortium Blockchain

Tu, Zhang, Chen, Weise, Zou
2020 Electronics  
The traditional method of blockchain retrieval is to search the "Block File" in sequence from the "tail" to the "head" of the blockchain, which always takes a lot of time. How to reduce the retrieval time has been a hot issue in blockchain research. This paper proposes a fast retrieval method for the Multi-Transaction Mode Consortium Blockchain (MTMCB). Firstly, we create a "User Set" and "Block Name Set" cached in Redis. Then, according to the transaction participants and "Block Name Set", we
more » ... an get the relevant "Block Name List", and quickly obtain the corresponding block files. On this basis, in order to meet the needs of rapid retrieval in large-scale systems, an improved retrieval algorithm based on a B+-tree data structure is proposed. Firstly, the block file information is put into different ordered sets according to the transaction participants, and the B+-tree index is established to quickly get the information of relevant block files by participants. Experimental results show that the improved method of Redis cache retrieval in this paper can greatly increase the efficiency of blockchain retrieval, and can settle some crucial problem in the blockchain application and popularization.
doi:10.3390/electronics9020296 fatcat:sujqjsa6undflazqbsen5ajrn4