# US 2025/0219911 A1 · Blockchain consensus method and blockchain replica apparatus

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2025/0219911 A1
- Document ID: US20250219911A1
- Status: Published application
- Kind: A1
- Application number: 18/853,587
- Filed: 2023-04-07
- Published: 2025-07-03
- Earliest claimed: 2022-04-08
- Assignees: Tsinghua University; Digital Currency Institute, the People's Bank of China
- Applicants: Tsinghua University; Digital Currency Institute, the People's Bank of China
- Inventors: Sisi Duan; Xiaoyun Wang; Changchun Mu; Gang Di
- Web page: https://patentgrep.com/patent/US20250219911A1

## CPC

- H04L 41/30: {Decision processes by autonomous network management units using voting and bidding}
- H04L 9/50: {using hash chains, e.g. blockchains or hash trees}
- H04L 67/104: Peer-to-peer [P2P] networks
- Y02D 10/00: Energy efficient computing, e.g. low power processors, power management or thermal management
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- Y02D: CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE

## Abstract

The present disclosure discloses a blockchain consensus method and a blockchain replica apparatus, and provides a cBFT protocol with a plurality of different voting thresholds, which may reduce a communication complexity of the protocol, reduce a consensus agreement time, improve a throughput of a consensus system, and simultaneously reduce sensitivity of the protocol to a timer.

## Claims

### Claim 1

A blockchain consensus method, which is applied to a replica in a blockchain, wherein the method comprises:
receiving a block message broadcasted by a leader, wherein the block message is packaged by the leader based on a preset message structure after receiving a user instruction, and the block message comprises a new block prepared by the leader in response to the user instruction and a first voting result of a parent block of the new block, wherein the new block is packaged by the leader based on a preset block structure, the new block comprises a parent block voting result type of the new block, and the voting result type comprises f+1, 2f+1, and 3f+1;
determining validity of the new block based on a local variable currently saved and a preset voting rule, transmitting a second vote of the new block to the leader when it is determined that the new block is valid, and simultaneously updating the local variable based on the block message, wherein the local variable comprises a latest voting block of blocks, a latest voting evidence and a latest weak voting evidence, and updating the latest voting block of blocks to a new block comprised in the block message; when the first voting result comprises votes of 2f+1 replicas or 3f+1 replicas, updating the latest vote evidence to the first voting result; when the first voting result comprises votes of f+1 replicas, updating the latest weak voting evidence to the first voting result; and collecting, by the leader, the second vote of the new block as transmitted by each replica, and taking all second votes obtained by collecting as the first voting result included in a block message of a next new block in which a current block is a parent block;
determining a consensus rule based on the first voting result and a pre-designated consensus protocol type; and
tracing voting results of a designated number of parent blocks of the new block based on the consensus rule, and if the voting results of the designated number of parent blocks meet the consensus rule, determining that an earliest prepared parent block in the designated number of parent blocks agrees on a consensus, executing a block commit protocol, and adding the earliest prepared parent block and a block that is on the same branched chain as the earliest prepared parent block and is earlier than the earliest prepared parent block into a blockchain.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the preset block structure comprises a block type, a user request, a parent block link, a block height and block auxiliary data, the block type comprises an f+1 block type, a 2f+1 block type, a 3f+1 block type and a first block prepared by a new leader after a view is changed, the block auxiliary data is configured to store an auxiliary block of a block; the preset message structure comprises a type domain for storing a message type, a block domain for storing a block, a justify domain for storing a parent block voting result of a block, and an aux domain for storing auxiliary data of a specific type block, the message type comprises a generic message, the specific type block is a block with the f+1 block type, the aux domain is configured to store a first voting result of an auxiliary block of the specific type block; and when the block is a block with other type other than the f+1 block type, the aux domain is set to be null.

### Claim 3 (depends on 1)

The method according to claim 1, wherein determining a consensus rule based on the first voting result and a pre-designated consensus protocol type comprises:
when the pre-designated consensus protocol type is an f+1 protocol, voting results supported by the f+1 protocol comprises voting results of f+1 replicas and voting results of 2f+1 replicas, and when the first voting result is the voting results of f+1 replicas, the consensus is not performed; when the first voting result is the voting results of 2f+1 replicas, the consensus rule is a first consensus rule;
when the pre-designated consensus protocol type is a 3f+1 protocol, voting results supported by the 3f+1 protocol comprises voting results of 2f+1 replicas and voting results of 3f+1 replicas; when the first voting result is the voting results of 2f+1 replicas, the consensus rule is a first consensus rule; when the first voting result is the voting results of 3f+1 replicas, the consensus rule is a second consensus rule; and
when the pre-designated consensus protocol type is an f+1/3f+1 protocol, voting results supported by the f+1/3f+1 protocol comprises voting results of f+1 replicas, voting results of 2f+1 replicas and voting results of 3f+1 replicas; when the first voting result is the voting results of f+1 replicas, the consensus is not performed; when the first voting result is the voting results of 2f+1 replicas, the consensus rule is a third consensus rule; when the first voting result is the voting results of 3f+1 replicas, the consensus rule is a second consensus rule.

### Claim 4 (depends on 3)

The method according to claim 3, wherein when the consensus rule is a first consensus rule, tracing voting results of a designated number of parent blocks of the new block based on the consensus rule, and if the voting results of the designated number of parent blocks meet the consensus rule, determining that an earliest prepared parent block in the designated number of parent blocks agrees on the consensus, comprises:
tracing voting results of three blocks continuous with the new block and prepared earlier than the new block, based on a sequential order on a chain formed by blocks in the form of a parent block link; and
if all the voting results of three blocks prepared earlier than the new block are the voting results of 2f+1 replicas, determining that an earliest prepared block in the three blocks prepared earlier than the new block agrees on the consensus.

### Claim 5 (depends on 3)

The method according to claim 3, wherein when the consensus rule is a second consensus rule, tracing voting results of a designated number of parent blocks of the new block based on the consensus rule, and if the voting results of the designated number of parent blocks meet the consensus rule, determining that an earliest prepared parent block in the designated number of parent blocks agrees on the consensus, comprises:
when the first voting result is voting results of 3f+1 replicas, determining that a parent block of the new block agrees on a consensus.

### Claim 6 (depends on 3)

The method according to claim 3, wherein when the consensus rule is a third consensus rule, tracing voting results of a designated number of parent blocks of the new block based on the consensus rule, and if the voting results of the designated number of parent blocks meet the consensus rule, determining that an earliest prepared parent block in the designated number of parent blocks agrees on a consensus, comprises:
tracing voting results of two blocks continuous with the new block and prepared earlier than the new block, based on a sequential order on a chain formed by blocks in the form of a parent block link; and
if all the voting results of two blocks prepared earlier than the new block are the voting results of 2f+1 replicas, determining that an earliest prepared block in the two blocks prepared earlier than the new block agrees on a consensus.

### Claim 7 (depends on 2)

The method according to claim 2, wherein when the pre-designated consensus protocol type is a 3f+1 protocol or an f+1/3f+1 protocol, the method further comprises:
when a preset view changing condition is met, jumping to a next view, and transmitting a new-view message to a new leader designated based on a leader election agreement; and
after the new leader receives the new-view messages of 2f+1 replicas, agreeing on a view changing consensus, and receiving a block message broadcasted by the new leader, wherein a block type included in a first block message broadcasted by the new leader is a first block prepared by the new leader after a view is changed.

### Claim 8

A blockchain replica apparatus, wherein comprises:
a communication module, configured to receive a block message broadcasted by a leader, wherein the block message is packaged by the leader based on a preset message structure after receiving a user instruction, and the block message comprises a new block prepared by the leader in response to the user instruction and a first voting result of a parent block of the new block, wherein the new block is packaged by the leader based on a preset block structure, the new block comprises a parent block voting result type of the new block, and the voting result type comprises f+1, 2f+1, and 3f+1;
a process module, configured to determine validity of the new block based on a local variable currently saved and a preset voting rule, transmit a second vote of the new block to the leader when it is determined that the new block is valid, and simultaneously update the local variable based on the block message, wherein the local variable comprises a latest voting block of blocks, a latest voting evidence and a latest weak voting evidence, and update the latest voting block of blocks to a new block comprised in the block message; when the first voting result comprises votes of 2f+1 replicas or 3f+1 replicas, update the latest vote evidence to the first voting result; when the first voting result comprises votes of f+1 replicas, update the latest weak voting evidence to the first voting result; and collect, by the leader, the second vote of the new block as transmitted by each replica, and take all second votes obtained by collecting as the first voting result included in a block message of a next new block in which a current block is a parent block;
a determination module, configured to determine a consensus rule based on the first voting result and a pre-designated consensus protocol type; and
a consensus module, configured to trace voting results of a designated number of parent blocks for the new block based on the consensus rule, and if the voting results of the designated number of parent blocks meet the consensus rule, determine that an earliest prepared parent block in the designated number of parent blocks agrees on a consensus, execute a block commit protocol, and add the earliest prepared parent block and a block that is on the same branched chain as the earliest prepared parent block and is earlier than the earliest prepared parent block into a blockchain.

### Claim 9

A computer device, comprising a memory, a processor and a computer program that is stored on the memory and capable of running on the processor, wherein the processor implements the following blockchain consensus method when executing the computer program:
receiving a block message broadcasted by a leader, wherein the block message is packaged by the leader based on a preset message structure after receiving a user instruction, and the block message comprises a new block prepared by the leader in response to the user instruction and a first voting result of a parent block of the new block, wherein the new block is packaged by the leader based on a preset block structure, the new block comprises a parent block voting result type of the new block, and the voting result type comprises f+1, 2f+1, and 3f+1;
determining validity of the new block based on a local variable currently saved and a preset voting rule, transmitting a second vote of the new block to the leader when it is determined that the new block is valid, and simultaneously updating the local variable based on the block message, wherein the local variable comprises a latest voting block of blocks, a latest voting evidence and a latest weak voting evidence, and updating the latest voting block of blocks to a new block comprised in the block message; when the first voting result comprises votes of 2f+1 replicas or 3f+1 replicas, updating the latest vote evidence to the first voting result; when the first voting result comprises votes of f+1 replicas, updating the latest weak voting evidence to the first voting result; and collecting, by the leader, the second vote of the new block as transmitted by each replica, and taking all second votes obtained by collecting as the first voting result included in a block message of a next new block in which a current block is a parent block;
determining a consensus rule based on the first voting result and a pre-designated consensus protocol type; and
tracing voting results of a designated number of parent blocks of the new block based on the consensus rule, and if the voting results of the designated number of parent blocks meet the consensus rule, determining that an earliest prepared parent block in the designated number of parent blocks agrees on a consensus, executing a block commit protocol, and adding the earliest prepared parent block and a block that is on the same branched chain as the earliest prepared parent block and is earlier than the earliest prepared parent block into a blockchain.

### Claim 10

(canceled)
