BLOCKCHAIN DATA STORAGE METHOD, SYSTEM, DEVICE, AND READABLE STORAGE MEDIUM
Provided are a blockchain data storage method, a system, a device, and a readable storage medium. The method includes: obtaining, by a block file system, a target block serial number and target block contents of a target block, the block file system including a directory region and a data region, a...
Saved in:
Main Authors | , , |
---|---|
Format | Patent |
Language | English |
Published |
08.02.2024
|
Subjects | |
Online Access | Get full text |
Cover
Loading…
Summary: | Provided are a blockchain data storage method, a system, a device, and a readable storage medium. The method includes: obtaining, by a block file system, a target block serial number and target block contents of a target block, the block file system including a directory region and a data region, a size of each cluster in the data region being the same as a block size of blockchain, the directory region storing mapping relationships between block serial numbers and cluster addresses; sequentially allocating a target cluster address to the target block, and recording, in the directory region, a target mapping relationship between the target block serial number and the target cluster address; and sequentially writing the target block contents into the data region according to the target cluster address. According to the method, during block storage, the block file system can directly sequentially write the target block contents into the data region after determining the target cluster address, and directory and data write can adopt sequential write, such that the search time and data write time can be greatly saved, and the data write speed in blockchain can be increased. |
---|---|
Bibliography: | Application Number: US202118246659 |