CN108958787B - Block chain system upgrading method, device, equipment and storage medium - Google Patents

Block chain system upgrading method, device, equipment and storage medium Download PDF

Info

Publication number
CN108958787B
CN108958787B CN201810660897.9A CN201810660897A CN108958787B CN 108958787 B CN108958787 B CN 108958787B CN 201810660897 A CN201810660897 A CN 201810660897A CN 108958787 B CN108958787 B CN 108958787B
Authority
CN
China
Prior art keywords
voting
upgrade
block
block chain
transaction
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810660897.9A
Other languages
Chinese (zh)
Other versions
CN108958787A (en
Inventor
肖伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Baidu Online Network Technology Beijing Co Ltd
Original Assignee
Baidu Online Network Technology Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Baidu Online Network Technology Beijing Co Ltd filed Critical Baidu Online Network Technology Beijing Co Ltd
Priority to CN201810660897.9A priority Critical patent/CN108958787B/en
Publication of CN108958787A publication Critical patent/CN108958787A/en
Application granted granted Critical
Publication of CN108958787B publication Critical patent/CN108958787B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/656Updates while running
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/466Transaction processing

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The embodiment of the invention discloses a method, a device, equipment and a storage medium for upgrading a block chain system, wherein the method comprises the following steps: generating an upgrading request of a block chain system, and initiating a voting proposal transaction according to the upgrading request; transmitting the voting proposal transaction in a block chain system to enable a block generation node to execute the following operations: and voting in response to the voting proposal transaction, and responding to the upgrading request to upgrade the block chain system if the voting passes. The block chain system responds to the internal node to vote according to the voting proposal transaction initiated by the system upgrading request, and the corresponding upgrading is carried out on the block chain system after the voting proposal transaction associated with the upgrading request passes through the voting, so that the problem that the block chain system cannot be upgraded is solved, and the performance of the block chain system is improved.

Description

Block chain system upgrading method, device, equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of a block chain, in particular to a method, a device, equipment and a storage medium for upgrading a block chain system.
Background
With the continuous development of internet technology, a decentralized and transparent block chain technology is developed. The blockchain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism and an encryption algorithm.
The blockchain mainly solves the trust and safety problems of transactions, one of the obvious characteristics is distributed blockchain storage, the accuracy of data in the blockchain system is determined by blockchain data stored by most nodes in the blockchain system, most nodes in the blockchain system can almost observe the data in each block in the whole blockchain system, the supervision of all nodes on the data in the blockchain system is realized, and therefore the data in the blockchain system cannot be tampered, and the stability and the safety reliability of the data in the blockchain system are guaranteed.
However, due to the characteristic that data in the blockchain cannot be tampered with, various parameters, encryption algorithms, and the like that need to be used in the existing blockchain network are fixed and cannot be tampered with, that is, the blockchain system cannot be upgraded, which hinders performance improvement of the blockchain system.
Disclosure of Invention
The embodiment of the invention provides a method, a device, equipment and a storage medium for upgrading a block chain system, which can be used for upgrading the block chain system.
In a first aspect, an embodiment of the present invention provides a method for upgrading a blockchain system, where the method is performed by a node in the blockchain system, and the method includes:
generating an upgrading request of a block chain system, and initiating a voting proposal transaction according to the upgrading request;
transmitting the voting proposal transaction in a block chain system to enable a block generation node to execute the following operations: and voting in response to the voting proposal transaction, and responding to the upgrading request to upgrade the block chain system if the voting passes.
In a second aspect, an embodiment of the present invention provides a method for upgrading a blockchain system, where the method is performed by a blockchain generation node in the blockchain system, and the method includes:
responding to a voting proposal transaction provided by an initiator in the block chain system to vote and acquiring a voting result; the voting proposal affair is generated according to an upgrading request of the blockchain system generated by the initiator;
and if the voting is determined to pass according to the statistical voting result, controlling the block chain system to respond to the upgrading request to upgrade the block chain system.
In a third aspect, an embodiment of the present invention provides an apparatus for upgrading a blockchain system, where the apparatus is configured in a node in the blockchain system, and the apparatus includes:
the system comprises an upgrading request generation module, a voting proposal transaction generation module and a voting proposal transaction processing module, wherein the upgrading request generation module is used for generating an upgrading request of a block chain system and initiating a voting proposal transaction according to the upgrading request;
a voting transaction initiating module, configured to transmit the voting proposal transaction in the blockchain system, so that the block generating node performs the following operations: and voting in response to the voting proposal transaction, and responding to the upgrading request to upgrade the block chain system if the voting passes.
In a fourth aspect, an embodiment of the present invention provides an apparatus for upgrading a blockchain system, where the apparatus is configured in a blockchain generation node in the blockchain system, and the apparatus includes:
the voting module is used for responding to a voting proposal transaction provided by an initiator in the block chain system to vote and acquiring a voting result; the voting proposal affair is generated according to an upgrading request of the blockchain system generated by the initiator;
and the upgrading module is used for controlling the block chain system to respond to the upgrading request to upgrade the block chain system if the voting is determined to pass according to the statistical voting result.
In a fifth aspect, an embodiment of the present invention provides an apparatus, including:
one or more processors;
a memory for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors implement the method for updating a blockchain system according to any embodiment of the invention.
In a sixth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method for upgrading a blockchain system according to any embodiment of the present invention.
The embodiment of the invention generates an upgrading request aiming at a specific block chain system upgrading object through the nodes in the block chain system, initiates a corresponding voting proposal transaction according to the upgrading request, and propagates the voting proposal transaction in the block chain network, so that the current block generating node in the block chain system responds to the voting proposal transaction, monitors the voting result in the block chain system, and controls the block chain system to be upgraded according to the upgrading request when votes pass. According to the embodiment of the invention, the block chain system is correspondingly upgraded after the voting proposal transaction associated with the upgrading request passes the voting, so that the problem that the block chain system cannot be upgraded is solved, and the performance of the block chain system is improved.
Drawings
Fig. 1 is a flowchart of a method for upgrading a blockchain system according to an embodiment of the present invention;
fig. 2 is a flowchart of initiating a voting proposal transaction according to a second embodiment of the present invention;
fig. 3 is a flowchart of initiating a voting proposal transaction according to a second embodiment of the present invention;
fig. 4 is a flowchart of initiating a voting proposal transaction according to a second embodiment of the present invention;
fig. 5 is a flowchart of a method for upgrading a blockchain system according to a third embodiment of the present invention;
fig. 6 is a flowchart of a method for upgrading a blockchain system according to a fourth embodiment of the present invention;
fig. 7 is a schematic structural diagram of an upgrade apparatus for a blockchain system according to a fifth embodiment of the present invention;
fig. 8 is a schematic structural diagram of an apparatus for upgrading a blockchain system according to a sixth embodiment of the present invention;
fig. 9 is a schematic structural diagram of an apparatus according to a seventh embodiment of the present invention.
Detailed Description
The embodiments of the present invention will be described in further detail with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the embodiments of the invention and that no limitation of the invention is intended. It should be further noted that, for convenience of description, only some structures, not all structures, relating to the embodiments of the present invention are shown in the drawings.
Example one
Fig. 1 is a flowchart of a method for upgrading a blockchain system according to an embodiment of the present invention, where the method is executed by a node in the blockchain system, and may be executed by an apparatus for upgrading the blockchain system. The method specifically comprises the following steps:
s110, generating an upgrading request of the block chain system, and initiating a voting proposal transaction according to the upgrading request.
In an embodiment of the present invention, the upgrading of the blockchain system refers to an update or modification operation of any data configuring the operation of the blockchain system, such as inherent system parameters and system mechanisms in the blockchain system. Before upgrading the blockchain system, generating an upgrading request of the blockchain system according to the blockchain system upgrading object to be updated or modified. Correspondingly, the upgrade request at least includes the blockchain system upgrade object and the corresponding target upgrade data, so as to instruct the blockchain system to update or modify the blockchain system upgrade object into the target upgrade data.
Preferably, determining a system parameter to be upgraded and a target value of the system parameter, and generating an upgrade request comprising the system parameter and the target value; and/or the presence of a gas in the gas,
determining a system mechanism to be upgraded and a target algorithm to be adopted in the system mechanism, and generating an upgrade request comprising the system mechanism and the target algorithm.
In the embodiment of the present invention, the system parameter may be any parameter for configuring the operation of the blockchain system, and the system mechanism may be any mechanism for configuring the operation of the blockchain system. It can be understood that the local node can initiate a corresponding system upgrade request only when it has voting proposal rights for the upgrade object, or the upgrade request transmitted to the blockchain system can be responded. And when the system parameters to be upgraded and/or the system mechanism to be upgraded are determined, the local node can check the authority of the local node.
Preferably, the determining the system parameter to be upgraded and/or the system mechanism to be upgraded includes:
and selecting the system parameters to be upgraded and/or the system mechanism to be upgraded from the system parameters and/or the system mechanisms which have the authority of initiating the voting proposal of the local node, so that the block generation node determines whether the local node has the authority of initiating the voting proposal of the system parameters and/or the system mechanism to be upgraded in the upgrading request, and if not, shielding the voting proposal transaction.
In the embodiment of the invention, whether the node has the system parameter to be upgraded and/or the voting proposal authority initiated by the system mechanism can be determined according to various modes such as the economic capability, the equity interest, the hardware capability and the stability of the node, so as to ensure that the node can propose and implement an effective upgrade request. It can be understood that the authority for initiating voting proposal possessed by different nodes is different, and the authority for initiating voting proposal corresponding to the same node at different periods is also different, the authority relates to an object to be upgraded which can initiate upgrading of the blockchain system, and may be any data configuring operation of the blockchain system, such as inherent system parameters and system mechanisms in the blockchain system, for example, the system parameters and the system mechanisms.
Preferably, the system parameters include at least one of block-out time, block height and voting effectiveness ratio; and/or the system mechanism includes at least one of a consensus mechanism and an encryption mechanism.
It should be noted that the object to be upgraded for the blockchain system upgrade can be any data configuring the operation of the blockchain system, such as inherent system parameters and system mechanisms in the blockchain system, and is not limited to the objects to be upgraded listed in the above examples.
Specifically, for upgrading the system parameters, in this embodiment, first, the system parameters to be upgraded are selected from the system parameters having the authority to initiate the voting proposal in the local node, the system parameters to be upgraded and the target values of the system parameters to be upgraded are determined, and then, an upgrade request including the system parameters and the target values is generated according to the system parameters to be upgraded and the target values. The system parameter may be any parameter configuring the operation of the blockchain system, and may include at least one of a block-out time, a block height, and a vote validation ratio. The block output time refers to a block generation period, namely, the time for generating a new block is limited; the block height refers to the number of blocks on the block link main chain, and for a single block, the block height can represent the identification of the block; the voting effective proportion refers to the default voting proportion which can be passed by the system for the blockchain system upgrading request or the voting proportion which can be passed by the blockchain system upgrading request and is updated by the initiator of the blockchain system upgrading request. It can be understood that the higher the voting effective ratio, the better, it means that there are more nodes in the blockchain to agree on the upgrade of the blockchain system.
Specifically, for the upgrade of the system mechanism, in this embodiment, a system mechanism to be upgraded is first selected from the system mechanisms having the authority to initiate a voting proposal in the local node, the system mechanism to be upgraded and a target algorithm to be adopted in the system mechanism to be upgraded are determined, and then an upgrade request including the system mechanism and the target algorithm is generated according to the system mechanism to be upgraded and the target algorithm. The system mechanism may be any mechanism that configures the operation of the blockchain system, and may include at least one of a consensus mechanism and an encryption mechanism. The consensus mechanism is that special nodes in the block chain vote for verification and confirmation of the transaction, and when a certain number of nodes achieve consensus in a specified time, the whole block chain can be considered to achieve consensus; the encryption mechanism refers to a mechanism for encrypting data of a transaction transmitted or stored in a block chain.
In this embodiment, when the blockchain system is upgraded, only the system parameters or the system mechanism may be upgraded, but since a specific system mechanism and the system parameters have a certain correlation, the system parameters and the system mechanism may also be upgraded at the same time. And then, after an upgrade request containing the upgrade object and the corresponding target upgrade data is generated, initiating a voting proposal transaction according to the upgrade request. The voting effective block height and/or voting effective proportion threshold value related to the voting proposal transaction can be set or selected so as to definitely judge the execution condition of the voting proposal transaction and the voting result.
Illustratively, due to the update of the consensus mechanism, different consensus mechanisms also differ with respect to block chain system delay and data throughput, as well as with respect to transaction processing capabilities. Assume that the local node of this embodiment intends to adopt a released Proof of trust (DPOS) to update the originally configured workload Proof mechanism (POW) in the blockchain system. Correspondingly, the POW mechanism is used as a system mechanism to be upgraded, and the DPOS mechanism is used as a target algorithm to be adopted in the system mechanism to be upgraded. Therefore, an upgrade request for upgrading the POW mechanism into the DPOS mechanism is generated, and voting proposal transaction is initiated according to the upgrade request.
S120, transmitting the voting proposal transaction in the block chain system, so that the block generating node performs the following operations: and voting in response to the voting proposal transaction, and responding to the upgrading request to upgrade the block chain system if the voting passes.
In an embodiment of the present invention, when the initiator of the upgrade request initiates a voting proposal transaction, the voting proposal transaction is transmitted to the blockchain system, so that most nodes or specific nodes in the blockchain and the current block generation node receive the voting proposal transaction. And the block generation node monitors all the affairs related to the voting proposal affairs in the block chain system, judges the block chain system environment, the initiator of the upgrading request and the content related to the upgrading request according to the voting proposal affairs, and determines whether to respond to the voting proposal affairs according to the judgment result. For example, the determination may be made according to the data information specified by the voting proposal transaction, such as the block height, the initiating authority of the initiator for the content associated with the upgrade request, and the like. If the voting proposal transaction can be voted, most nodes or specific nodes in the block chain vote for the voting proposal transaction. And the block generation node responds to the upgrading request to upgrade the block chain system according to the voting result if the voting passes, namely, an upgrading object associated with the upgrading request is updated or modified into target data, so that the block chain system is upgraded.
According to the technical scheme of the embodiment, an upgrade request is generated by a node in a block chain system aiming at a specific block chain system upgrade object, a corresponding voting proposal transaction is initiated according to the upgrade request, and the voting proposal transaction is propagated in a block chain network, so that a current block generation node in the block chain system responds to the voting proposal transaction, the voting result in the block chain system is supervised, and the block chain system is controlled to be upgraded according to the upgrade request when votes pass. The block chain system responds to the internal node to vote according to the voting proposal transaction initiated by the system upgrading request, and the corresponding upgrading is carried out on the block chain system after the voting proposal transaction associated with the upgrading request passes through the voting, so that the problem that the block chain system cannot be upgraded is solved, and the performance of the block chain system is improved.
Example two
On the basis of the first embodiment, this embodiment provides a preferred implementation of the method for upgrading a blockchain system, and can initiate a voting proposal transaction according to an upgrade request. In the embodiment of the invention, after the upgrade request containing the upgrade object and the corresponding target upgrade data is generated, the voting proposal transaction is initiated according to the upgrade request. The voting effective block height and/or voting effective proportion threshold value related to the voting proposal transaction can be set or selected so as to definitely judge the execution condition of the voting proposal transaction and the voting result. In the embodiment, when the block generation node receives the voting proposal transaction, the voting is directly carried out by judging the voting transaction; alternatively, the time node at which the voting starts may be limited. When the voting is finished, the voting result can be judged according to a default voting effective proportion threshold value of the block chain system or according to a voting effective proportion threshold value set by an initiator of the upgrading request.
Fig. 2 is a flowchart of initiating a voting proposal transaction according to a second embodiment of the present invention, and as shown in fig. 2, the method includes the following specific steps:
s210, determining the height of the voting effective block.
In a specific embodiment of the present invention, the time node at which the voting starts may be limited. Since the current block-out time in the blockchain system is fixed when the blockchain system is not upgraded, the voting validation block height can be set, that is, the start execution time node of the voting operation is determined. For example, the voting validation block height is determined to be 469739.
S220, initiating a voting proposal transaction according to the upgrading request and the height of the voting validation block, and responding to the voting proposal transaction to vote if the block generating node detects that the height of the current block to be generated is the height of the voting validation block.
In the embodiment of the invention, when an upgrade request including an upgrade object and target data thereof and the height of a voting validation block for starting voting are determined, a voting proposal transaction is initiated according to the upgrade request and the height of the voting validation block. The voting proposal transaction is used for indicating the block generation node to detect the height of the current block, responding to the voting proposal transaction if the height of the current block to be generated is detected to be the height of the voting effective block, and indicating a majority node or a special node in the block chain to vote for the voting proposal transaction associated with the upgrading request.
Illustratively, in the above example, the vote validation tile height is 469739. A voting proposal transaction containing a voting validation block height of 469739 is initiated according to the upgrade request and the voting validation block height, so that the block generation node detects whether the current block height to be generated is 469739, and when it is determined that a block with a block height of 469739 is generated, the block chain system is controlled to start voting and obtain a voting result. And finally, judging the voting result according to a default voting effective proportion threshold value of the system, and if the voting passing proportion value is greater than the default voting effective proportion threshold value of the system, determining that the voting passes and upgrading the block chain system.
In addition to the above embodiments, when a voting proposal transaction is initiated according to an upgrade request, the embodiment may also directly perform voting by judging the voting transaction, without limiting the start voting time node. Fig. 3 is a flowchart of initiating a voting proposal transaction according to a second embodiment of the present invention, and as shown in fig. 3, the method includes the following specific steps:
s310, determining a voting effective proportion threshold of the voting proposal transaction.
In the embodiment of the present invention, a default voting effective ratio threshold exists in the blockchain system, and in addition, the initiator may set the voting effective ratio threshold. For example, the native node may set the vote validation percentage threshold to 80%. The voting effective proportion threshold reflects the ratio of the number of nodes accepting the upgrade request to the number of all nodes voting, and it can be understood that the higher the voting effective proportion is, the better the voting effective proportion is, the more nodes in the block chain accept the upgrade of the block chain system at this time.
Preferably, a voting effective proportion threshold value set by the local node is obtained; if the set voting effective proportion threshold is equal to or smaller than the system voting effective proportion threshold, taking the system voting effective proportion threshold as the voting effective proportion threshold of the voting proposal transaction; otherwise, the set voting effective proportion threshold is used as the voting effective proportion threshold of the voting proposal transaction.
In the specific embodiment of the present invention, when the initiator sets the voting validation ratio threshold, one of the voting validation ratio thresholds set by the local node and the system default voting validation ratio threshold with a larger threshold is selected to be determined as the voting validation ratio threshold of the voting proposal transaction.
For example, in the above example, assuming that the default voting effective proportion threshold of the system is 60%, the voting effective proportion threshold set by the local node may be determined to be the voting effective proportion threshold of the voting proposal transaction, that is, 80%, by comparing with 80% of the voting effective proportion threshold set by the local node.
S320, initiating a voting proposal transaction according to the upgrading request and the voting effective proportion threshold value, and determining that the votes pass if the proportion value of the block generation nodes passing the votes is larger than the voting effective proportion threshold value.
In the specific embodiment of the invention, when the upgrading request containing the upgrading object and the target data thereof and the voting effective proportion threshold of the voting proposal transaction are determined, the voting proposal transaction is initiated according to the upgrading request and the voting effective proportion threshold of the voting proposal transaction. The voting proposal transaction is used for instructing the block generation node to control the block chain system to vote for the voting proposal transaction associated with the upgrading request and obtain a voting result. And finally, judging the voting result according to the determined voting effective proportion threshold, and if the voting passing proportion value is greater than the voting effective proportion threshold, determining that the voting passes and upgrading the block chain system.
Illustratively, in the above example, the vote validation percentage threshold is 80%. And initiating a voting proposal transaction containing 80% of the voting effective proportion threshold value according to the upgrading request and the voting effective proportion threshold value so as to enable the block generation node to control the block chain system to start voting and acquire a voting result. And finally, judging the voting result according to an 80% voting effective proportion threshold, and if the voting passing proportion value is greater than 80%, determining that the voting passes and upgrading the block chain system.
The foregoing embodiments may be executed in combination, and fig. 4 is a flowchart of initiating a voting proposal transaction according to a second embodiment of the present invention, as shown in fig. 4, the method includes the following specific steps:
and S410, determining the height of the voting validation block.
And S420, determining a voting effective proportion threshold of the voting proposal transaction.
S430, initiating a voting proposal transaction according to the upgrading request, the height of the voting validation block and the voting validation ratio threshold, enabling the block generating node to respond to the voting proposal transaction for voting if the current block height to be generated is the height of the voting validation block, and determining that the vote passes if the proportion value of the vote passing is greater than the voting validation proportion threshold.
In the embodiment of the invention, the time node of the start of voting and the threshold of the voting effective proportion can be set simultaneously, so that the starting condition and the ending condition of the voting process in the block chain system are judged, and the self-definition of the voting proposal transaction by the local node is completely realized.
According to the technical scheme of the embodiment, the voting proposal transaction associated with the upgrading request is finally generated by setting the height of the voting validation block associated with the voting proposal transaction and/or the voting validation ratio threshold. The self-definition of the local node on the voting proposal transaction is realized, the block chain system is convenient to upgrade according to the user requirements, and the user experience and the performance of the block chain system are improved.
EXAMPLE III
Fig. 5 is a flowchart of a method for upgrading a blockchain system according to a third embodiment of the present invention, where the method is executed by a blockchain generation node in the blockchain system, and can be executed by a blockchain system upgrading apparatus. The method specifically comprises the following steps:
s510, voting is carried out in response to the voting proposal transaction provided by the initiator in the block chain system, and a voting result is obtained.
In an embodiment of the present invention, the voting proposal transaction is generated according to an upgrade request of the blockchain system generated by the initiator. After receiving the voting proposal transaction, the block generation node in this embodiment may directly respond to the voting proposal transaction provided by the initiator in the block chain system by determining the voting transaction, control the block chain system to vote according to the voting proposal transaction, and acquire a voting result.
The embodiment may also detect the block chain system at any moment according to the voting proposal transaction if it is determined that the voting start time node is limited in the voting proposal transaction, respond to the voting proposal transaction when the voting start time node that is set in the voting proposal transaction is detected, control the block chain system to vote according to the voting proposal transaction, and obtain a voting result.
Illustratively, according to the voting proposal transaction, if the voting effective block height is set in the voting proposal transaction, if the block generation node detects that the current block height to be generated is the voting effective block height included in the voting proposal transaction, the voting proposal transaction transmitted by the initiator is responded, the block chain system is controlled to vote according to the voting proposal transaction, and a voting result is obtained.
S520, if the voting is determined to pass according to the statistical voting result, controlling the block chain system to respond to the upgrading request to upgrade the block chain system.
In the embodiment of the present invention, after obtaining the voting result in the block chain, the block generation node may determine the voting result according to a default voting effective proportion threshold of the block chain system, and if the voting passing proportion value is greater than the default voting effective proportion threshold of the system, it is determined that the voting passes, and the block chain system may be updated.
The embodiment may also determine, according to the voting proposal transaction, the voting result according to the voting effectiveness ratio threshold of the voting proposal transaction if it is determined that the voting effectiveness ratio threshold is limited in the voting proposal transaction, and determine that the vote passes if the voting pass ratio value is greater than the voting effectiveness ratio threshold of the voting proposal transaction, so as to upgrade the block chain system.
In this embodiment, after determining that the vote for the upgrade request passes, the block generation node controls the block chain system to respond to the upgrade request, and updates or modifies the upgrade object associated with the upgrade request to the target data, thereby implementing the upgrade on the block chain system.
Preferably, the target value of the system parameter to be upgraded in the upgrade request is controlled to be the current value of the system parameter in the block chain system; and/or the presence of a gas in the gas,
and controlling a target algorithm of the system mechanism to be upgraded in the upgrade request in the blockchain system as a current algorithm adopted by the system mechanism.
In the embodiment of the present invention, the block generation node may use the target value of the system parameter to be upgraded in the block chain system as the current value of the system parameter according to the upgrade request, so as to upgrade the system parameter; and/or the block generation node can take the target algorithm of the system mechanism to be upgraded in the block chain system as the current algorithm adopted by the system mechanism according to the upgrading request, so as to realize the upgrading of the system mechanism.
It should be noted that, in response to the voting proposal transaction, the block generation node for controlling the block chain system to vote and the block generation node for obtaining the voting result and upgrading the block chain system according to the voting result may be the same block generation node. However, since the current block generation node in the blockchain system is continuously updated and changed, the two block generation nodes may also be different block generation nodes corresponding to different times. The change of the block generation node does not affect the normal execution of the scheme of the embodiment.
According to the technical scheme of the embodiment, the current block generation node responds to the voting proposal transaction provided by the initiator in the block chain system, controls the block chain system to vote for the upgrading request and obtains the voting result; and if the voting is determined to pass according to the statistical voting result, controlling the block chain system to respond to the upgrading request to upgrade the block chain system. The block generation node responds to the voting proposal transaction initiated by the internal node according to the system upgrading request, controls the block chain system to vote, and correspondingly upgrades the block chain system after the voting proposal transaction associated with the upgrading request passes through the voting, thereby solving the problem that the block system cannot be upgraded and improving the performance of the block chain system.
Example four
On the basis of the third embodiment, the present embodiment provides a preferred implementation of the method for upgrading a blockchain system, which can determine whether an initiator has an authority to initiate voting proposal. Fig. 6 is a flowchart of a method for upgrading a blockchain system according to a fourth embodiment of the present invention, where the method specifically includes the following steps:
s610, determining whether the initiator has the system parameters to be upgraded and/or the voting proposal initiating authority of the system mechanism in the upgrading request, if so, executing the step S620; if not, go to step S650.
In the embodiment of the present invention, before voting in response to a voting proposal transaction provided by an initiator in a blockchain system, a blockchain generation node may determine whether a node has a system parameter to be upgraded and/or an initiating voting proposal authority of a system mechanism according to various ways such as economic capacity, equity interest, hardware capacity, stability, and the like of the initiator node, so as to ensure that the initiator node can propose and implement an effective upgrade request.
S620, voting is carried out in response to the voting proposal transaction provided by the initiator in the block chain system, and a voting result is obtained.
In an embodiment of the present invention, the voting proposal transaction is generated according to an upgrade request of the blockchain system generated by the initiator. After receiving the voting proposal transaction, the block generation node in this embodiment may directly respond to the voting proposal transaction provided by the initiator in the block chain system by determining the voting transaction if the initiator node has the system parameters to be upgraded and/or the voting proposal initiating authority of the system mechanism. Or, according to the voting proposal transaction, if the voting start time node in the voting proposal transaction is further judged to be limited, the block chain system is detected at all times, and when the voting start time node which is set in the voting proposal transaction is detected, the voting proposal transaction is responded.
Preferably, if it is detected that the current block height to be generated is the voting validation block height included in the voting proposal transaction, voting is performed in response to the voting proposal transaction transmitted by the initiator.
In the embodiment of the invention, by limiting the voting start time node, when the block generation node detects that the voting start time node is reached, the block chain system is controlled to vote according to the voting proposal transaction and acquire the voting result in response to the voting proposal transaction.
S630, if the proportion value of the votes passing is larger than the threshold value of the voting effective proportion, determining that the votes pass.
In an embodiment of the present invention, when the voting is finished or the voting time expires, the block generation node may determine the voting result according to a default voting effectiveness ratio threshold of the block chain system, or according to a voting effectiveness ratio threshold of the voting proposal transaction. The voting pass can be judged only if the proportion value of the voting pass is larger than the voting effective proportion threshold value.
Preferably, if the proportion value of the voting passes is greater than the voting effectiveness proportion threshold value included in the voting proposal transaction, the voting passes are determined.
In the specific embodiment of the present invention, the voting effective ratio threshold included in the proposal transaction may be a voting effective ratio threshold defaulted by the blockchain system, or may also be a voting effective ratio threshold set by the initiator of the upgrade request, and the two are selected as the voting effective ratio threshold of the voting proposal transaction. And similarly, the voting pass can be judged only if the proportion value of the voting pass is greater than the voting effective proportion threshold value included in the voting proposal transaction.
And S640, controlling the blockchain system to respond to the upgrading request in the blockchain system to upgrade the blockchain system.
In the embodiment of the invention, after the vote for the upgrade request is determined to pass, the block generation node controls the response of the upgrade request in the block chain system, updates or modifies the related upgrade object in the upgrade request into the target data, and realizes the upgrade of the block chain system.
Specifically, the block generation node may take a target value of a system parameter to be upgraded in the upgrade request as a current value of the system parameter according to the upgrade request; and/or taking a target algorithm of the system mechanism to be upgraded in the upgrading request as a current algorithm adopted by the system mechanism. And upgrading and updating parameters and/or mechanisms in the blockchain system.
And S650, shielding the voting proposal affairs.
According to the technical scheme of the embodiment, the authority of the initiator of the voting proposal transaction in the block chain system is judged through the current block generating node, so that only the voting proposal transaction with the authority of initiating the voting proposal is responded, the block chain system is controlled to vote for the upgrading request, and a voting result is obtained; and finally, controlling the block chain system to respond to the upgrading request in the block chain system to control the block chain system to be upgraded if the voting is determined to pass according to the voting effective proportion threshold value. The block generation node responds to the voting proposal transaction initiated by the internal node according to the system upgrading request, controls the block chain system to vote, and correspondingly upgrades the block chain system after the voting proposal transaction associated with the upgrading request passes through the voting, thereby solving the problem that the block system cannot be upgraded and improving the performance of the block chain system.
EXAMPLE five
Fig. 7 is a schematic structural diagram of an upgrade apparatus for a blockchain system according to a fifth embodiment of the present invention, which is applicable to upgrade a blockchain system according to the fifth embodiment of the present invention. The device specifically includes:
a voting transaction initiating module 710, configured to generate an upgrade request of the blockchain system, and initiate a voting proposal transaction according to the upgrade request;
a voting transaction transmission module 720, configured to transmit the voting proposal transaction in the blockchain system, so that the block generation node performs the following operations: and voting in response to the voting proposal transaction, and responding to the upgrading request to upgrade the block chain system if the voting passes.
Preferably, the voting transaction initiating module 710 includes an upgrade object determining unit 7101; the upgrade object determination unit 7101 is specifically configured to:
determining a system parameter to be upgraded and a target value of the system parameter, and generating an upgrade request comprising the system parameter and the target value; and/or the presence of a gas in the gas,
determining a system mechanism to be upgraded and a target algorithm to be adopted in the system mechanism, and generating an upgrade request comprising the system mechanism and the target algorithm.
Preferably, the system parameters include at least one of a block-out time, a block height and a voting effectiveness ratio; and/or the system mechanism comprises at least one of a consensus mechanism and an encryption mechanism.
Preferably, the voting transaction initiating module 710 includes a voting time node determining unit 7102; the voting time node determining unit 7102 includes:
a voting validation block height determining subunit, configured to determine a voting validation block height;
and the voting transaction initiating subunit is configured to initiate a voting proposal transaction according to the upgrade request and the height of the voting validation block, so that if the block generation node detects that the height of the current block to be generated is the height of the voting validation block, the block generation node performs voting in response to the voting proposal transaction.
Preferably, the voting transaction initiating module 710 includes a voting pass threshold determining unit 7103; the vote passing threshold determination unit 7103 includes:
a voting effectiveness ratio threshold value determining subunit, configured to determine a voting effectiveness ratio threshold value of the voting proposal transaction;
and the voting transaction initiating subunit is configured to initiate a voting proposal transaction according to the upgrade request and the voting effectiveness ratio threshold, so that the block generation node determines that a vote passes if a voting passing ratio value is greater than the voting effectiveness ratio threshold.
Preferably, the voting effectiveness ratio threshold determining subunit is specifically configured to:
acquiring a voting effective proportion threshold set by a local node;
if the set voting effective proportion threshold is equal to or smaller than the system voting effective proportion threshold, taking the system voting effective proportion threshold as the voting effective proportion threshold of the voting proposal transaction; otherwise, the set voting effective proportion threshold is used as the voting effective proportion threshold of the voting proposal transaction.
Preferably, the upgrade object determining unit 7101 is specifically configured to:
and selecting the system parameters to be upgraded and/or the system mechanism to be upgraded from the system parameters and/or the system mechanisms which have the authority of initiating the voting proposal of the local node, so that the block generation node determines whether the local node has the authority of initiating the voting proposal of the system parameters and/or the system mechanisms to be upgraded in the upgrading request, and if not, shielding the voting proposal transaction.
According to the technical scheme of the embodiment, through the mutual cooperation of all the functional modules, the functions of determining an upgrade object, generating an upgrade request, determining voting time nodes, determining a voting passing threshold, initiating a voting proposal transaction, transmitting the voting proposal transaction and the like are realized. The block chain system responds to the internal node to vote according to the voting proposal transaction initiated by the system upgrading request, and the corresponding upgrading is carried out on the block chain system after the voting proposal transaction associated with the upgrading request passes through the voting, so that the problem that the block chain system cannot be upgraded is solved, and the performance of the block chain system is improved.
EXAMPLE six
Fig. 8 is a schematic structural diagram of an apparatus for upgrading a blockchain system according to a sixth embodiment of the present invention, where this embodiment is applicable to upgrading a blockchain system, and the apparatus can implement the method for upgrading a blockchain system according to any embodiment of the present invention and is configured in a block generation node in the blockchain system. The device specifically includes:
a voting response module 810, configured to perform voting in response to a voting proposal transaction provided by an initiator in the block chain system, and obtain a voting result; the voting proposal affair is generated according to an upgrading request of the blockchain system generated by the initiator;
and the system upgrading module 820 is configured to control to respond to the upgrading request in the blockchain system to upgrade the blockchain system if the voting is determined to pass according to the statistical voting result.
Preferably, the voting response module 810 is specifically configured to:
and if the current block height to be generated is detected to be the voting effective block height included in the voting proposal transaction, responding to the voting proposal transaction transmitted by the initiator to vote.
Further, the apparatus further comprises:
an authority determining module 830, configured to determine whether the initiator has the system parameter and/or the voting proposal authority for initiating the system mechanism to be upgraded in the upgrade request before voting for the voting proposal transaction provided by the initiator in the response blockchain system, and if not, block the voting proposal transaction.
Preferably, the system upgrade module 820 includes a system upgrade unit 8201; the system upgrade unit 8201 is specifically configured to:
controlling a target value of a system parameter to be upgraded in the upgrading request to be used as a current value of the system parameter in the block chain system; and/or the presence of a gas in the gas,
and controlling a target algorithm of the system mechanism to be upgraded in the upgrade request in the blockchain system to be used as a current algorithm adopted by the system mechanism.
Preferably, the system upgrade module 820 includes a vote pass determination unit 8202; the vote pass determination unit 8202 is specifically configured to:
and if the proportion value of the voting passes is larger than the voting effective proportion threshold value included in the voting proposal transaction, determining that the voting passes.
According to the technical scheme of the embodiment, through the mutual cooperation of all the functional modules, the functions of determining the authority of the initiator node, detecting the voting time node, responding the voting proposal transaction, judging the voting result, upgrading the block chain system and the like are realized. The block generation node responds to the voting proposal transaction initiated by the internal node according to the system upgrading request, controls the block chain system to vote, and correspondingly upgrades the block chain system after the voting proposal transaction associated with the upgrading request passes through the voting, thereby solving the problem that the block system cannot be upgraded and improving the performance of the block chain system.
EXAMPLE seven
Fig. 9 is a schematic structural diagram of an apparatus according to a seventh embodiment of the present invention, and fig. 9 shows a block diagram of an exemplary apparatus suitable for implementing the embodiment of the present invention. The device shown in fig. 9 is only an example and should not bring any limitation to the function and the scope of use of the embodiments of the present invention.
The device 12 shown in fig. 9 is only an example and should not bring any limitation to the function and scope of use of the embodiments of the present invention.
As shown in FIG. 9, device 12 is in the form of a general purpose computing device. The components of device 12 may include, but are not limited to: one or more processors 16, a system memory 28, and a bus 18 that connects the various system components (including the system memory 28 and the processors 16).
Bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Device 12 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)30 and/or cache memory 32. Device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 9, and commonly referred to as a "hard drive"). Although not shown in FIG. 9, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. System memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in system memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 42 generally carry out the functions and/or methodologies of embodiments described herein.
Device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), with one or more devices that enable a user to interact with device 12, and/or with any devices (e.g., network card, modem, etc.) that enable device 12 to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 22. Also, the device 12 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet) via the network adapter 20. As shown, the network adapter 20 communicates with the other modules of the device 12 via the bus 18. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with device 12, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processor 16 executes various functional applications and data processing by executing programs stored in the system memory 28, for example, implementing the method for upgrading the blockchain system provided by the embodiment of the present invention.
Example eight
An eighth embodiment of the present invention further provides a computer-readable storage medium, on which a computer program (or referred to as computer-executable instructions) is stored, where the computer program is used for executing a method for upgrading a blockchain system when executed by a processor, and the method includes:
generating an upgrading request of a block chain system, and initiating a voting proposal transaction according to the upgrading request;
transmitting the voting proposal transaction in a block chain system to enable a block generation node to execute the following operations: and voting in response to the voting proposal transaction, and responding to the upgrading request to upgrade the block chain system if the voting passes.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for embodiments of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the embodiments of the present invention have been described in more detail through the above embodiments, the embodiments of the present invention are not limited to the above embodiments, and many other equivalent embodiments may be included without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (13)

1. A method for blockchain system upgrade, performed by a node in a blockchain system, the method comprising:
generating an upgrading request of a block chain system, and initiating a voting proposal transaction according to the upgrading request;
transmitting the voting proposal transaction in a block chain system to enable a block generation node to execute the following operations: responding the voting proposal affair to vote, and responding the upgrading request to upgrade the block chain system if the vote passes;
wherein the generating an upgrade request of the blockchain system includes:
determining a system parameter to be upgraded and a target value of the system parameter, and generating an upgrade request comprising the system parameter and the target value; and/or the presence of a gas in the gas,
determining a system mechanism to be upgraded and a target algorithm to be adopted in the system mechanism, and generating an upgrade request comprising the system mechanism and the target algorithm; wherein the system parameters comprise at least one of block-out time, block height and voting effective proportion; and/or the system mechanism comprises at least one of a consensus mechanism and an encryption mechanism.
2. The method of claim 1, wherein initiating a voting proposal transaction in accordance with the upgrade request comprises:
determining the height of the voting effective block;
and initiating a voting proposal transaction according to the upgrading request and the height of the voting validation block, so that the block generation node responds to the voting proposal transaction for voting if the current block height to be generated is detected to be the height of the voting validation block.
3. The method of claim 1, wherein initiating a voting proposal transaction in accordance with the upgrade request comprises:
determining a voting effective proportion threshold value of the voting proposal transaction;
and initiating a voting proposal transaction according to the upgrading request and the voting effective proportion threshold value, so that the block generation node determines that the votes pass if the proportion value of the votes passing is greater than the voting effective proportion threshold value.
4. The method of claim 3, wherein determining the voting validation proportion threshold for the voting proposal transaction comprises:
acquiring a voting effective proportion threshold set by a local node;
if the set voting effective proportion threshold is equal to or smaller than the system voting effective proportion threshold, taking the system voting effective proportion threshold as the voting effective proportion threshold of the voting proposal transaction; otherwise, the set voting effective proportion threshold is used as the voting effective proportion threshold of the voting proposal transaction.
5. The method of claim 1, wherein determining system parameters to be upgraded and/or system mechanisms to be upgraded comprises:
and selecting the system parameters to be upgraded and/or the system mechanism to be upgraded from the system parameters and/or the system mechanisms which have the authority of initiating the voting proposal of the local node, so that the block generation node determines whether the local node has the authority of initiating the voting proposal of the system parameters and/or the system mechanisms to be upgraded in the upgrading request, and if not, shielding the voting proposal transaction.
6. A method for blockchain system upgrade, performed by a blockchain generation node in a blockchain system, the method comprising:
responding to a voting proposal transaction provided by an initiator in the block chain system to vote and acquiring a voting result; the voting proposal affair is generated according to an upgrading request of the blockchain system generated by the initiator;
if the voting is determined to pass according to the statistical voting result, controlling the block chain system to respond to the upgrading request to upgrade the block chain system;
wherein the controlling of the blockchain system upgrade in response to the upgrade request in the blockchain system comprises:
controlling a target value of a system parameter to be upgraded in the upgrading request to be used as a current value of the system parameter in the block chain system; and/or the presence of a gas in the gas,
controlling a target algorithm of the system mechanism to be upgraded in the upgrading request in the blockchain system to be used as a current algorithm adopted by the system mechanism; wherein the system parameters comprise at least one of block-out time, block height and voting effective proportion; and/or the system mechanism comprises at least one of a consensus mechanism and an encryption mechanism.
7. The method of claim 6, wherein voting in response to a voting proposal transaction provided by an initiator in a blockchain system comprises:
and if the current block height to be generated is detected to be the voting effective block height included in the voting proposal transaction, responding to the voting proposal transaction transmitted by the initiator to vote.
8. The method of claim 6, wherein prior to voting in response to a voting proposal transaction provided by an initiator in the blockchain system, further comprising:
and determining whether the initiator has the system parameters to be upgraded and/or the voting proposal initiating authority of the system mechanism in the upgrading request, and if not, shielding the voting proposal transaction.
9. The method of claim 6, wherein determining whether the vote passed according to the statistical voting result comprises:
and if the proportion value of the voting passes is larger than the voting effective proportion threshold value included in the voting proposal transaction, determining that the voting passes.
10. An apparatus for upgrading a blockchain system, the apparatus being configured in a node in the blockchain system, the apparatus comprising:
the voting transaction initiating module is used for generating an upgrading request of the block chain system and initiating a voting proposal transaction according to the upgrading request;
a voting transaction transmission module, configured to transmit the voting proposal transaction in the blockchain system, so that the block generation node performs the following operations: responding the voting proposal affair to vote, and responding the upgrading request to upgrade the block chain system if the vote passes;
the voting transaction initiating module comprises: an upgrade object determination unit;
the upgrade object determining unit is specifically configured to:
determining a system parameter to be upgraded and a target value of the system parameter, and generating an upgrade request comprising the system parameter and the target value; and/or the presence of a gas in the gas,
determining a system mechanism to be upgraded and a target algorithm to be adopted in the system mechanism, and generating an upgrade request comprising the system mechanism and the target algorithm; wherein the system parameters comprise at least one of block-out time, block height and voting effective proportion; and/or the system mechanism comprises at least one of a consensus mechanism and an encryption mechanism.
11. An apparatus for upgrading a blockchain system, the apparatus being configured in a blockchain generation node in the blockchain system, the apparatus comprising:
the voting response module is used for responding to the voting proposal affair provided by the initiator in the block chain system to vote and acquiring a voting result; the voting proposal affair is generated according to an upgrading request of the blockchain system generated by the initiator;
the system upgrading module is used for controlling the block chain system to respond to the upgrading request to upgrade the block chain system if the voting is determined to pass according to the statistical voting result;
the system upgrade module includes: a system upgrade unit;
the system upgrading unit is specifically configured to:
controlling a target value of a system parameter to be upgraded in the upgrading request to be used as a current value of the system parameter in the block chain system; and/or the presence of a gas in the gas,
controlling a target algorithm of the system mechanism to be upgraded in the upgrading request in the blockchain system to be used as a current algorithm adopted by the system mechanism; wherein the system parameters comprise at least one of block-out time, block height and voting effective proportion; and/or the system mechanism comprises at least one of a consensus mechanism and an encryption mechanism.
12. An electronic device, comprising:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the blockchain system upgrade method of any one of claims 1 to 5; or, implementing the blockchain system upgrade method of any one of claims 6 to 9.
13. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the blockchain system upgrade method according to any one of claims 1 to 5; or, implementing the blockchain system upgrade method of any one of claims 6 to 9.
CN201810660897.9A 2018-06-25 2018-06-25 Block chain system upgrading method, device, equipment and storage medium Active CN108958787B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810660897.9A CN108958787B (en) 2018-06-25 2018-06-25 Block chain system upgrading method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810660897.9A CN108958787B (en) 2018-06-25 2018-06-25 Block chain system upgrading method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN108958787A CN108958787A (en) 2018-12-07
CN108958787B true CN108958787B (en) 2021-11-12

Family

ID=64486361

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810660897.9A Active CN108958787B (en) 2018-06-25 2018-06-25 Block chain system upgrading method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN108958787B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109002297B (en) * 2018-07-16 2020-08-11 百度在线网络技术(北京)有限公司 Deployment method, device, equipment and storage medium of consensus mechanism
CN109814905B (en) * 2019-01-17 2023-06-16 上海边界智能科技有限公司 Software upgrading method and device based on blockchain
CN109992285B (en) * 2019-04-02 2022-09-16 杭州秘猿科技有限公司 Independent updating method and device for block chain code block and electronic equipment
CN110298641B (en) * 2019-06-12 2022-08-05 广东投盟科技有限公司 Rule updating method and device for block chain, block chain node and network
CN110427385B (en) * 2019-08-02 2022-06-10 中国工商银行股份有限公司 Block chain data updating method, related node and block chain
CN110768822B (en) * 2019-09-29 2022-08-23 南京金宁汇科技有限公司 Method, system and storage medium for dynamically upgrading alliance chain organization structure
CN111355719B (en) * 2020-02-25 2022-02-11 深圳市万物云科技有限公司 Community voting method, device, equipment and storage medium based on block chain technology
CN111596937B (en) * 2020-05-14 2023-09-15 北京众享比特科技有限公司 Method and system for realizing synchronous validation of new features of nodes in block chain
CN112035144B (en) * 2020-09-01 2023-05-26 平安付科技服务有限公司 Upgrading method and device of block chain system, computer equipment and storage medium
CN111930847B (en) * 2020-09-16 2021-01-08 深圳壹账通智能科技有限公司 Data processing method and device based on block chain and storage medium
CN112636984B (en) * 2020-12-28 2023-04-11 杭州趣链科技有限公司 Federation chain configuration updating method, equipment and computer medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170302663A1 (en) * 2016-04-14 2017-10-19 Cisco Technology, Inc. BLOCK CHAIN BASED IoT DEVICE IDENTITY VERIFICATION AND ANOMALY DETECTION
CN106778329B (en) * 2016-11-28 2020-12-04 中国银行股份有限公司 Block chain intelligent contract template dynamic updating method, device and system
CN106790112B (en) * 2016-12-26 2020-05-05 重庆高开清芯科技产业发展有限公司 Node operating system integrating lightweight block chains and data updating method
CN106878071B (en) * 2017-01-25 2020-09-15 上海钜真金融信息服务有限公司 Block chain consensus mechanism based on Raft algorithm
CN107360001B (en) * 2017-07-26 2021-12-14 创新先进技术有限公司 Digital certificate management method, device and system
CN108196872A (en) * 2017-12-27 2018-06-22 邵美 The upgrade method of intelligent contract in a kind of block catenary system

Also Published As

Publication number Publication date
CN108958787A (en) 2018-12-07

Similar Documents

Publication Publication Date Title
CN108958787B (en) Block chain system upgrading method, device, equipment and storage medium
CN108965399B (en) Intelligent contract execution method, device, equipment and storage medium
KR102414096B1 (en) Create and deploy packages for machine learning on end devices
US11614926B2 (en) Consensus mechanism deployment method and apparatus
US10318736B2 (en) Validating operating firmware of a periperhal device
CN108681565B (en) Block chain data parallel processing method, device, equipment and storage medium
KR101778768B1 (en) METHOD OF CONTROLLING IoT DEVICE AND IoT DEVICE CONTROL SYSTEM FOR PERFORMING THE SAME
CN109496419B (en) File processing method, device and system
US9177129B2 (en) Devices, systems, and methods for monitoring and asserting trust level using persistent trust log
CN110008690B (en) Authority management method, device, equipment and medium for terminal application
US20120084355A1 (en) Method and apparatus for maintaining operability with a cloud computing environment
US20100082955A1 (en) Verification of chipset firmware updates
US10212034B1 (en) Automated network change management
WO2022213641A1 (en) Method and apparatus for process succession, electronic device and storage medium
CN110633046A (en) Storage method and device of distributed system, storage equipment and storage medium
CN105589699A (en) Serial number information update method, device and terminal
CN107817962B (en) Remote control method, device, control server and storage medium
Sudharsan et al. Ota-tinyml: over the air deployment of tinyml models and execution on iot devices
CN111507694A (en) Block chain cross-chain interaction method and system
CN111198832B (en) Processing method and electronic equipment
CN113037850A (en) Application program upgrading method and device, electronic equipment and storage medium
CN115665265B (en) Request processing method, device, equipment, storage medium and system
CN115576580A (en) Firmware upgrading method and device, electronic equipment and automatic driving vehicle
CN101398876A (en) Methods and systems for configuring a specific-use computing system
KR101668441B1 (en) Meddleware Interface System and Method for Data Collection of Heterogeneous Devices

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant