CPC H04L 9/50 (2022.05) [H04L 9/3236 (2013.01)] | 17 Claims |
1. A computer implemented method implemented using at least one hardware processor, the method comprising:
obtaining, by a first node of a blockchain, target transaction data from a transaction pool;
generating, by the first node of the blockchain, a to-be-checked hash value of the target transaction data;
obtaining, by the first node of the blockchain, a block list, the block list comprising a list of historical blocks that have been stored by the first node of the blockchain and corresponding historical hash values of transaction data in the historical blocks; and
determining, by the first node of the blockchain, whether there is a match between any of the historical hash values and the to-be-checked hash value; wherein:
based on a determination that there is a match between one of the historical hash values of the block list and the to-be-checked hash value, deleting the target transaction data from the transaction pool when the upload status of the target transaction data is in an uploaded state;
based on a determination that there is not a match between any of the historical hash values of the block list and the to-be-checked hash value:
generating a target block according to the target transaction data; and broadcasting, by the first node and to one or more additional nodes of the blockchain, the target block; and wherein based on the determination that there is a match between one of the historical hash values of the block list and the to-be-checked hash value, determine whether a second target block associated with the to-be-checked hash value fails consensus verification.
|