CPC G06F 16/22 (2019.01) [G06F 16/27 (2019.01)] | 11 Claims |
1. A method for creating blocks of a blockchain based on a structured directed acyclic graph (DAG) executed by node devices in a peer-to-peer blockchain network comprising:
acquiring a data structure of a local database being established based on the structured DAG;
creating a new block based on a connection relationship between blocks characterized by the structured DAG, the connection relationship between the blocks including at least a connection relationship between milestone blocks, connection relationship between the blocks created by each of the node devices and connection relationship between the milestone blocks and non-milestone block, the milestone blocks being used to confirm information of the new block and blocks directly or indirectly associated therewith; and
broadcasting information of a newly created block to each of the node devices of the peer-to-peer blockchain network, wherein the creating of the new block based on the connection relationship between the blocks characterized by the structured DAG comprises:
forming a new block information based on the connection relationship between the blocks characterized by the structured DAG, wherein the new block information comprises at least transaction information selected from a transaction pool, a connection relationship between the new block and a block included in the structured DAG, and a nonce:
adjusting the nonce included in the new block information until a hash result of the new block information satisfies a first difficulty condition; and
when the nonce included in the new block information being adjusted and the hash result of the new block information being determined to satisfy a second difficulty condition, the new block being confirmed as a milestone block.
|