Unlock instant, AI-driven research and patent intelligence for your innovation.

Chaincode upgrade method and device

A chain code, a technology to be upgraded, applied in the blockchain field, which can solve the problems of prone to errors, reducing the accuracy of blockchain transactions, and misaligning the state of the transaction world.

Active Publication Date: 2022-02-18
HUAWEI TECH CO LTD
View PDF9 Cites 0 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 processes the transaction according to the logic defect chain code, it is very easy to make mistakes and misplace the world of the transaction. state, reducing the accuracy of blockchain transactions

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
  • Chaincode upgrade method and device
  • Chaincode upgrade method and device
  • Chaincode upgrade 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 application discloses a chain code upgrade method and device, which relate to the technical field of blockchain. The method includes: the endorsement node Endorse obtains the first target version set corresponding to the Chaincode to be upgraded, and simulates the upgrade of the chaincode to be upgraded according to the first target version set in an independent operating environment. If the second target version set of the first target version set If the world state World State is consistent with the first world state, the endorsement node will actually upgrade the chaincode to be upgraded outside the independent operating environment. Among them, the first target version set includes the upgrade package of the first target version and the related configuration of the upgrade package. The independent operating environment does not affect the operating environment outside itself. The first world state is the world state before the chaincode to be upgraded simulates the upgrade , the second world state is the world state of the chaincode to be upgraded after simulating the 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
Patent Type & Authority Patents(China)
IPC IPC(8): G06Q20/38G06F8/65G06F8/71
CPCG06Q20/389G06F8/65G06F8/71
Inventor 高磊刘勋
Owner HUAWEI TECH CO LTD