CPC G06F 16/113 (2019.01) [G06F 16/137 (2019.01); G06F 16/162 (2019.01)] | 20 Claims |
1. A data archiving method, applied to a computer device and comprising:
finding, in local space when an archiving task for a target block header exists, current state trees of block headers, the current state trees comprising a current state tree that the target block header points to and a current state tree that a first block header before the target block header points to;
reconstructing new state trees, comprising:
reconstructing, according to the found current state trees and node reuse information between the current state trees, a new state tree that the target block header points to; the new state tree that the target block header points to independently storing state data corresponding to the target block header; and
reconstructing, according to the new state tree that the target block header points to and target state data corresponding to a second block header after the target block header, a new state tree that the second block header points to,
wherein node reuse occurs between one of the new state trees corresponding to a block header and a new state tree that a block header next to the corresponding block header points to; and
archiving the current state trees stored in the local space to a target archiving server, and deleting the current state trees in the local space after successful archiving.
|