Check patentability & draft patents in minutes with Patsnap Eureka AI!

Chain code upgrading method and device

A chain code, a technology to be upgraded, applied in the field of blockchain, can solve the problems of misplaced transaction world state, easy to generate errors, and reduce the accuracy of blockchain transactions, so as to improve the accuracy of transactions, improve security, The effect of increasing transaction risk

Active Publication Date: 2019-12-17
HUAWEI TECH CO LTD
View PDF9 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, in the existing technology, because the node only confirms the identity of the client, it cannot avoid the logic defect chain code from the legal client. In this way, when the node p

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
  • Chain code upgrading method and device
  • Chain code upgrading method and device
  • Chain code upgrading method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0044] In the description of this application, unless otherwise specified, " / " means or means, for example, A / B can mean A or B; "and / or" in this article is just a description of the relationship between associated objects, Indicates that there may be three relationships, for example, A and / or B, may indicate: A exists alone, A and B exist simultaneously, and B exists alone. And, in the description of the present application, unless otherwise specified, "plurality" means two or more than two. In addition, in order to clearly describe the technical solutions of the embodiments of the present application, in the embodiments of the present application, words such as "first" and "second" are used to distinguish the same or similar items with basically the same function and effect. Those skilled in the art can understand that words such as "first" and "second" do not limit the number and execution order, and words such as "first" and "second" do not necessarily limit the difference...

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 discloses a chain code upgrading method and device, and relates to the technical field of block chains. The method comprises the following steps: the endorsement node Endorse acquires afirst target version set corresponding to the chain code Chaincode to be upgraded; and performs simulation upgrading on the to-be-upgraded chain code according to the first target version set in the independent operating environment, and if the second world state World State of the first target version set is consistent with the first world state, the to-be-upgraded chain code is updated by the endorsement node outside the independent operating environment.The first target version set comprises an upgrade package of the first target version, related configuration of the upgrade package and anindependent operation environment, the independent operation environment does not affect the operation environment except itself, the first world state is the world state of the to-be-upgraded chain code before simulation upgrade, and the second world state is the world state of the to-be-upgraded chain code after simulation upgrade.

Description

technical field [0001] The present application relates to the technical field of blockchain, and in particular to a chain code upgrade method and device. Background technique [0002] In blockchain technology, all participating nodes jointly verify each transaction, and each node stores the ledger of the transaction, so that the two parties who have reached an agreement can directly conduct transactions without third-party endorsement. Specifically, the chain code is used to indicate the logic of the transaction and the rules of transaction processing. By executing the chain code, the node will include at least one transaction (including the payer and payee of the transaction funds, the amount of the transaction funds, etc.) In the block, the block is used as an account page. The transactions existing in the blockchain network can be recorded in multiple blocks, and each block is connected together in a certain order to form a blockchain. The formed blockchain is also the r...

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): G06Q20/38G06F8/65G06F8/71
CPCG06Q20/389G06F8/65G06F8/71
Inventor 高磊刘勋
Owner HUAWEI TECH CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More