CPC G06F 16/2379 (2019.01) [G06F 16/2365 (2019.01)] | 18 Claims |
1. A block verification method, comprising:
acquiring a block to be detected, wherein a plurality of transactions are stored in the block to be detected;
obtaining a plurality of state operation queues according to a state item of each state operation in each transaction, wherein each state operation queue comprises state operations belonging to a same state item; and
performing parallel verification on each state operation queue and obtaining a verification result of the block,
wherein the obtaining a plurality of state operation queues according to a state item of each state operation in each transaction, comprises:
traversing each state operation of each transaction in the block to be detected in turn to acquire the state item;
retrieving whether the state item exists in an operation state snapshot;
in a condition that the state item does not exist in the operation state snapshot, creating a new state operation queue corresponding to the state item, adding the state operation to the state operation queue, and adding the state item to a queue of state items to be allocated and the operation state snapshot; and
in a condition that the state item exists in the operation state snapshot, adding the state operation to the state operation queue corresponding to the state item.
|