Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Blockchain node hot upgrading method and related equipment

A blockchain, hot upgrade technology, applied in the blockchain field, can solve the problems of blockchain node service interruption, unavailability, service interruption, etc.

Active Publication Date: 2020-08-07
SHENZHEN THUNDER NETWORK TECH +1
View PDF6 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] When using the above method to upgrade the blockchain node, between the exit of the original service process and the start of the new service process, the service of the blockchain node is unavailable, the service of the blockchain node is interrupted, and the Causes disruption of other services that depend on the blockchain node

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
  • Blockchain node hot upgrading method and related equipment
  • Blockchain node hot upgrading method and related equipment
  • Blockchain node hot upgrading method and related equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0054] figure 1 It is a flow chart of the blockchain node hot upgrade method provided by the embodiment of the present invention. The block chain node hot upgrade method is applied to computer equipment. The block chain node hot upgrade method is used for hot upgrading at least one block chain node in the block chain system. The computer device may or may not be a node in the blockchain system. The computer device is communicatively connected to one or more nodes in the block chain system. According to different requirements, the order of the steps in the flowchart can be changed, and some steps can be omitted.

[0055] Referring to 1, the blockchain node hot upgrade method specifically includes the following steps:

[0056]101. Extract the target function module from the blockchain program and compile it into an initial version of the dynamic library.

[0057] The target function module is pre-selected. Preferably, a function module with a higher update frequency in the ...

Embodiment 2

[0110] figure 2 It is a flowchart of a blockchain node hot upgrade method provided by another embodiment of the present invention. The block chain node hot upgrade method is applied to block chain nodes. The block chain node hot upgrade method is used for hot upgrading at least one block chain node in the block chain. According to different requirements, the order of the steps in the flowchart can be changed, and some steps can be omitted.

[0111] The blockchain nodes can be desktop computers, notebooks, palmtop computers, cloud servers, etc.

[0112] Referring to 2, the hot upgrade method for blockchain nodes specifically includes the following steps:

[0113] 201. When starting the blockchain program for the first time, load the dynamic library of the initial version of the target function module according to the initial version number of the dynamic library of the target function module in the genesis block.

[0114] The target functional module is a functional module...

Embodiment 3

[0145] image 3 A structural diagram of a block chain node hot upgrade device provided by an embodiment of the present invention. The block chain node hot upgrade device 30 is applied to computer equipment. The block chain node hot upgrade device 30 is used for hot upgrading at least one block chain node in the block chain system. The computer device may or may not be a node in the blockchain system. The computer device is communicatively connected to one or more nodes in the block chain system.

[0146] Such as image 3 As shown, the block chain node hot upgrade device 30 may include: a first compilation unit 301 , a writing unit 302 , a second compilation unit 303 , and a construction unit 304 .

[0147] The first compilation unit 301 is used to extract the target function module from the blockchain program and compile it into an initial version of the dynamic library.

[0148]The target function module is pre-selected. Preferably, a function module with a higher update...

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 provides a blockchain node hot upgrading method and related equipment, and the method comprises the steps: loading a dynamic library of an initial version of a target function module according to the initial version number of the dynamic library of the target function module in a creation block when a blockchain program is started for the first time; obtaining a transaction used forupdating the target function module, wherein the transaction carries a new version number and an effective height corresponding to a dynamic library of an updated version of the target function module; and loading the dynamic library of the updated version at the effective height. According to the invention, hot upgrading of the blockchain node can be realized.

Description

technical field [0001] The invention relates to the technical field of block chains, in particular to a block chain node thermal upgrade method and related equipment. Background technique [0002] Blockchain is a technical solution to collectively maintain a reliable database through decentralization and trustlessness. It can store, verify, transmit and communicate network data through its own distributed nodes without relying on third parties. [0003] At present, when a blockchain node needs to be upgraded, it needs to exit the original service process first, and then use the new version program to start a new service process. [0004] When using the above method to upgrade the blockchain node, between the exit of the original service process and the start of the new service process, the service of the blockchain node is unavailable, the service of the blockchain node is interrupted, and the Cause the interruption of other services that depend on the blockchain node. Co...

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
IPC IPC(8): G06F8/65G06F8/41G06Q40/04
CPCG06F8/65G06F8/41G06Q40/04Y02D10/00
Inventor 张小刚
Owner SHENZHEN THUNDER NETWORK TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products