Block chain code block independent upgrading method and device and electronic equipment

A code block and blockchain technology, applied in the blockchain field, can solve the problems of complex client code, difficult testing and maintenance, and achieve the effect of clear logic, simple design and convenient maintenance.

Active Publication Date: 2019-07-09
杭州秘猿科技有限公司
View PDF5 Cites 11 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] In addition, with the continuous update and iteration of the version, in order to be able to handle the processing logic and verification logic of all versions, the client code becomes more and more complex, making testing and maintenance more and more difficult

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Block chain code block independent upgrading method and device and electronic equipment
  • Block chain code block independent upgrading method and device and electronic equipment
  • Block chain code block independent upgrading method and device and electronic equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0048] figure 1 It is a flow chart of the block chain code block independent upgrade method according to the present invention, which will be referred to below figure 1 , to describe in detail the method for independently upgrading blockchain code blocks of the present invention.

[0049] First, in step 101, the blocks on the blockchain are divided into code blocks and data blocks. Among them, the code block includes the number of the code block to be upgraded, the upgraded version number, and the upgraded code; the data block includes the business data of the block, and the business data of the block is verified according to the latest effective version of the code block and processing.

[0050]In step 102, the genesis block is downloaded, and the genesis block contains the code of the initial version of each code block. After downloading the genesis block, write the code into the local computing device, and execute the code to join the blockchain network.

[0051] In ste...

Embodiment 2

[0057] figure 2 It is a schematic structural diagram of an electronic device according to the present invention, such as figure 2 As shown, the electronic device of the present invention includes a processor at the hardware level, 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.

[0058] 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 o...

Embodiment 3

[0065] An embodiment of the present invention 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:

[0066] Divide blocks on the blockchain into code blocks and data blocks;

[0067] Download the genesis block, write the code into the local computing device, and execute the code to join the blockchain network;

[0068] Add the upgrade code to the code block to be upgraded, and put the code block (new version code block) containing the upgrade code on the chain through the consensus process;

[0069] According to the client's vote, determine whether to upgrade the code block;

[0070] The new version of the code block takes effect, write the new version of the code block to the local computing device to cover the original code block, and ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention relates to a blockchain code block independent upgrading method, a block on a blockchain comprises a code block and a data block, and the method comprises the following steps: writing adownloaded provenance block code into a local computing device, executing the provenance block code, and adding the provenance block code into a blockchain network; linking the new version code blockcontaining the upgrade code after a consensus process; and if the new version code block takes effect, executing the block chain protocol according to the new code logic to complete the upgrading of the block chain protocol. The invention further provides a block chain code block independent upgrading device, the code blocks with relatively independent functions on the block chain are independently upgraded, and development and upgrading of the block chain technology are facilitated; the upgrading process of the protocol is carried out on the chain, the voting process is public and transparent, and each user obtains the voting right with the equal proportion of rights and interests held by the user and is very fair for each user; the new version code does not need to consider and process the old version code logic, the design is simple, the logic is clear, maintenance is convenient, and testing is convenient.

Description

technical field [0001] The present invention relates to block chain technology, in particular to a method, device and electronic equipment for block chain protocol upgrade. Background technique [0002] Blockchain technology is a distributed database that maintains a growing data record. These data are associated with all previously written data through cryptography technology, making it difficult for third parties or even node owners to tamper with. Blocks contain data that actually needs to be saved in the database, and these data are organized into blocks and written into the database. Chain (chain) usually refers to the use of Merkle tree and other methods to verify whether all current blocks have been modified. [0003] At present, blockchain technology is mainly divided into the following three categories: [0004] The public blockchain ((PublicBlockChains)) means that any individual or group in the world can send a transaction, and the transaction can be effectively...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F8/65G06F8/71
CPCG06F8/65G06F8/71
Inventor 万涔涔
Owner 杭州秘猿科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products