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.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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 ...
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