CN110298641B - Rule updating method and device for block chain, block chain node and network - Google Patents

Rule updating method and device for block chain, block chain node and network Download PDF

Info

Publication number
CN110298641B
CN110298641B CN201910506202.6A CN201910506202A CN110298641B CN 110298641 B CN110298641 B CN 110298641B CN 201910506202 A CN201910506202 A CN 201910506202A CN 110298641 B CN110298641 B CN 110298641B
Authority
CN
China
Prior art keywords
rule
node
nodes
feedback
updating request
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
CN201910506202.6A
Other languages
Chinese (zh)
Other versions
CN110298641A (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.)
Guangdong Investment Alliance Technology Co ltd
Original Assignee
Guangdong Investment Alliance Technology 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 Guangdong Investment Alliance Technology Co ltd filed Critical Guangdong Investment Alliance Technology Co ltd
Priority to CN201910506202.6A priority Critical patent/CN110298641B/en
Publication of CN110298641A publication Critical patent/CN110298641A/en
Application granted granted Critical
Publication of CN110298641B publication Critical patent/CN110298641B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/04Payment circuits
    • G06Q20/06Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme
    • G06Q20/065Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme using e-cash
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3827Use of message hashing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3829Payment protocols; Details thereof insuring higher security of transaction involving key management

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Finance (AREA)
  • General Business, Economics & Management (AREA)
  • Strategic Management (AREA)
  • Computer Security & Cryptography (AREA)
  • Databases & Information Systems (AREA)
  • Computing Systems (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a rule updating method and device of a block chain, a block chain link point and a network, wherein the method comprises the following steps: when receiving an initiated rule updating request, acquiring the type of a current node; sending a rule updating request to a preset node according to the type of the node; obtaining feedback of the node receiving the rule updating request on the rule updating request, and judging whether the feedback meets the preset requirement; when the feedback meets the preset requirement, submitting the rule updating request to all nodes of the block chain network so as to obtain the approval rate of all nodes to the rule updating request; when the approval rate is greater than a preset threshold value, updating the rule to the block chain, and starting trial operation timing; and after the timing reaches the preset time, voting according to the contribution value integral of the node in the trial operation period, and determining whether the updated rule is effective according to the contribution value integral of the voting. The invention can realize fair update of the block chain network rules and ensure the reliability of the block chain network.

Description

Rule updating method and device for block chain, block chain node and network
Technical Field
The present invention relates to the field of a block chain, and in particular, to a method and an apparatus for updating a rule of a block chain, a block chain node point, and a network.
Background
Since the advent of the bitcoin system in 2009, which brought many innovations in computer science and electronic cash, decentralized cryptocurrency, represented by bitcoin and its derived competitive coins, received a great deal of attention. The currency system is characterized in that a distributed shared general ledger is constructed based on a block chain, so that the safety, reliability and decentralization characteristics of system operation are guaranteed.
The block chain refers to a technical scheme for collectively maintaining a reliable database in a decentralized and distrust mode, and is a string of data blocks which are generated in a correlation mode by using a cryptography method. The technical scheme mainly enables any plurality of nodes participating in the system to generate data blocks through a string of data blocks which are associated by using a cryptography method, wherein each data block contains all information exchange data of the system within a certain time, and data fingerprints are generated for verifying the validity of the information and linking the next database block.
For the blockchain, how to prevent the ledger from being tampered, how to ensure the data consistency among the nodes is a problem to be solved when the blockchain establishes the decentralized transaction, and therefore a consensus mechanism is generated.
So far, there are the following mechanisms for block chain consensus: PoW workload certification, PoS stock right certification, DPoS authorization stock right certification.
The workload Proof mechanism (Proof of work) has the advantage of complete decentralization, in a block chain which is commonly recognized by the workload Proof mechanism, nodes can freely enter and exit, the accounting right is contended by calculating the numerical value of the random hash, and the capability of obtaining the correct numerical value solution to generate a block is the concrete expression of the node computing power. Its advantages are high speed verification, high number of nodes, high cost and high self-observing performance. The disadvantages are that a large amount of algorithm and computing resources are consumed, and the period for reaching the consensus is long.
The Proof of rights mechanism (Proof of stamp) requires a prover to provide ownership of a certain amount of cryptocurrency. The equity accreditation mechanism operates in such a way that when a new block is created, the miners need to create a "minty" transaction that sends some coins to the miners themselves in a predetermined proportion. The equity certification mechanism proportionally reduces the ore digging difficulty of the nodes according to the proportion and time of tokens owned by each node and an algorithm, thereby accelerating the speed of searching random numbers. Its advantages are short time needed for agreeing, and saving energy. The disadvantage is that the nodes in the network are still essentially required to carry out the ore digging operation, and the account transfer authenticity is difficult to guarantee.
The authorized Proof of stock mechanism (freed Proof of stamp), similar to the voting of board of directors, has a built-in real-time shareholder voting system, just as the system is holding a never-scattered shareholder meeting at any time, where all the shareholders vote to decide corporate decisions.
The authorized equity proves that the negative effect brought by centralization can be counteracted by implementing scientific democratics while the traditional PoW mechanism and PoS mechanism problems are solved. The decentralized creation of block chains based on DPoS mechanisms relies on a certain number of representatives, not on the totality of users. In such a block chain, the whole nodes vote to select a certain number of representative nodes, and the representative nodes proxy the whole nodes to confirm the block and maintain the ordered operation of the system. At the same time, all nodes in the blockchain have the right to be struck and represented at any time. If necessary, all the nodes can make the existing node representatives lose the membership of representatives through voting, and the new representatives are reselected to realize real-time democratics. The authorization and equity certification mechanism can reduce the number of nodes participating in verification and accounting, thereby achieving second-level consensus verification.
In the operation process of the block chain network, sometimes the on-chain rules need to be updated, such as generating rules for updating tokens or handling fees of each block or the number of tokens of each block, and in this case, how to ensure the update of the rules is agreed by most nodes and how to ensure the fairness of the rules is a problem to be considered.
Disclosure of Invention
In view of the foregoing problems, an object of the present invention is to provide a method and an apparatus for updating a rule of a blockchain, a blockchain node, and a network, which can implement fair update of the rule.
The embodiment of the invention provides a rule updating method of a block chain, which comprises the following steps:
when receiving an initiated rule updating request, acquiring the type of a current node;
sending the rule updating request to a preset node according to the type of the node;
obtaining feedback of the node receiving the rule updating request on the rule updating request, and judging whether the feedback meets a preset requirement;
when the feedback meets a preset requirement, submitting the rule updating request to all nodes of a block chain network so as to acquire the approval rate of all nodes to the rule updating request;
when the approval rate is larger than a preset threshold value, updating a rule to the block chain, and starting trial operation timing;
and after the timing reaches the preset time, voting according to the contribution value integral of the node in the trial operation period, and determining whether the updated rule is effective according to the contribution value integral of the voting.
Preferably, the nodes include a representative node and a general node; sending the rule updating request to a preset node according to the type of the node, acquiring feedback of the node receiving the rule updating request to the rule updating request, and judging whether the feedback meets a preset requirement, specifically:
when the node type is a representative node, sending the rule updating request to other representative nodes, and receiving feedback of other representative nodes to the rule updating request;
and when the feedback indicates that the ratio of the number of the representative nodes which agree with the rule updating request to the number of all the representative nodes is larger than a first preset ratio, indicating that the feedback meets the preset requirement.
Preferably, when the node type is a common node, the rule updating request is sent to all nodes, and feedback of other nodes to the rule updating request is received;
and when the feedback indicates that the number of the nodes which agree with the rule updating request reaches a second preset proportion of all the nodes, the feedback indicates that the feedback meets a preset requirement, and the rule updating request is sent to the representative node so that the representative node sends the rule updating request to all the nodes of the block chain network for voting.
Preferably, the preset threshold is 2/3, and the time limit of the commissioning timer is 60 days.
Preferably, after the time reaches the preset time, voting according to the contribution value integral of the node during the commissioning period, and determining whether the updated rule takes effect according to the contribution value integral of the voting specifically includes:
after the timing reaches the preset time, acquiring all contribution value integrals and the contribution value integrals of the nodes which agree with the rule updating request;
when the ratio of the contribution value integral to the total contribution value integral is greater than 2/3, the updated rule is determined to be in effect, otherwise the updated rule is determined not to be in effect.
An embodiment of the present invention further provides a device for updating rules of a block chain, including:
a rule update request unit, configured to obtain a type of a current node when an initiated rule update request is received;
a rule update request sending unit, configured to send the rule update request to a preset node according to the type of the node;
a feedback obtaining unit, configured to obtain feedback of the node that receives the rule update request to the rule update request, and determine whether the feedback meets a preset requirement;
a rule update request submitting unit, configured to submit the rule update request to all nodes of a blockchain network when the feedback meets a preset requirement, so as to obtain an approval rate of all nodes for the rule update request;
the commissioning unit is used for updating a rule to the block chain and starting commissioning timing when the approval rate is greater than a preset threshold value;
and the validation judging unit is used for voting according to the contribution value integral of the node in the trial operation period after the timing reaches the preset time, and determining whether the updated rule is valid according to the contribution value integral of the voting.
An embodiment of the present invention further provides a block chain network, including: a plurality of nodes formed by connecting through a P2P network, for respectively storing blocks including recording data, and linking the blocks to form a block chain; the plurality of nodes comprise at least one representative node and at least one common node; wherein:
the representative node is used for initiating a rule updating request and sending the rule updating request to other representative nodes;
the representative node is further configured to obtain feedback of the representative node receiving the rule update request on the rule update request, and submit the rule update request to all nodes of the blockchain network when the feedback meets a preset requirement, so as to obtain an approval rate of all nodes on the rule update request; when the approval rate is greater than a preset threshold value, the block chain network updates the rule to the block chain, starts trial operation timing, and votes according to the contribution value integral of the node in the trial operation period after the timing reaches the preset time, so as to determine whether the updated rule is effective according to the voted contribution value integral.
Preferably, the common node is configured to initiate a rule update request and send the rule update request to all nodes;
the common node is further configured to obtain feedback of the node receiving the rule update request on the rule update request, and when the feedback meets a preset requirement, submit the rule update request to a representative node, so that the representative node sends the rule update request to all nodes of the block link network to obtain an approval rate of all nodes on the rule update request; when the approval rate is greater than a preset threshold value, the block chain network updates the rule to the block chain, starts trial operation timing, and votes according to the contribution value integral of the node in the trial operation period after the timing reaches the preset time, so as to determine whether the updated rule is effective according to the voted contribution value integral.
In the embodiment of the invention, the rule updating request can be made no matter whether the representative node or the common node is provided, and the execution and the effectiveness of the final rule need to depend on the confirmation of all the nodes and the feedback of the nodes which finally contribute to the block chain network, so that the fairness and the efficiency of the rule updating of the whole block chain network are considered to the greatest extent.
Drawings
In order to more clearly illustrate the technical solution of the present invention, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart illustrating a method for updating a rule of a block chain according to an embodiment of the present invention.
Fig. 2 is a schematic structural diagram of a rule updating apparatus for a block chain according to an embodiment of the present invention.
Fig. 3 is an architecture diagram of a blockchain network provided by an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Before further detailed description of the present invention, terms and expressions referred to in the embodiments of the present invention will be described below.
Tokens, referred to in embodiments of the present invention as encrypted internet currency, are distributed digital currency based on cryptography, including bitcoin, ethercoin, ledebut coin, and other similar derivative currencies, where different blockchains may define different tokens.
The Block (Block) is a storage unit, each Block realizes the link (chain) through random hash (also called hash algorithm), the Block head (Block head) of the next Block contains the hash value of the previous Block, thereby realizing the sequential connection of the blocks and forming the Block chain.
The block chain (Blockchain) is characterized in that a plurality of nodes are related to each other by a string of nodes by using a cryptography method to generate a block, the block adopts a structure of a block head and a block body, data used for verifying the validity of recorded data in the block head and index data of a previous block are included in the block body, and the block body contains the recorded data within a certain time.
Functionally, a blockchain is a distributed database that is run by a group of distributed nodes and is used to store various records, such as records of virtual currency transactions. In terms of data structure, the blockchain includes a series of blocks, once a new block is added to the blockchain, the new block cannot be removed, and the blocks contain the recorded data for verifying the validity (anti-counterfeiting) of the recorded data and generating the next block.
Taking bitcoin as an example, the transaction of bitcoin depends on the confirmation of nodes in the running blockchain, when the bitcoin transaction is confirmed by a node for the first time, the corresponding transaction list is added to the latest block in the blockchain, the transaction is continuously confirmed by other nodes in the blockchain network to avoid transaction repetition, when the confirmation is obtained in enough blocks (namely, the transaction is recorded in blocks), the transaction is finally confirmed, and the transaction is not reversible.
Asymmetric encryption is a secret method of a key. Asymmetric encryption algorithms require two keys: public key (publickey) and private key (privatekey). The public key is paired with the private key, and if data is encrypted with the private key, it can only be decrypted with the corresponding public key. This algorithm is called asymmetric encryption algorithm because two different keys are used for encryption and decryption. The basic process of realizing confidential information exchange by the asymmetric encryption algorithm is as follows: the first party generates a pair of keys and discloses one of the keys as a public key to the other party; the party B obtaining the public key encrypts the confidential information by using the key and then sends the encrypted confidential information to the party A; the first party decrypts the encrypted information by using another private key stored by the first party.
Referring to fig. 1, an embodiment of the present invention provides a method for updating a rule of a block chain, including:
s101, when receiving the initiated rule updating request, obtaining the type of the current node.
In the present embodiment, each node located in the blockchain network is connected through the P2P network. In this embodiment, the nodes include two types, a representative node and a common node, and the representative node can be generated by voting by all nodes. The voting may be performed according to the contribution of each node to the whole block chain or the integral of each node, and the present invention is not limited in particular. In addition, the whole nodes can also replace the representative nodes or make a representative node lose the qualification by voting.
In this embodiment, the rule update request may be, for example, the token acquisition amount, the difficulty or the transaction fee of updating the blockchain network, the election mode of replacing the representative node, and the like, which are determined according to the nature of the blockchain network, and the present invention is not limited thereto.
And S102, sending the rule updating request to a preset node according to the type of the node.
S103, obtaining feedback of the node receiving the rule updating request to the rule updating request, and judging whether the feedback meets a preset requirement.
And S104, when the feedback meets the preset requirement, submitting the rule updating request to all nodes of the block chain network so as to acquire the approval rate of all nodes to the rule updating request.
In this embodiment, if the type of the node initiating the rule update request is a representative node, the rule update request is sent to other representative nodes, and the other representative nodes determine whether it is necessary to perform the rule update. When the ratio of the number of the representative nodes agreeing to the rule updating request to the number of all the representative nodes is larger than a first preset ratio, the rule updating request is agreed by the representative nodes, at this time, the rule updating request is sent to all the nodes in the block chain network, and the rule updating request is voted by all the nodes.
In this embodiment, if the type of the node initiating the rule update request is a common node, the rule update request is sent to the global node, and if the number of nodes agreeing to the rule update request reaches a second preset proportion of the global node, the rule update request is submitted to the global representative node, and then the representative node submits the rule update request to the global node for voting.
In this embodiment, the first preset ratio may be set to 4/5, and the second preset ratio may be set to 1/10, but it should be noted that, in other embodiments of the present invention, the first preset ratio and the second preset ratio may be set according to actual needs, and the present invention is not limited herein.
And S105, when the approval rate is greater than a preset threshold value, updating a rule to the block chain, and starting trial run timing.
And S106, after the preset time is reached, voting is carried out according to the contribution value integral of the node in the trial operation period, and whether the updated rule is effective or not is determined according to the contribution value integral of the voting.
In this embodiment, after the rule update request is sent to the global node, if the approval rate for the rule update request is greater than a preset threshold (e.g., 2/3), it indicates that the rule has been approved by most people, and a commissioning may be initiated. At this time, a timer is started to count down (for example, set to count down for 60 days), and the contribution integral of each node to the blockchain network during the count-down period is obtained. The contribution score may be determined by the demo link network during the development design, for example, by determining the number of blocks, and the invention is not limited thereto.
In this embodiment, after the countdown is finished, a vote is again performed, at this time, the contribution value integral sum of the approved nodes is obtained, and when the ratio of the contribution value integral sum to the total contribution value integral is greater than 2/3, the updated rule is determined to be valid, otherwise, the updated rule is determined not to be valid. Because the contribution value integral represents the contribution degree of the node to the whole block chain, the method can ensure that the updating result of the rule is the selection made by the node which has more sufficient knowledge on the rule, and ensure the relative objectivity of the result.
In summary, the rule updating method for the blockchain provided by this embodiment may provide the rule updating request regardless of the representative node or the common node, and the execution and validation of the final rule need to depend on the confirmation of all nodes and the feedback of the node that finally contributes to the blockchain network, so as to maximally consider the fairness and efficiency of the rule updating of the whole blockchain network.
Referring to fig. 2, an embodiment of the present invention further provides a device for updating rules of a block chain, including:
a rule update request unit 10, configured to obtain a type of a current node when an initiated rule update request is received;
a rule update request sending unit 20, configured to send the rule update request to a preset node according to the type of the node;
a feedback obtaining unit 30, configured to obtain feedback of the node that receives the rule update request on the rule update request, and determine whether the feedback meets a preset requirement;
a rule update request submitting unit 40, configured to submit the rule update request to all nodes of the blockchain network when the feedback meets a preset requirement, so as to obtain an approval rate of all nodes for the rule update request;
a commissioning unit 50, configured to update a rule to the block chain and start commissioning timing when the approval rate is greater than a preset threshold;
and the validation judging unit 60 is configured to vote according to the contribution value integral of the node during the trial operation period after the counted time reaches the preset time, and determine whether the updated rule is validated according to the contribution value integral of the vote.
Preferably, the nodes include a representative node and a general node; the feedback obtaining unit 30 is specifically configured to:
when the node type is a representative node, sending the rule updating request to other representative nodes, and receiving feedback of other representative nodes to the rule updating request;
and when the feedback indicates that the ratio of the number of the representative nodes which agree with the rule updating request to the number of all the representative nodes is larger than a first preset ratio, indicating that the feedback meets the preset requirement.
Preferably, when the node type is a common node, the rule updating request is sent to all nodes, and feedback of other nodes to the rule updating request is received;
and when the feedback indicates that the number of the nodes which agree with the rule updating request reaches a second preset proportion of all the nodes, the feedback indicates that the feedback meets a preset requirement, and the rule updating request is sent to the representative node so that the representative node sends the rule updating request to all the nodes of the block chain network for voting.
Preferably, the preset threshold is 2/3, and the time limit of the commissioning timer is 60 days.
Preferably, the validation judging unit 60 is specifically configured to:
after the timing reaches the preset time, acquiring all contribution value integrals and the contribution value integrals of the nodes which agree with the rule updating request;
when the ratio of the contribution value integral to the total contribution value integral is greater than 2/3, the updated rule is determined to be in effect, otherwise the updated rule is determined not to be in effect.
The embodiment of the present invention further provides a block chain link point, which includes a memory and a processor, where the memory stores executable codes, and the executable codes can be executed by the processor to implement the above method for updating the rule of the block chain.
Referring to fig. 3, an embodiment of the present invention further provides a blockchain network, including: a plurality of nodes formed by connecting through a P2P network, for respectively storing blocks including recording data, and linking the blocks to form a block chain; the plurality of nodes comprise at least one representative node and at least one common node; wherein:
the representative node is used for initiating a rule updating request and sending the rule updating request to other representative nodes;
the representative node is further configured to obtain feedback of the representative node receiving the rule update request on the rule update request, and submit the rule update request to all nodes of the blockchain network when the feedback meets a preset requirement, so as to obtain an approval rate of all nodes on the rule update request; when the approval rate is greater than a preset threshold value, the block chain network updates the rule to the block chain, starts trial operation timing, and votes according to the contribution value integral of the node in the trial operation period after the timing reaches the preset time, so as to determine whether the updated rule is effective according to the voted contribution value integral.
Preferably, the common node is configured to initiate a rule update request and send the rule update request to all nodes;
the common node is further configured to obtain feedback of the node receiving the rule update request on the rule update request, and when the feedback meets a preset requirement, submit the rule update request to a representative node, so that the representative node sends the rule update request to all nodes of the block link network to obtain an approval rate of all nodes on the rule update request; when the approval rate is greater than a preset threshold value, the block chain network updates the rule to the block chain, starts trial operation timing, and votes according to the contribution value integral of the node in the trial operation period after the timing reaches the preset time, so as to determine whether the updated rule is effective according to the voted contribution value integral.
While the invention has been described with reference to a preferred embodiment, it will be understood by those skilled in the art that various changes in form and detail may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.

Claims (6)

1. A method for updating rules of a blockchain, comprising:
when receiving an initiated rule updating request, acquiring the type of a current node;
sending the rule updating request to a preset node according to the type of the node;
obtaining feedback of the node receiving the rule updating request on the rule updating request, and judging whether the feedback meets a preset requirement;
when the feedback meets a preset requirement, submitting the rule updating request to all nodes of a block chain network so as to acquire the approval rate of all nodes to the rule updating request;
when the approval rate is larger than a preset threshold value, updating a rule to the block chain, and starting trial operation timing;
after the timing reaches the preset time, voting is carried out according to the contribution value integral of the node in the trial operation period, and whether the updated rule is effective or not is determined according to the contribution value integral of the voting; the nodes comprise a representative node and a common node; sending the rule updating request to a preset node according to the type of the node, acquiring feedback of the node receiving the rule updating request to the rule updating request, and judging whether the feedback meets a preset requirement, specifically:
when the node type is a representative node, sending the rule updating request to other representative nodes, and receiving feedback of other representative nodes to the rule updating request;
when the feedback indicates that the ratio of the number of the representative nodes which agree with the rule updating request to the number of all the representative nodes is larger than a first preset ratio, the feedback is in accordance with a preset requirement; when the node type is a common node, sending the rule updating request to all nodes, and receiving feedback of other nodes to the rule updating request;
and when the feedback indicates that the number of the nodes which agree with the rule updating request reaches a second preset proportion of all the nodes, the feedback indicates that the feedback meets a preset requirement, and the rule updating request is sent to the representative node so that the representative node sends the rule updating request to all the nodes of the block chain network for voting.
2. The method for updating the rules of the blockchain according to claim 1, wherein the preset threshold is 2/3, and the time limit of the commissioning timer is 60 days.
3. The method for updating the rules of the block chain according to claim 1, wherein after the timing reaches the preset time, voting is performed according to the contribution value integral of the node during the commissioning, and whether the updated rule is effective is determined according to the contribution value integral of the voting specifically:
after the timing reaches the preset time, acquiring all contribution value integrals and the contribution value integrals of the nodes which agree with the rule updating request;
when the ratio of the contribution value integral to the total contribution value integral is greater than 2/3, the updated rule is determined to be in effect, otherwise the updated rule is determined not to be in effect.
4. An apparatus for updating rules of a blockchain, comprising:
a rule update request unit, configured to obtain a type of a current node when an initiated rule update request is received;
a rule update request sending unit, configured to send the rule update request to a preset node according to the type of the node;
the feedback acquisition unit is used for acquiring feedback of the node receiving the rule updating request on the rule updating request and judging whether the feedback meets the preset requirement;
the nodes comprise a representative node and a common node; the feedback obtaining unit is specifically configured to:
when the node type is a representative node, sending the rule updating request to other representative nodes, and receiving feedback of other representative nodes to the rule updating request;
when the feedback indicates that the ratio of the number of the representative nodes which agree with the rule updating request to the number of all the representative nodes is larger than a first preset ratio, the feedback is indicated to meet the preset requirement;
when the node type is a common node, the rule updating request is sent to all nodes, and feedback of other nodes to the rule updating request is received;
when the feedback indicates that the number of the nodes which agree with the rule updating request reaches a second preset proportion of all the nodes, the feedback indicates that the feedback meets a preset requirement, the rule updating request is sent to the representative node, and the representative node sends the rule updating request to all the nodes of the block chain network for voting;
a rule update request submitting unit, configured to submit the rule update request to all nodes of a blockchain network when the feedback meets a preset requirement, so as to obtain an approval rate of all nodes for the rule update request;
the trial operation unit is used for updating a rule to the block chain and starting trial operation timing when the approval rate is greater than a preset threshold value;
and the validation judging unit is used for voting according to the contribution value integral of the node in the trial operation period after the timing reaches the preset time, and determining whether the updated rule is valid according to the contribution value integral of the voting.
5. A block link point comprising a memory and a processor, the memory having stored therein executable code executable by the processor to implement the method of rule updating a block chain according to any one of claims 1 to 3.
6. A blockchain network, comprising: a plurality of nodes formed by connecting through a P2P network, for respectively storing blocks including recording data, and linking the blocks to form a block chain; the plurality of nodes comprise at least one representative node and at least one common node; wherein:
the representative node is used for initiating a rule updating request and sending the rule updating request to other representative nodes;
the representative node is further configured to obtain feedback of the representative node receiving the rule update request on the rule update request, and submit the rule update request to all nodes of the blockchain network when the feedback meets a preset requirement, so as to obtain an approval rate of all nodes on the rule update request; when the approval rate is greater than a preset threshold value, the block chain network updates the rule to the block chain, starts trial operation timing, and votes according to the contribution value integral of the node in the trial operation period after the timing reaches the preset time, so as to determine whether the updated rule is effective according to the voted contribution value integral;
the common node is used for initiating a rule updating request and sending the rule updating request to all nodes;
the common node is further configured to obtain feedback of the node receiving the rule update request on the rule update request, and when the feedback meets a preset requirement, submit the rule update request to a representative node, so that the representative node sends the rule update request to all nodes of the block link network to obtain an approval rate of all nodes on the rule update request; when the approval rate is greater than a preset threshold value, the block chain network updates the rule to the block chain, starts trial operation timing, and votes according to the contribution value integral of the node in the trial operation period after the timing reaches the preset time, so as to determine whether the updated rule is effective according to the voted contribution value integral.
CN201910506202.6A 2019-06-12 2019-06-12 Rule updating method and device for block chain, block chain node and network Active CN110298641B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910506202.6A CN110298641B (en) 2019-06-12 2019-06-12 Rule updating method and device for block chain, block chain node and network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910506202.6A CN110298641B (en) 2019-06-12 2019-06-12 Rule updating method and device for block chain, block chain node and network

Publications (2)

Publication Number Publication Date
CN110298641A CN110298641A (en) 2019-10-01
CN110298641B true CN110298641B (en) 2022-08-05

Family

ID=68027864

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910506202.6A Active CN110298641B (en) 2019-06-12 2019-06-12 Rule updating method and device for block chain, block chain node and network

Country Status (1)

Country Link
CN (1) CN110298641B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111182527B (en) * 2019-12-27 2022-07-26 深圳市云伽智能技术有限公司 OTA (over the air) firmware upgrading method and device, terminal equipment and storage medium thereof
CN111401900A (en) * 2020-03-20 2020-07-10 深圳市网心科技有限公司 Block chain verifier updating method, device, equipment and readable storage medium
CN111475577B (en) * 2020-04-21 2022-09-02 北京联合永道软件股份有限公司 Uplink voting method and system for intelligent contract in credit union chain
CN112765264A (en) * 2020-12-29 2021-05-07 中国人寿保险股份有限公司上海数据中心 Block chain intelligent contract-based uplink voting control method
WO2022240352A1 (en) * 2021-05-14 2022-11-17 Rz Capital Holding Ab Method and apparatus for handling policies in a communications network using blockchains

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7558883B1 (en) * 2002-06-28 2009-07-07 Microsoft Corporation Fast transaction commit
CN106204287A (en) * 2016-07-18 2016-12-07 上海仲托网络科技有限公司 Mutual insurance based on block chain and help each other guarantee operation method and system
CN108256859A (en) * 2018-01-02 2018-07-06 中国工商银行股份有限公司 Financial product transaction common recognition method, node and system based on block chain
CN108958787A (en) * 2018-06-25 2018-12-07 百度在线网络技术(北京)有限公司 Block catenary system upgrade method, device, equipment and storage medium
CN109165945A (en) * 2018-09-07 2019-01-08 腾讯科技(深圳)有限公司 Represent node device electoral machinery, device, computer equipment and storage medium
CN109447810A (en) * 2018-11-29 2019-03-08 杭州秘猿科技有限公司 Parallel block chain common recognition method, system, electronic equipment and computer readable storage medium
CN109784885A (en) * 2018-12-29 2019-05-21 杨鉴 A kind of block chain ballot common recognition method and system based on equity
CN109814905A (en) * 2019-01-17 2019-05-28 上海边界智能科技有限公司 A kind of method for upgrading software and device based on block chain

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7558883B1 (en) * 2002-06-28 2009-07-07 Microsoft Corporation Fast transaction commit
CN106204287A (en) * 2016-07-18 2016-12-07 上海仲托网络科技有限公司 Mutual insurance based on block chain and help each other guarantee operation method and system
CN108256859A (en) * 2018-01-02 2018-07-06 中国工商银行股份有限公司 Financial product transaction common recognition method, node and system based on block chain
CN108958787A (en) * 2018-06-25 2018-12-07 百度在线网络技术(北京)有限公司 Block catenary system upgrade method, device, equipment and storage medium
CN109165945A (en) * 2018-09-07 2019-01-08 腾讯科技(深圳)有限公司 Represent node device electoral machinery, device, computer equipment and storage medium
CN109447810A (en) * 2018-11-29 2019-03-08 杭州秘猿科技有限公司 Parallel block chain common recognition method, system, electronic equipment and computer readable storage medium
CN109784885A (en) * 2018-12-29 2019-05-21 杨鉴 A kind of block chain ballot common recognition method and system based on equity
CN109814905A (en) * 2019-01-17 2019-05-28 上海边界智能科技有限公司 A kind of method for upgrading software and device based on block chain

Also Published As

Publication number Publication date
CN110298641A (en) 2019-10-01

Similar Documents

Publication Publication Date Title
CN110298641B (en) Rule updating method and device for block chain, block chain node and network
JP6986519B2 (en) Distributed transaction propagation and validation system
Li et al. Proof of vote: A high-performance consensus protocol based on vote mechanism & consortium blockchain
US11836720B2 (en) Infinitely scalable cryptocurrency system with fast, secure verification
US11669811B2 (en) Blockchain-based digital token utilization
US20220092593A1 (en) Methods and Devices for Recording Work History and Proving Reputation in a Blockchain Network
EP3419210A1 (en) Method for generating a transaction of a blockchain and method for validating a block of a blockchain
Racsko Blockchain and democracy
KR20190093012A (en) The method for block generation and validation in block-chain system
CN110310115A (en) A method of realizing that distributed account book is extending transversely based on fragment mechanism
CN112801778B (en) Alliance type bad asset block chain system
EP3966769A1 (en) Methods and devices for registering and authenticating miner identity in a blockchain network
JP2020536473A (en) Message trust blockchain
CN106920097A (en) A kind of generation time block chain method of Quantum Chain common recognition agreement
CN112651830A (en) Block chain consensus method applied to power resource sharing network
CN111131298A (en) POC (Point of sale) efficient consensus mechanism based on credit decentralization and implementation method
Chaumont et al. DPoPS: Delegated Proof-of-Private-Stake, a DPoS implementation under X-Cash, a Monero based hybrid-privacy coin
KR102262047B1 (en) Prize-winning event management system using blockchain network and method thereof
TWM586416U (en) Implementing a multi-center, distributed verification system for transactions based on blockchain technology
Masood et al. Consensus algorithms in distributed ledger technology for open environment
JP2021507629A (en) Blockchain with high speed and split resistance
CN110889793A (en) Block chain-based digital lottery issuing method and block chain link points
Byers Combating Front-Running in the Blockchain Ecosystem
Guo Cypherium: a scalable and permissionless smart contract platform
Arora et al. Blockchain Based Voting Decentralized Application

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