Data processing method and apparatus for blockchain network, computer device, and computer-readable storage medium

US12189604B2 · US · B2

Patent metadata
FieldValue
Publication numberUS-12189604-B2
Application numberUS-202318315273-A
CountryUS
Kind codeB2
Filing dateMay 10, 2023
Priority dateAug 9, 2021
Publication dateJan 7, 2025
Grant dateJan 7, 2025

How to read this patent

A practical reading order for non-experts. Skip the full description unless you need deep technical detail.

  1. Title

    What the patent document calls the invention.

  2. Abstract

    A short plain-language summary of the technical disclosure.

  3. Assignees and inventors

    Who owns or filed the patent and who is credited as inventor.

  4. Key dates

    Filing, priority, publication, and grant dates set the timeline.

  5. First independent claim

    The legal scope of protection — read this for what is actually claimed.

  6. CPC / IPC classifications

    Technology tags used to group this patent with similar filings.

  7. Citations and related patents

    Prior art links and similar publications in this corpus.

Abstract

Official abstract text for this publication.

A data processing method includes: generating, when a consensus node in a blockchain network does not obtain a block proposal message of a first master node in a proposal stage, a node handover proposal message, and broadcasting the node handover proposal message to a plurality of consensus nodes in the blockchain network, the first master node being configured to package and propose a block to be added to the blockchain network; generating, when a number of node handover proposal messages obtained in a voting stage is not less than the target number, a node handover voting message, and broadcasting the node handover voting message to the consensus nodes in the blockchain network; and re-selecting, when a number of node handover voting messages obtained in a commit stage is not less than the target number, a second master node from the plurality of consensus nodes for replacing the first master node.

First claim

Opening claim text (preview).

What is claimed is: 1. A data processing method for a blockchain network, the blockchain network supporting data processing for a block consensus service, the block consensus service comprising a proposal stage, a voting stage, and a commit stage, and the method comprising: generating, by a consensus node among a plurality of consensus nodes in the blockchain network, when a block proposal message generated by a first master node is not obtained in the proposal stage, a node handover proposal message, the consensus node comprising at least one computer device; broadcasting, by the consensus node, the generated node handover proposal message to the plurality of consensus nodes in the blockchain network; the first master node being one of the plurality of consensus nodes, and the first master node being configured to package and propose a first target block to be added to the blockchain network; generating, by the consensus node, when a number of node handover proposal messages obtained in the voting stage is not less than a target number, a node handover voting message; broadcasting, by the consensus node, the generated node handover voting messages to the plurality of consensus nodes in the blockchain network; and replacing the first master node with a second master node from the plurality of consensus nodes as a new master node of the blockchain network when a number of node handover voting messages obtained by the consensus node in the commit stage is not less than the target number, wherein the second master node is configured to package and propose a second target block to be added to the blockchain network, wherein the block proposal message is a message for the first target block; and the method further comprises: freezing, when the number of the node handover voting messages obtained in the commit stage is not less than the target number, the first target block in the blockchain network, the first master node being configured to, when the first master node is re-selected as a master node in the blockchain network, add the first target block at a block height corresponding to the first target block in the blockchain network; and the plurality of consensus nodes have a polling order; and the replacing the first master node with the second master node comprises: determining, according to the polling order, one consensus node in the plurality of consensus nodes adjacent to the first master node and following the first master node to be the second master node. 2. The method according to claim 1 , wherein the generating, when a block proposal message generated by a first master node is not obtained in the proposal stage, a node handover proposal message comprises: obtaining a proposal blank ballot identifier, when the block proposal message is not obtained in the proposal stage; and generating the node handover proposal message according to the proposal blank ballot identifier. 3. The method according to claim 1 , wherein the generating, when a number of node handover proposal messages obtained in the voting stage is not less than a target number, a node handover voting message comprises: obtaining a voting blank ballot identifier when the number of the node handover proposal messages obtained in the voting stage is not less than the target number; and generating the node handover voting message according to the voting blank ballot identifier. 4. The method according to claim 1 , wherein the generated node handover proposal message is configured to request master node handover of the first master node in the proposal stage; and the generated node handover voting message is configured to request master node handover of the first master node in the voting stage. 5. The method according to claim 1 , wherein the method further comprises: generating, when the block proposal message for the first target block sent by the first master node is received in the proposal stage and consensus of the block proposal message is successful, a proposal agreement message, and broadcasting the generated proposal agreement message to the plurality of consensus nodes in the blockchain network; generating, when a number of proposal agreement messages obtained in the voting stage is not less than the target number, a voting agreement message, and broadcasting the generated voting agreement message to the plurality of consensus nodes in the blockchain network; and adding, when a number of voting agreement messages obtained in the commit stage is not less than the target number, the first target block to the blockchain network. 6. The method according to claim 5 , wherein the method further comprises: generating, when the number of the node handover voting messages obtained in the voting stage is less than the target number and the proposal agreement messages obtained in the voting stage is less than the target number, a node handover voting message, and broadcasting the generated node handover voting message to the plurality of consensus nodes in the blockchain network. 7. The method according to claim 6 , wherein the generating, when the number of the node handover voting messages obtained in the voting stage is less than the target number and the proposal agreement messages obtained in the voting stage is less than the target number, a node handover voting message comprises: initiating, when the number of the node handover voting messages obtained in the voting stage is less than the target number and the proposal agreement messages obtained in the voting stage is less than the target number, a timeout waiting mechanism; and generating, in response to that the number of the obtained node handover voting messages is less than the target number and the obtained proposal agreement messages is less than the target number when a target time period ends after initiating the timeout waiting mechanism, the node handover voting message. 8. The method according to claim 5 , wherein the method further comprises: when the number of the node handover voting messages obtained in the commit stage is less than the target number and the number of the voting agreement messages obtained in the commit stage is less than the target number, replacing the first master node with the second master node from the plurality of consensus nodes as the new master node. 9. The method according to claim 8 , wherein the replacing the first master node with the second master node comprises: initiating, when the number of the node handover voting messages obtained in the commit stage is less than the target number and the number of the voting agreement messages obtained in the commit stage is less than the target number, a timeout waiting mechanism; and re-selecting, in response to that the number of the obtained node handover voting messages is less than the target number and the number of the obtained voting agreement messages is less than the target number when a target time period ends after initiating the timeout waiting mechanism, the second master node for replacing the first master node from the plurality of consensus nodes. 10. A data processing apparatus for a blockchain network, the blockchain network supporting data processing of a block consensus service, the block consensus service comprising a proposal stage, a voting stage, and a commit stage, the blockchain network comprising a plurality of consensus nodes, wherein the apparatus is applied to a consensus node among the plurality of consensus nodes, and comprises a memory and a processor coupled to the memory, wherein the processor is configured to: generate, when a block proposal message generated by a first master node is not obtained in the proposal stage, a node handover proposal m

Assignees

Inventors

Classifications

  • Voting apparatus · CPC title

  • Electronic voting · CPC title

  • using hash chains, e.g. blockchains or hash trees · CPC title

  • Optimistic concurrency control · CPC title

  • G06F21/64Primary

    Protecting data integrity, e.g. using checksums, certificates or signatures · CPC title

Patent family

Related publications grouped by family.

External sources

Frequently asked questions

Answers are generated from the same data shown on this page.

What does patent US12189604B2 cover?
A data processing method includes: generating, when a consensus node in a blockchain network does not obtain a block proposal message of a first master node in a proposal stage, a node handover proposal message, and broadcasting the node handover proposal message to a plurality of consensus nodes in the blockchain network, the first master node being configured to package and propose a block to…
Who is the assignee on this patent?
Tencent Tech Shenzhen Co Ltd
What technology area does this patent fall under?
Primary CPC classification G06F16/2315. Mapped technology areas include Physics.
When was this patent published?
Publication date Tue Jan 07 2025 00:00:00 GMT+0000 (Coordinated Universal Time) (B2). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 3 related publications on this page (citations in our corpus or others sharing the same primary CPC).