Block generation method and computer storage medium
A block and new block technology, applied in the computer field, can solve problems such as master node failure, failure to generate new blocks, master node election, etc., and achieve the effect of avoiding forks
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0015] refer to figure 1 , shows a flowchart of steps of a method for generating a block according to Embodiment 1 of the present invention.
[0016] The block generation method of this embodiment is applied to the alliance blockchain. Unlike the traditional alliance blockchain, the alliance blockchain in this embodiment does not have a master node. When generating a new block, in order to achieve data consistency, To maintain the order of the alliance blockchain, the new block number verification method is adopted.
[0017] Specifically, the block generation method of this embodiment includes the following steps:
[0018] Step S102: Receive a new block generation request initiated by a node in the consortium blockchain.
[0019] Wherein, the new block generation request carries the number of the requested new block and the information of the corresponding block content.
[0020] Any node in the consortium blockchain can issue a new block generation request to request the g...
Embodiment 2
[0036] refer to figure 2 , shows a flow chart of steps of a method for generating a block according to Embodiment 2 of the present invention.
[0037] This embodiment illustrates the block generation method provided by the embodiment of the present invention in the form of a specific example. Similar to Embodiment 1, the block generation method of this embodiment is also applied to the alliance blockchain. In the alliance blockchain The PBFT algorithm is used to implement the consensus mechanism, and the consortium blockchain does not have a master node.
[0038] Similar to the traditional PBFT, the PBFT algorithm is also used in this embodiment to logically divide the generation of new blocks into five stages, namely: request stage, pre-prepare stage, prepare stage, commit stage, and execute and reply stage.
[0039] Based on the above scenario, the block generation method of this embodiment includes the following steps:
[0040] Step S202: Receive a new block generation r...
Embodiment 3
[0077] The embodiment of the present invention also provides a computer-readable medium, the computer storage medium stores a readable program, and the readable program is applied to the consortium block chain, the consortium block chain does not have a master node, and the The readable program includes: an instruction for receiving a new block generation request initiated by a node in the alliance blockchain, wherein the new block generation request carries the number of the requested new block and the corresponding block content information; used to verify the number of the new block, verify the information of the block content corresponding to the number of the new block that has been verified successfully, and pre-generate the instruction of the new block after the verification is successful ; Used to check the number of the new block again, and send a confirmation message instruction to all nodes in the alliance block chain after the verification is successful; used to jud...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com