Patent ID: 11914579
Assignee: TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED
Field: Computer technology (Electrical engineering)
Classification: CPC G  H | IPC G

Claim 0:
1. A blockchain-based data processing method, performed by a first node, the first node being a computer device, the method comprising:
transmitting, to a second node, first consensus voting information for a target block in a blockchain;
receiving, from the second node, second consensus voting information for the target block of blockchain;
determining, by one or more processors, a consensus result for the target block of the blockchain according to the first consensus voting information and the second consensus voting information;
in accordance with a determination that the consensus result is a consensus success result, activating, by the one or more processors, an accounting duration window having a predetermined time duration, wherein the activating the accounting duration window comprises:
obtaining a quantity of approval votes according to the second consensus voting information;
obtaining a quantity of second nodes as a second target quantity; and
in accordance with a determination that a ratio of the quantity of approval votes is less than the second target quantity:
opening the accounting duration window; and
performing accounting processing on the target block of the blockchain in the predetermined time duration of the accounting duration window;

receiving, from the second node, a first accounting completion messages for the target block of the blockchain in the predetermined time duration of the accounting duration window;
in accordance with a determination that accounting processing on the target block of the blockchain is completed in the accounting duration window, transmitting, by the processor, second accounting completion messages to the second node; and
in accordance with a determination that a sum of total quantities of the first accounting completion messages and the second accounting completion messages is greater than or equal to a quantity threshold:
closing, by the one or more processors, the accounting duration window; and
entering, by the one or more processors, a consensus service process of a subsequent block of the target block of blockchain.