IP Library Granted Patent US 10,649,953
Granted Patent B2
US 10,649,953 · App. 16/427,032 · Granted May 12, 2020

Blockchain-based data migration method and apparatus

Inventors: Xinying Yang (Hangzhou, CN); Shifeng Wang (Hangzhou, CN)
Assignee: Alibaba Group Holding Limited
G06F16/119G06F16/1734G06F16/1767G06F16/1844H04L9/0643H04L9/0816H04L2209/38
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 10,649,953
App. No.
16/427,032
Granted
May 12, 2020
Kind
B2
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.

Claims (44)

1. 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.

2. The computer-implemented method of claim 1 , wherein the first storage system is a centralized storage system, and wherein the second storage system is a distributed storage system including a coordinator node and a plurality of storage cluster nodes.

3. The computer-implemented method of claim 2 , further comprising:

successively allocating, by the coordinator node, blockchain data of the blockchain that is migrated to the plurality of storage cluster nodes of the second storage system.

4. The computer-implemented method of claim 3 , wherein successively allocating the blockchain data comprises:

migrating the blockchain data of the blockchain migrated to the second storage system to a first storage cluster node of the second storage system in an ascending order of block heights; and

if a storage capacity of the first storage cluster node exceeds a predetermined capacity threshold, iteratively migrating remaining blockchain data to a next storage cluster node of the second storage system in ascending order of block heights.

5. The computer-implemented method of claim 1 , wherein migrating blockchain data comprises invoking a data migration utility in the blockchain to migrate the blockchain data that is stored in the first storage system and that exists before the migration reference time to the second storage system.

6. The computer-implemented method of claim 1 , wherein migrating blockchain data comprises:

invoking a smart contract that triggers data migration in the blockchain; and

executing data migration logic included in the smart contract to migrate the blockchain data that is stored in the first storage system and that exists before the migration reference time to the second storage system.

7. 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.

8. The non-transitory, computer-readable medium of claim 7 , wherein the first storage system is a centralized storage system, and wherein the second storage system is a distributed storage system including a coordinator node and a plurality of storage cluster nodes.

9. The non-transitory, computer-readable medium of claim 8 , further comprising:

successively allocating, by the coordinator node, blockchain data of the blockchain that is migrated to the plurality of storage cluster nodes of the second storage system.

10. The non-transitory, computer-readable medium of claim 9 , wherein successively allocating the blockchain data comprises:

migrating the blockchain data of the blockchain migrated to the second storage system to a first storage cluster node of the second storage system in an ascending order of block heights; and

if a storage capacity of the first storage cluster node exceeds a predetermined capacity threshold, iteratively migrating remaining blockchain data to a next storage cluster node of the second storage system in ascending order of block heights.

11. The non-transitory, computer-readable medium of claim 7 , wherein migrating blockchain data comprises invoking a data migration utility in the blockchain to migrate the blockchain data that is stored in the first storage system and that exists before the migration reference time to the second storage system.

12. The non-transitory, computer-readable medium of claim 7 , wherein migrating blockchain data comprises:

invoking a smart contract that triggers data migration in the blockchain; and

executing data migration logic included in the smart contract to migrate the blockchain data that is stored in the first storage system and that exists before the migration reference time to the second storage system.

13. 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.

14. The computer-implemented system of claim 13 , wherein the first storage system is a centralized storage system, and wherein the second storage system is a distributed storage system including a coordinator node and a plurality of storage cluster nodes.

15. The computer-implemented system of claim 14 , further comprising:

successively allocating, by the coordinator node, blockchain data of the blockchain that is migrated to the plurality of storage cluster nodes of the second storage system.

16. The computer-implemented system of claim 15 , wherein successively allocating the blockchain data comprises:

migrating the blockchain data of the blockchain migrated to the second storage system to a first storage cluster node of the second storage system in an ascending order of block heights; and

if a storage capacity of the first storage cluster node exceeds a predetermined capacity threshold, iteratively migrating remaining blockchain data to a next storage cluster node of the second storage system in ascending order of block heights.

17. The computer-implemented system of claim 13 , wherein migrating blockchain data comprises invoking a data migration utility in the blockchain to migrate the blockchain data that is stored in the first storage system and that exists before the migration reference time to the second storage system.

Assignments (3)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Sep 10, 2020
From: ADVANTAGEOUS NEW TECHNOLOGIES CO., LTD.
To: ADVANCED NEW TECHNOLOGIES CO., LTD.
Reel/Frame 053754/0625 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Aug 31, 2020
From: ALIBABA GROUP HOLDING LIMITED
To: ADVANTAGEOUS NEW TECHNOLOGIES CO., LTD.
Reel/Frame 053743/0464 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Apr 2, 2020
From: YANG, XINYING; WANG, SHIFENG
To: ALIBABA GROUP HOLDING LIMITED
Reel/Frame 052296/0682 →
Cited By (1)
US 12,443,623