Blockchain-based data migration method and apparatus
AssigneeAlibaba Group Holding Limited
InventorsXinying Yang, Shifeng Wang
Life of this patent
Estimating the term…
Abstract
A latest block associated with a blockchain is received at a blockchain node device, where the blockchain node device includes a first storage system and a second storage system, and where the second storage system is interconnected with the first storage system. The latest block is stored at the blockchain node device and in the first storage system. Whether a migration trigger event for block data stored in the first storage system is detected determining by the blockchain node device. The block data stored in the first storage system and exists prior to a migration reference time is migrated to the second storage system.
Claims17
A computer-implemented method, comprising:
- receiving, at a blockchain node device, a latest block associated with a blockchain, wherein the blockchain node device includes a first storage system and a second storage system, and wherein the second storage system is interconnected with the first storage system;
- storing, at the blockchain node device and in the first storage system, the latest block;
- determining, by the blockchain node device, whether a migration trigger event for blockchain data stored in the first storage system is detected, including determining whether the blockchain data stored in the first storage system satisfies a predetermined data migration rule, wherein the blockchain data includes at least one of total blockchain block data, transaction digest value data in each block, block digest value data in each block, or historical status data in a block that includes a historical value of transaction status on the blockchain, and wherein the predetermined data migration rule specifies a predetermined data capacity of the blockchain data stored in the first storage system or specifies a predetermined capacity ratio of the data capacity of the blockchain data stored in the first storage system relative to a total data capacity of the first storage system exceeds a predetermined threshold;
- and
- in response to a determination that the migration trigger event is detected, migrating, to the second storage system in an ascending order of block heights, the blockchain data stored in the first storage system and exists prior to a migration reference time.
A non-transitory, computer-readable medium storing one or more instructions executable by a computer system to perform operations comprising:
- receiving, at a blockchain node device, a latest block associated with a blockchain, wherein the blockchain node device includes a first storage system and a second storage system, and wherein the second storage system is interconnected with the first storage system;
- storing, at the blockchain node device and in the first storage system, the latest block;
- determining, by the blockchain node device, whether a migration trigger event for blockchain data stored in the first storage system is detected, including determining whether blockchain data stored in the first storage system satisfies a predetermined data migration rule, wherein the blockchain data includes at least one of total blockchain block data, transaction digest value data in each block, block digest value data in each block, or historical status data in a block that includes a historical value of transaction status on the blockchain, and wherein the predetermined data migration rule specifies a predetermined data capacity of the blockchain data stored in the first storage system or specifies a predetermined capacity ratio of the data capacity of the blockchain data stored in the first storage system relative to a total data capacity of the first storage system exceeds a predetermined threshold;
- and
- in response to a determination that the migration trigger event is detected, migrating, to the second storage system in an ascending order of block heights, the blockchain data stored in the first storage system and exists prior to a migration reference time.
A computer-implemented system, comprising:
- one or more computers;
- and
- one or more computer memory devices interoperably coupled with the one or more computers and having tangible, non-transitory, machine-readable media storing one or more instructions that, when executed by the one or more computers, perform one or more operations comprising:
- receiving, at a blockchain node device, a latest block associated with a blockchain, wherein the blockchain node device includes a first storage system and a second storage system, and wherein the second storage system is interconnected with the first storage system;
- storing, at the blockchain node device and in the first storage system, the latest block;
- determining, by the blockchain node device, whether a migration trigger event for data stored in the first storage system is detected, including determining whether blockchain data stored in the first storage system satisfies a predetermined data migration rule, wherein the blockchain data includes at least one of total blockchain block data, transaction digest value data in each block, block digest value data in each block, or historical status data in a block that includes a historical value of transaction status on the blockchain, and wherein the predetermined data migration rule specifies a predetermined data capacity of the blockchain data stored in the first storage system or specifies a predetermined capacity ratio of the data capacity of the blockchain data stored in the first storage system relative to a total data capacity of the first storage system exceeds a predetermined threshold;
- and
- in response to a determination that the migration trigger event is detected, migrating, to the second storage system in an ascending order of block heights, the blockchain data stored in the first storage system and exists prior to a migration reference time.
Dependencies are inferred from the claim text.