Block determination method, device and electronic equipment in a block chain
A determination method and technology of blockchain, applied in the network field, can solve the problems of slow speed of blocks to be broadcast and low transaction processing performance of blockchain, and achieve the effect of improving transaction processing performance, reducing calculation amount, and improving processing speed.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0040] refer to figure 2 As shown in , it is a schematic diagram of the steps of a block determination method in the blockchain provided by the embodiment of this specification. The method mainly includes the following steps:
[0041] Step 202: The consensus node selects transaction units to be included in the block to be broadcast from the local transaction pool.
[0042] In the blockchain network, when a blockchain node broadcasts a transaction in the network, the consensus node receives the broadcasted transaction and stores it in the local transaction pool. To the transaction unit in the block to be broadcast this time.
[0043] Step 204: The consensus node determines the root hash value of the Merkle tree corresponding to the transaction unit to be included in all blocks this time according to the preset Merkle tree.
[0044] In blockchain technology, a Merkle tree is usually used as the organizational form of transactions. The value of the leaf node of the Merkle tre...
Embodiment 2
[0083] Refer below Figure 7 The electronic equipment of the embodiment of this specification is introduced. Please refer to Figure 7 , at the hardware level, the electronic device includes a processor, and optionally also includes an internal bus, a network interface, and a memory. Wherein, the memory may include a memory, such as a high-speed random-access memory (Random-Access Memory, RAM), and may also include a non-volatile memory (Non-Volatile Memory), such as at least one disk memory. Of course, the electronic device may also include hardware required by other services.
[0084] The processor, network interface, and memory may be interconnected via an internal bus, which may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an extended industry standard Structure (Extended Industry Standard Architecture, EISA) bus, etc. The bus can be divided into address bus, data bus, control bus and so on. For convenience, Figur...
Embodiment 3
[0091] The embodiment of this specification also provides a computer-readable storage medium, the computer-readable storage medium stores one or more programs, and when the one or more programs are executed by an electronic device including a plurality of application programs, the The electronic device performs the following operations:
[0092] Determine the root hash value of the Merkle tree corresponding to the transaction unit to be included in all blocks this time according to the preset Merkle tree, and the total number of leaf nodes of the Merkle tree is the same as that to be included in the block The difference between the number of trading units is within the preset threshold range;
[0093] Store the root hash value in the block header;
[0094] A block to be broadcast is determined according to the block header and the transaction units to be included in the block.
[0095] Wherein, the computer-readable storage medium is, for example, a read-only memory (Read-On...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


