IP Library › Granted Patent US 11,494,270
Granted Patent B2
US 11,494,270 · App. 17/065,883 · Granted Nov 8, 2022

Data backup method, storage medium, and computing device

Inventors: Rui Guo (Shenzhen, CN); Mao Cai Li (Shenzhen, CN); Zong You Wang (Shenzhen, CN); Hai Tao Tu (Shenzhen, CN); Li Kong (Shenzhen, CN); Kai Ban Zhou (Shenzhen, CN); Chang Qing Yang (Shenzhen, CN); Nan Wang (Shenzhen, CN); Yong Ding (Shenzhen, CN); Yi Fang Shi (Shenzhen, CN)
Assignee: TENCENT TECHNOLOGY (SHENZHEN) COMPANY LTD
G06F11/1451G06F16/2455
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 11,494,270
App. No.
17/065,883
Granted
Nov 8, 2022
Kind
B2
Abstract

A data backup method includes querying a first block of a first blockchain for unused transaction output information based on a first condition being met, the first block including each block of all blocks included in the first blockchain; generating transaction information according to the unused transaction output information obtained based on the querying, the transaction information indicating a transaction operation based on an account address to which the unused transaction output information belongs; recording the transaction information in a second block and releasing the second block, and recording the second block on which a consensus is reached on a second blockchain; and backing up the first blockchain into a storage system, and deleting the first blockchain. Counterpart apparatus, terminal, server, and/or non-transitory computer-readable medium are also contemplated.

Claims (39)

1. A data backup method, performed by a terminal, the method comprising:

querying a first block of a first blockchain for unused transaction output information based on a first condition being met, the first block comprising each block of all blocks included in the first blockchain;

generating transaction information according to the unused transaction output information obtained based on the querying, the transaction information indicating a transaction operation based on an account address to which the unused transaction output information belongs;

recording the transaction information in a second block and releasing the second block, and recording the second block on which a consensus is reached on a second blockchain; and

backing up the first blockchain into a storage system, and deleting the first blockchain.

2. The method according to claim 1 , wherein the first condition comprises a condition that a block height of the first blockchain reaches a preset value.

3. The method according to claim 1 , wherein the first condition comprises at least one of a condition that a remaining storage space is lower than a first threshold, a condition that a set time interval is reached, or a condition that a set operation instruction is received.

4. The method according to claim 1 , wherein a block height of the second block corresponds to a block height of a last block in the first blockchain.

5. The method according to claim 1 , wherein a block header eigenvalue of a parent block included in the second block is a block header eigenvalue of a last block in the first blockchain.

6. The method according to claim 1 , wherein the backing up comprises:

recording, in a data backup table, identification information of each block in the first blockchain and a storage address of each block in the storage system.

7. The method according to claim 6 , further comprising, after the first blockchain is deleted:

querying the data backup table for a storage address corresponding to identification information of a block included in the first blockchain, and accessing the block in the storage system according to the storage address.

8. A non-transitory computer-readable storage medium storing instructions, the instructions, when executed by one or more processors, causing at least one of the one or more processors to perform:

querying a first block of a first blockchain for unused transaction output information based on a first condition being met, the first block comprising each block of all blocks included in the first blockchain;

generating transaction information according to the unused transaction output information obtained based on the querying, the transaction information indicating a transaction operation based on an account address to which the unused transaction output information belongs;

recording the transaction information in a second block and releasing the second block, and recording the second block on which a consensus is reached on a second blockchain; and

backing up the first blockchain into a storage system, and deleting the first blockchain.

9. The storage medium according to claim 8 , wherein the first condition comprises at least one of a condition that a block height of the first blockchain reaches a preset value; a condition that a remaining storage space is lower than a first threshold; a condition that a set time interval is reached; or a condition that a set operation instruction is received.

10. The storage medium according to claim 8 , wherein a block height of the second block corresponds to a block height of a last block in the first blockchain.

11. The storage medium according to claim 8 , wherein a block header eigenvalue of a parent block included in the second block is a block header eigenvalue of a last block in the first blockchain.

12. The storage medium according to claim 8 , wherein the instructions are configured to cause at least one of the one or more processors to perform the backing up by recording, in a data backup table, identification information of each block in the first blockchain and a storage address of each block in the storage system.

13. The storage medium according to claim 12 , wherein the instructions are further configured to cause at least one of the one or more processors to perform:

after the first blockchain is deleted, querying the data backup table for a storage address corresponding to identification information of a block included in the first blockchain, and accessing the block in the storage system according to the storage address.

14. A computing device comprising:

at least one memory configured to store program code; and

at least one processor configured to read the program code and operate as instructed by the program code, the program code comprising:

first querying code configured to cause at least one of the at least one processor to query a first block of a first blockchain for unused transaction output information based on a first condition being met, the first block comprising each block of all blocks included in the first blockchain;

generating code configured to cause at least one of the at least one processor to generate transaction information according to the unused transaction output information obtained based on querying of the first querying code, the transaction information indicating a transaction operation based on an account address to which the unused transaction output information belongs;

first recording code configured to cause at least one of the at least one processor to record the transaction information in a second block and releasing the second block, and recording the second block on which a consensus is reached on a second blockchain; and

backup code configured to cause at least one of the at least one processor to back up the first blockchain into a storage system, and deleting the first blockchain.

15. The computing device according to claim 14 , wherein the first condition comprises a condition that a block height of the first blockchain reaches a preset value.

16. The computing device according to claim 14 , wherein the first condition comprises at least one of a condition that remaining storage space is lower than a first threshold; a condition that a set time interval is reached; or a condition that a set operation instruction is received.

17. The computing device according to claim 14 , wherein a block height of the second block corresponds to a block height of a last block in the first blockchain.

18. The computing device according to claim 14 , wherein a block header eigenvalue of a parent block included in the second block is a block header eigenvalue of a last block in the first blockchain.

19. The computing device according to claim 14 , wherein the program code further comprises:

second recording code configured to cause at least one of the at least one processor to record, in a data backup table, identification information of each block in the first blockchain and a storage address of each block in the storage system.

20. The computing device according to claim 19 , wherein the program code further comprises:

second querying code configured to cause at least one of the at least one processor to, after the first blockchain is deleted, query the data backup table for a storage address corresponding to identification information of a block included in the first blockchain, and access the block in the storage system according to the storage address.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Oct 8, 2020
From: GUO, RUI; LI, MAO CAI; WANG, ZONG YOU; TU, HAI TAO; KONG, LI; ZHOU, KAI BAN; YANG, CHANG QING; WANG, NAN; DING, YONG; SHI, YI FANG
To: TENCENT TECHNOLOGY (SHENZHEN) COMPANY LTD
Reel/Frame 054010/0602 →
Priority Claims (1)
CN 201811160527.5 · Sep 30, 2018 · national
Continuity (2)
Continuation PCTCN2019108295 · Sep 26, 2019
Related Publication 20210026740A1 · Jan 28, 2021