Hierarchical storage method and device based on block chain and electronic equipment
The invention discloses a hierarchical storage method based on a block chain. The hierarchical storage method is characterized in that: account state data of the block chain is organized into a Merkle state tree to be stored in a database; and the database comprises multi-level data storage. The hie...
Gespeichert in:
Hauptverfasser: | , , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention discloses a hierarchical storage method based on a block chain. The hierarchical storage method is characterized in that: account state data of the block chain is organized into a Merkle state tree to be stored in a database; and the database comprises multi-level data storage. The hierarchical storage method comprises the following steps: when any level of target data storage in the database meets a data migration condition, creating an empty data table corresponding to a working data table for the target data storage; storing the Merkle state tree of the newly added block written into the target data storage into a null data table, and migrating the Merkle state tree of the block corresponding to the target block number stored in the working data table into the null data table, wherein the target block number is the maximum block number in block numbers corresponding to a plurality of Merkle state trees stored in target data storage; and after migrating the Merkle state tree of the block corre |
---|