CPC G06F 16/2379 (2019.01) | 24 Claims |
1. A data storage method, applied to a blockchain system, the blockchain system comprising a plurality of nodes, the method comprising:
acquiring, by a target node, a serial number of a newly generated first block broadcasted in the blockchain system, wherein the target node is any one of the plurality of nodes, the first block comprises block data and a block head, and the block head comprises the serial number of the first block and summary data of the first block, and the first block is a newly generated block in any node in the blockchain system;
acquiring, by the target node, a first token seed, wherein the first token seed is generated according to a number of nodes of the blockchain system;
determining, by the target node, a first serial number range where the first block is located on a basis of the first token seed and the serial number of the first block; and
determining, by the target node, to store the first block or store the block head of the first block on a basis of the first serial number range and a first token value of the target node, wherein the first token value of the target node is generated based on the first token seed.
|