[go: up one dir, main page]

CN111046055A - A method, device and storage medium for changing the global configuration of a blockchain - Google Patents

A method, device and storage medium for changing the global configuration of a blockchain Download PDF

Info

Publication number
CN111046055A
CN111046055A CN201911268807.2A CN201911268807A CN111046055A CN 111046055 A CN111046055 A CN 111046055A CN 201911268807 A CN201911268807 A CN 201911268807A CN 111046055 A CN111046055 A CN 111046055A
Authority
CN
China
Prior art keywords
configuration
transaction
change
configuration change
information
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.)
Pending
Application number
CN201911268807.2A
Other languages
Chinese (zh)
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.)
Hangzhou Qulian Technology Co Ltd
Original Assignee
Hangzhou Qulian 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 Hangzhou Qulian Technology Co Ltd filed Critical Hangzhou Qulian Technology Co Ltd
Priority to CN201911268807.2A priority Critical patent/CN111046055A/en
Publication of CN111046055A publication Critical patent/CN111046055A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/23Updating
    • G06F16/2308Concurrency control
    • G06F16/2315Optimistic concurrency control
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/23Updating
    • G06F16/2358Change logging, detection, and notification
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

本发明提供一种区块链全局配置的变更方法、设备和存储介质,该方法包括:验证配置变更交易的可执行性,验证成功后向共识模块发送交易阻塞请求以避免继续接收各第二交易;第二交易为非配置变更的交易;执行配置变更交易以供将区块链系统的配置文件根据第一配置文件变更;向共识模块发送交易阻塞解除请求以继续接收并处理各第二交易。本发明各节点在验证完以后执行配置变更交易,并利用配置变更管理器将全局配置文件进行变更,可以在个节点运行过程中就把区块链系统的全局配置文件改变。

Figure 201911268807

The present invention provides a method, device and storage medium for changing the global configuration of a blockchain. The method includes: verifying the executable configuration change transaction, and after the verification is successful, sending a transaction blocking request to a consensus module to avoid continuing to receive each second transaction ; the second transaction is a non-configuration change transaction; execute a configuration change transaction for changing the configuration file of the blockchain system according to the first configuration file; send a transaction blocking release request to the consensus module to continue to receive and process each second transaction. In the present invention, each node executes the configuration change transaction after verification, and uses the configuration change manager to change the global configuration file, so that the global configuration file of the blockchain system can be changed during the operation of each node.

Figure 201911268807

Description

Block chain global configuration changing method, equipment and storage medium
Technical Field
The present application relates to the field of blockchain technologies, and in particular, to a method, a device, and a storage medium for changing global configuration of a blockchain.
Background
The blockchain technology utilizes the characteristics of distributed storage to realize the decentralized characteristic, however, in the actual operation process of the blockchain system, the configuration file of the blockchain system is usually unchangeable, and in the prior art, each node and the whole blockchain network need to be configured before starting, the network needs to rely on global configuration information to initialize and start each module in the starting process, and the blockchain network can be normally started only when the global configuration information of each node is consistent. After the completion of the start-up of the blockchain network, it becomes extremely difficult to change the global configuration of the blockchain. If some blockchain platforms need to modify the configuration, each node needs to be stopped first, then the configuration file of each node is modified, and then each node is restarted together, so that the configuration can be modified. The modification has the problems that each node needs to be stopped and restarted, and an administrator of each node needs to cooperate, and if the configuration file of some nodes is different from that of other nodes, the restart of the whole block chain network can fail, and consensus cannot be achieved.
Disclosure of Invention
In view of the above-mentioned drawbacks and deficiencies of the prior art, it is desirable to provide a method, apparatus, and storage medium for changing a global configuration of a blockchain that is convenient and fast and does not require a reboot of the blockchain network.
In a first aspect, the present invention provides a method for changing global configuration of a blockchain, where a node executing the method subscribes to a configuration change management service, and the method includes:
receiving configuration change transaction sent by a first user; the configuration file change transaction comprises first configuration file information used for updating;
verifying the performability of the configuration change transaction, and sending a transaction blocking request to the consensus module after the verification is successful so as to avoid continuously receiving each second transaction; the second transaction is a transaction of non-configuration change;
executing a configuration change transaction for changing the configuration file of the blockchain system according to the first configuration file;
and sending a transaction blockage removal request to the consensus module to continuously receive and process each second transaction.
Further, the first configuration file information includes operation identification information, and the operation identification information is used for identifying the configuration change operation.
Further, configuring an authority list, wherein user information which has authority to initiate configuration change transaction is recorded in the authority list; verifying performability of a configuration change transaction, comprising:
and acquiring a current authority list, and judging whether the first user is in the authority list, if so, the user authority passes the verification.
Further, before the first user sends the configuration change transaction, it is also necessary to send configuration change proposal information to each node for voting, and each node makes a conclusion of passing or failing to pass the configuration change proposal voting, and the executable method for verifying the configuration change transaction further includes:
after the user authority passes verification, inquiring configuration change proposal information according to the operation identification information, if the configuration change proposal information is null, returning that the proposal does not exist, and if the configuration change proposal information is not null, continuously judging the configuration change proposal state: and if the state is passed, acquiring the first configuration file information from the proposal, and carrying out validity check on the first configuration file information.
Further, the validity check of the first configuration file information includes: and verifying whether the necessary parameters exist or not, and if so, checking the correctness of the values of the parameters.
Further, performing a configuration change transaction for changing the configuration file of the blockchain system according to the first configuration file comprises:
verifying configuration change transaction performability;
and judging the change operation type of the configuration change according to the first configuration file, and executing corresponding change operation according to the change operation type.
Further, verifying the performability of the configuration change transaction includes:
determining whether the account balance of the first user is sufficient:
if yes, acquiring detailed configuration information from the acquired configuration change proposal information, carrying out validity check on the detailed configuration information, and recording the current world state and configuration parameters if the check is passed.
Further, the determining a change operation type of the configuration change according to the first configuration file, and executing a corresponding change operation according to the change operation type includes:
judging whether the change operation type is the change of the global configuration of the block chain system, if so, using a configuration change manager to acquire a callback function list subscribed with change parameters from the subscription list, and then synchronously executing the callback function;
if not, judging whether the change operation type is the change of the administrator list, and if so, synchronously updating the administrator list after the change into the authority list according to the first configuration file.
In a second aspect, the present invention also provides an apparatus comprising one or more processors and a memory, wherein the memory contains instructions executable by the one or more processors to cause the one or more processors to perform the method of changing a global configuration of a blockchain provided according to embodiments of the present invention.
In a third aspect, the present invention further provides a storage medium storing a computer program, where the computer program makes a computer execute the method for changing the global configuration of the blockchain according to the embodiments of the present invention.
The method, the device and the storage medium for changing the global configuration of the blockchain provided by the embodiments of the invention monitor the configuration file at any time by subscribing the configuration change service, when the configuration file is sent out in a transaction form, each node executes the configuration change transaction after verification is finished, and the global configuration file is changed by using the configuration change manager, so that the global configuration file of the blockchain system can be changed in the running process of each node.
In some embodiments of the present invention, the method, the device, and the storage medium for changing the global configuration of the block chain further send configuration change proposal information before sending the configuration change transaction, and after each node receives the proposal information, make a decision on whether to pass or not to pass the proposal, so as to ensure that whether to change the configuration is no longer determined by one or more users, and thus the method, the device, and the storage medium are more fair and fair.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
fig. 1 is a flowchart of a method for changing a global configuration of a block chain according to an embodiment of the present invention.
Fig. 2 is a flowchart of a subscription change service according to an embodiment of the present invention.
FIG. 3 is a flow diagram of a preferred embodiment of the method shown in FIG. 1.
FIG. 4 is a flow chart of a preferred embodiment of the method shown in FIG. 3.
Fig. 5 is a schematic structural diagram of an apparatus according to an embodiment of the present invention.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the present invention are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
Fig. 1 is a flowchart of a method for changing a global configuration of a block chain according to an embodiment of the present invention.
As shown in fig. 1, in this embodiment, the present invention provides a method for changing a global configuration of a blockchain, where a node executing the method subscribes to a configuration change management service, and the method includes:
s11, receiving a configuration change transaction sent by a first user; the configuration file change transaction comprises first configuration file information used for updating;
s12, verifying the performability of the configuration change transaction, and sending a transaction blocking request to the consensus module after the verification is successful so as to avoid continuously receiving each second transaction; the second transaction is a transaction of non-configuration change;
s13, executing configuration change transaction to change the configuration file of the blockchain system according to the first configuration file;
and S14, sending a transaction blocking removal request to the consensus module to continuously receive and process each second transaction.
Specifically, each module that needs to monitor the configuration change calls the configuration change service provided by the configuration change manager, and passes in the path of the configuration parameter to be monitored by the current module, and a synchronous callback function callback for performing the configuration change, thereby completing the subscription function of the configuration change (as shown in fig. 2).
If the current node is restarted after being down, the persistence message stores previous data, if the data contains previous configuration information, the configuration information in the persistence is synchronized into the configuration module, and if the current node is a new node or the data does not contain the previous configuration information, other modules are directly updated according to the configuration module.
The blockchain node receives a configuration change transaction sent by a first user, wherein the configuration change transaction contains first configuration file information used for updating, such as from: address1 of initiator, to: and acquiring the address2 of the configuration file, wherein the parameter x is used for judging that the transaction is the transaction for executing the configuration change operation type. The amount transferred from to and the corresponding signature information may also be included. After receiving the configuration change transaction, verifying the performability of the configuration transaction, and sending a transaction blocking request to the consensus module after the verification is successful, wherein the consensus module does not receive other transactions except the configuration change transaction, such as transfer transactions and the like, after receiving the transaction blocking request. After the blocking request is successfully sent, the consensus module judges whether the current transaction is the transaction type of the configuration change, if so, the transaction is packaged into a block, and after the block transaction is executed by the executor, the configuration file is changed after the corresponding change information is acquired according to the first configuration change file. After the profile change is finished, a transaction blocking removal request needs to be sent to the consensus module so that the consensus module can continue to receive the second transaction. Furthermore, in step S11, the first user may send the configuration change transaction to the node through a certain client, or may directly send the configuration change transaction to the node without directly invoking an interface exposed by the node through the client
In a preferred embodiment, the first profile information further includes operation identification information, the operation identification information is used for identifying a configuration change operation, and the node can identify that the transaction is of a type used for configuration change and not of other types, such as for indicating proposal voting and the like, according to the operation identification information.
In a preferred embodiment, the system is also provided with an authority list, and user information which has the authority to initiate configuration change transaction is recorded in the authority list; verifying the performability of the configuration change transaction in step S12 includes:
s121, acquiring the authority list, and judging whether the first user is in the authority list, wherein if the first user is in the authority list, the user authority passes verification.
Specifically, an authority list is set in the node interceptor, information of each user authorized to initiate configuration change transaction is recorded in the list, after the node receives the configuration change transaction, relevant information of the initiator is obtained according to from in the first configuration change file, so that whether the initiator is in the authority list or not is judged, if yes, the user is proved to have authority to initiate the configuration change transaction, and the configuration change transaction enters the next link.
FIG. 3 is a flow diagram of a preferred embodiment of the method shown in FIG. 1. As shown in FIG. 2, in a preferred embodiment
There is also a need for, before the first user sends the configuration change transaction:
s10, first sending the configuration change proposal information to each node for voting, and each node making a pass or fail conclusion for the configuration change proposal voting, wherein the executable method for verifying the configuration change transaction further includes:
s122, after the user authority passes verification, inquiring configuration change proposal information according to the operation identification information, if the configuration change proposal information is empty, returning that the proposal does not exist, and if the configuration change proposal information is not empty, continuously judging the configuration change proposal state: and if the state is passed, acquiring the first configuration file information from the proposal, and carrying out validity check on the first configuration file information.
Specifically, the subscription change management service further includes a subscription proposal information service so that the user is informed of the status of the proposal. The first user sends configuration change proposal information before sending configuration change transaction, each node monitors the configuration change proposal information through subscription service, determines whether the proposal information is passed, and sends feedback information for the user to know voting result. After the voting function is added, after the user authority passes verification, it is further needed to verify whether the proposal information passes, specifically, the change proposal information can be queried through to in the first configuration file, if the query result is empty, it is indicated that the proposal information is not initiated by the user terminal in the earlier stage, the absence of the proposal is returned, and the next link is not performed, if the query result is not empty, it is continuously determined whether the proposal state passes, if not, it is indicated that the node participating in voting does not accept the change configuration file, a proposal error and a proposal state are returned, and the next link is not performed. If the proposal state is passed, further acquiring the validity of the specific parameters under the proposal information, for example, checking whether some necessary parameters are contained or not, or checking whether the values of the parameters meet the set rules or not, and the like, if the validity checks are different, the next link is not entered, that is, the transaction blocking request is sent to the consensus module. The above-mentioned necessary parameters are, for example: the parameter value of the transaction number for configuring block packing in the consensus module must be a positive integer, and the parameter value for configuring a consensus algorithm must exist, cannot be lacked or deleted, and the like.
FIG. 4 is a flow chart of a preferred embodiment of the method shown in FIG. 3. As shown in fig. 4, in the present embodiment, the executing of the configuration change transaction in step S13 for changing the configuration file of the blockchain system according to the first configuration file includes:
s131, verifying the performability of the configuration change transaction;
s132, judging the change operation type of the configuration change according to the first configuration file, and executing corresponding change operation according to the change operation type.
Specifically, in the consensus module, if the current consensus transaction type is found to be the configuration change transaction type, the configuration change transaction is packaged into a block to be executed by the executor. After receiving the configuration change transaction, the executor first judges the performability of the current change transaction, and after judging that the current change transaction is executable, acquires the operation type of the configuration change, and selects the corresponding operation to perform the configuration change according to the specific operation type.
Preferably, verifying the performability of the configuration change transaction comprises:
determining whether the account balance of the first user is sufficient:
if yes, acquiring detailed configuration information from the acquired configuration change proposal information, carrying out validity check on the detailed configuration information, and recording the current world state and the configuration parameters if the check is passed, wherein the world state is the final state of each account after the transaction in the current block chain account book is completed.
Further, the determining the performability of the altered transaction may be determining whether the transaction type of the transaction satisfies a predetermined condition, or determining whether the parameter setting of the transaction is correct, or the like. And after the performability verification is successful, obtaining proposal information of configuration change from to in the first configuration file information, obtaining detailed configuration information from the proposal information, judging the legality of the configuration information, and recording the current world state and the configuration parameters if the verification is passed.
In further embodiments, determining a change operation type of the configuration change according to the first configuration file, and executing a corresponding change operation according to the change operation type includes:
s1321, judging whether the change operation type is the change of the global configuration of the block chain system, if so, using a configuration change manager to acquire a callback function list subscribed with change parameters from the subscription list, and then synchronously executing the callback function;
if not, judging whether the change operation type is the change of the administrator list, and if so, synchronously updating the administrator list after the change into the authority list according to the first configuration file.
Specifically, when the configuration change is executed, the transfer operation is executed first, and the corresponding amount is transferred from the initiator account to the to account. After the transfer is finished, obtaining the configuration information used by the current block chain network, comparing the modified configuration information with the currently used configuration information to obtain the difference between the two pieces of configuration information, and synchronously storing the difference of the configuration information into a configuration module. If the difference of the configuration information comprises the change of the global configuration of the block chain, a configuration change manager is used for acquiring a callback function list subscribed with change parameters from the subscription list, then synchronously executing the callback function, and if the execution is successful, returning to the success; and if the execution fails, corresponding error information is returned. If the difference of the configuration information comprises permission change, if the administrator list is changed, the changed administrator list is synchronously updated to the permission list of the interceptor, and if the synchronization is successful, the success is returned; and if the synchronization fails, corresponding error information is returned. If error information occurs in the configuration change process, restoring the world state and the configuration information to the state before the configuration change is executed, and then returning the response error information; and if the execution is successful, the modified configuration information, the configuration transaction information and the packed block are stored in the memory.
Fig. 5 is a schematic structural diagram of an apparatus according to an embodiment of the present invention.
As shown in fig. 5, as another aspect, the present application also provides an apparatus 500 including one or more Central Processing Units (CPUs) 501 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)502 or a program loaded from a storage section 508 into a Random Access Memory (RAM) 503. In the RAM503, various programs and data necessary for the operation of the apparatus 500 are also stored. The CPU501, ROM502, and RAM503 are connected to each other via a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
The following components are connected to the I/O interface 505: an input portion 506 including a keyboard, a mouse, and the like; an output portion 507 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage portion 508 including a hard disk and the like; and a communication section 509 including a network interface card such as a LAN card, a modem, or the like. The communication section 509 performs communication processing via a network such as the internet. The driver 510 is also connected to the I/O interface 505 as necessary. A removable medium 511 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 510 as necessary, so that a computer program read out therefrom is mounted into the storage section 508 as necessary.
In particular, according to an embodiment of the present disclosure, the change method of global configuration of the blockchain described in any of the above embodiments may be implemented as a computer software program. For example, embodiments of the present disclosure include a computer program product comprising a computer program tangibly embodied on a machine-readable medium, the computer program comprising program code for performing a method of changing a global configuration of a blockchain. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 509, and/or installed from the removable medium 511.
As yet another aspect, the present application also provides a computer-readable storage medium, which may be the computer-readable storage medium included in the apparatus of the above-described embodiment; or it may be a separate computer readable storage medium not incorporated into the device. The computer readable storage medium stores one or more programs for use by one or more processors in performing the method of changing global configuration of blockchains described herein.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units or modules described in the embodiments of the present application may be implemented by software or hardware. The described units or modules may also be provided in a processor, for example, each of the described units may be a software program provided in a computer or a mobile intelligent device, or may be a separately configured hardware device. Wherein the designation of a unit or module does not in some way constitute a limitation of the unit or module itself.
The above description is only a preferred embodiment of the application and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention herein disclosed is not limited to the particular combination of features described above, but also encompasses other arrangements formed by any combination of the above features or their equivalents without departing from the spirit of the present application. For example, the above features may be replaced with (but not limited to) features having similar functions disclosed in the present application.

Claims (10)

1.一种区块链全局配置的变更方法,其特征在于,执行所述方法的节点订阅配置变更管理服务,包括:1. A method for changing the global configuration of a blockchain, characterized in that a node executing the method subscribes to a configuration change management service, comprising: 接收第一用户发送的配置变更交易;所述配置文件变更交易中包括用于更新的第一配置文件信息;Receive a configuration change transaction sent by the first user; the configuration file change transaction includes first configuration file information for updating; 验证所述配置变更交易的可执行性,验证成功后向共识单元发送交易阻塞请求以避免继续接收各第二交易;所述第二交易为非配置变更的交易;Verifying the execution of the configuration change transaction, and sending a transaction blocking request to the consensus unit after the verification is successful to avoid continuing to receive each second transaction; the second transaction is a transaction that is not a configuration change; 执行所述配置变更交易以供将区块链系统的配置文件根据所述第一配置文件变更;executing the configuration change transaction for changing the configuration file of the blockchain system according to the first configuration file; 向所述共识单元发送交易阻塞解除请求以继续接收并处理各所述第二交易。A transaction blocking release request is sent to the consensus unit to continue receiving and processing each of the second transactions. 2.根据权利要求1所述的方法,其特征在于,所述第一配置文件信息包括操作标识信息,所述操作标识信息用于识别配置变更操作。2 . The method according to claim 1 , wherein the first configuration file information includes operation identification information, and the operation identification information is used to identify a configuration change operation. 3 . 3.根据权利要求2所述的方法,其特征在于,配置有权限列表,所述权限列表中记录了有权限发起配置变更交易的用户信息;所述验证所述配置变更交易的可执行性,包括:3. The method according to claim 2, wherein a permission list is configured, and the information of users who have permission to initiate a configuration change transaction is recorded in the permission list; the verification of the executable of the configuration change transaction, include: 获取所述权限列表,判断所述第一用户是否在所述权限列表中,是,则用户权限验证通过。Obtain the permission list, and determine whether the first user is in the permission list. If yes, the user permission verification is passed. 4.根据权力要求3所述的方法,其特征在于,在第一用户发送配置变更交易之前还需要先发送配置变更提案信息给各节点投票,各节点对于该配置变更提案投票做出通过或不通过的结论,所述验证所述配置变更交易的可执行性方法还包括:4. The method according to claim 3, wherein before the first user sends the configuration change transaction, it is also necessary to send configuration change proposal information to each node for voting, and each node votes for the configuration change proposal to approve or not. Through the conclusion, the method for verifying the executable of the configuration change transaction further includes: 用户权限验证通过后,根据所述操作标识信息查询到配置变更提案信息,若配置变更提案信息为空,则返回提案不存在,如果配置变更提案信息不为空,则继续判断所述配置变更提案状态:若状态为通过,则从提案中获取所述第一配置文件信息,并对所述第一配置文件信息进行合法性校验。After the user authority verification is passed, the configuration change proposal information is queried according to the operation identification information. If the configuration change proposal information is empty, it returns that the proposal does not exist. If the configuration change proposal information is not empty, the configuration change proposal continues to be judged Status: If the status is passed, the first configuration file information is obtained from the proposal, and the validity of the first configuration file information is checked. 5.根据权利要求4所述的方法,其特征在于,所述对所述第一配置文件信息进行合法性校验包括:验证必需的参数是否存在,若存在,则校验所述参数的值的正确性。5. The method according to claim 4, wherein the verifying the validity of the first configuration file information comprises: verifying whether a required parameter exists, and if it exists, verifying the value of the parameter correctness. 6.根据权利要求4或5所述的方法,其特征在于,所述执行所述配置变更交易以供将区块链系统的配置文件根据所述第一配置文件变更包括:The method according to claim 4 or 5, wherein the executing the configuration change transaction for changing the configuration file of the blockchain system according to the first configuration file comprises: 验证所述配置变更交易可执行性;verifying the enforceability of the configuration change transaction; 根据所述第一配置文件判断配置变更的变更操作类型,并根据变更操作类型执行相应的变更操作。The modification operation type of the configuration change is determined according to the first configuration file, and the corresponding modification operation is performed according to the modification operation type. 7.根据权利要求6所述的方法,其特征在于,所述验证所述配置变更交易的可执行性包括:7. The method according to claim 6, wherein the verifying the executable configuration change transaction comprises: 判断第一用户的账户余额是否足够:Determine whether the account balance of the first user is sufficient: 是,则从获取配置变更提案信息中获取详细的配置信息,对所述详细的配置信息进行合法性校验,如果校验通过,则记录下当前的世界状态及配置参数。If yes, obtain detailed configuration information from the obtained configuration change proposal information, and verify the validity of the detailed configuration information. If the verification is passed, the current world state and configuration parameters are recorded. 8.根据权利要求7所述的方法,所述根据所述第一配置文件判断配置变更的变更操作类型,并根据变更操作类型执行相应的变更操作包括:8 . The method according to claim 7 , wherein determining the change operation type of the configuration change according to the first configuration file, and performing the corresponding change operation according to the change operation type comprises: 8 . 判断变更操作类型是否为对区块链系统全局配置的变更,若是,则使用配置变更管理器,从订阅列表中获取订阅了变更参数的回调函数列表,然后同步的执行回调函数;Determine whether the change operation type is a change to the global configuration of the blockchain system. If so, use the configuration change manager to obtain the list of callback functions subscribed to the changed parameters from the subscription list, and then execute the callback function synchronously; 否,则判断变更操作类型是否为管理员列表的变更,是,则根据所述第一配置文件将变更之后的管理员列表同步更新到所述权限列表中。If not, it is judged whether the change operation type is the change of the administrator list, and if yes, the changed administrator list is synchronously updated to the permission list according to the first configuration file. 9.一种设备,其特征在于,所述设备包括:9. A device, characterized in that the device comprises: 一个或多个处理器;one or more processors; 存储器,用于存储一个或多个程序,memory for storing one or more programs, 当所述一个或多个程序被所述一个或多个处理器执行时,使得所述一个或多个处理器执行如权利要求1-8中任一项所述的方法。The one or more programs, when executed by the one or more processors, cause the one or more processors to perform the method of any of claims 1-8. 10.一种存储有计算机程序的存储介质,其特征在于,该程序被处理器执行时实现如权利要求1-8中任一项所述的方法。10. A storage medium storing a computer program, characterized in that, when the program is executed by a processor, the method according to any one of claims 1-8 is implemented.
CN201911268807.2A 2019-12-11 2019-12-11 A method, device and storage medium for changing the global configuration of a blockchain Pending CN111046055A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911268807.2A CN111046055A (en) 2019-12-11 2019-12-11 A method, device and storage medium for changing the global configuration of a blockchain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911268807.2A CN111046055A (en) 2019-12-11 2019-12-11 A method, device and storage medium for changing the global configuration of a blockchain

Publications (1)

Publication Number Publication Date
CN111046055A true CN111046055A (en) 2020-04-21

Family

ID=70235769

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911268807.2A Pending CN111046055A (en) 2019-12-11 2019-12-11 A method, device and storage medium for changing the global configuration of a blockchain

Country Status (1)

Country Link
CN (1) CN111046055A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111897826A (en) * 2020-06-27 2020-11-06 中国建设银行股份有限公司 Parameter information updating method, device, electronic device and readable storage medium

Citations (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107464148A (en) * 2017-08-23 2017-12-12 众安信息技术服务有限公司 A kind of intelligent contract upgrade method and system based on alliance's chain
CN107579848A (en) * 2017-08-30 2018-01-12 上海保险交易所股份有限公司 The method that common recognition node is dynamically changed in practical Byzantine failure tolerance common recognition mechanism
US20180039667A1 (en) * 2016-08-05 2018-02-08 Chicago Mercantile Exchange Inc. Systems and methods for blockchain rule synchronization
CN107911421A (en) * 2017-10-30 2018-04-13 上海点融信息科技有限责任公司 For configuring the method for internetwork communication, equipment and computer-readable storage medium in block chain
CN107911373A (en) * 2017-11-24 2018-04-13 中钞信用卡产业发展有限公司杭州区块链技术研究院 A kind of block chain right management method and system
US20180123882A1 (en) * 2016-10-28 2018-05-03 International Business Machines Corporation Changing an existing blockchain trust configuration
CN108365993A (en) * 2018-03-09 2018-08-03 深圳前海微众银行股份有限公司 Block chain link point dynamic altering method, system and computer readable storage medium
CN108683539A (en) * 2018-05-21 2018-10-19 腾讯科技(深圳)有限公司 Management method, device, medium and the electronic equipment of block chain network
CN108881476A (en) * 2018-07-16 2018-11-23 众安信息技术服务有限公司 Block chain dispositions method and system
US20180343175A1 (en) * 2017-05-24 2018-11-29 International Business Machines Corporation Decentralized change management based on peer devices using a blockchain
CN108921694A (en) * 2018-06-21 2018-11-30 北京京东尚科信息技术有限公司 Block chain management method and block chain node and computer readable storage medium
CN109446266A (en) * 2018-09-20 2019-03-08 成都捕风数据科技有限公司 A method of transaction efficiency and stability are improved suitable for block chain network
CN109491682A (en) * 2018-10-24 2019-03-19 杭州趣链科技有限公司 A kind of block catenary system automatically updating method that the permission based on intelligent contract is controllable
CN109634679A (en) * 2018-10-16 2019-04-16 平安科技(深圳)有限公司 Block chain configures update method, device, equipment and storage medium
CN110011978A (en) * 2019-03-08 2019-07-12 阿里巴巴集团控股有限公司 A kind of method and system of modification block chain network configuration
CN110058878A (en) * 2019-04-04 2019-07-26 交通银行股份有限公司 Fabric block chain configuration method and system based on intelligent contract
CN110417843A (en) * 2018-04-30 2019-11-05 慧与发展有限责任合伙企业 System and method for decentralized management of equipment assets external to a computer network
CN110417844A (en) * 2018-04-30 2019-11-05 慧与发展有限责任合伙企业 System and method for decentralized management of multi-owner nodes using blockchain
CN110430087A (en) * 2019-09-16 2019-11-08 上海保险交易所股份有限公司 The architecture design and realization of block chain heat upgrading
CN110427385A (en) * 2019-08-02 2019-11-08 中国工商银行股份有限公司 Block chain data-updating method, interdependent node and block chain
CN110473096A (en) * 2019-07-31 2019-11-19 阿里巴巴集团控股有限公司 Data grant method and device based on intelligent contract
CN110473094A (en) * 2019-07-31 2019-11-19 阿里巴巴集团控股有限公司 Data grant method and device based on block chain
CN110516007A (en) * 2019-08-30 2019-11-29 北京百度网讯科技有限公司 A kind of deployment control method, device, equipment and the medium of block chain network
CN110532006A (en) * 2019-08-21 2019-12-03 杭州趣链科技有限公司 A state machine-based method for upgrading complex configuration files

Patent Citations (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180039667A1 (en) * 2016-08-05 2018-02-08 Chicago Mercantile Exchange Inc. Systems and methods for blockchain rule synchronization
US20180123882A1 (en) * 2016-10-28 2018-05-03 International Business Machines Corporation Changing an existing blockchain trust configuration
US20180343175A1 (en) * 2017-05-24 2018-11-29 International Business Machines Corporation Decentralized change management based on peer devices using a blockchain
CN107464148A (en) * 2017-08-23 2017-12-12 众安信息技术服务有限公司 A kind of intelligent contract upgrade method and system based on alliance's chain
CN107579848A (en) * 2017-08-30 2018-01-12 上海保险交易所股份有限公司 The method that common recognition node is dynamically changed in practical Byzantine failure tolerance common recognition mechanism
CN107911421A (en) * 2017-10-30 2018-04-13 上海点融信息科技有限责任公司 For configuring the method for internetwork communication, equipment and computer-readable storage medium in block chain
CN107911373A (en) * 2017-11-24 2018-04-13 中钞信用卡产业发展有限公司杭州区块链技术研究院 A kind of block chain right management method and system
CN108365993A (en) * 2018-03-09 2018-08-03 深圳前海微众银行股份有限公司 Block chain link point dynamic altering method, system and computer readable storage medium
CN110417843A (en) * 2018-04-30 2019-11-05 慧与发展有限责任合伙企业 System and method for decentralized management of equipment assets external to a computer network
CN110417844A (en) * 2018-04-30 2019-11-05 慧与发展有限责任合伙企业 System and method for decentralized management of multi-owner nodes using blockchain
CN108683539A (en) * 2018-05-21 2018-10-19 腾讯科技(深圳)有限公司 Management method, device, medium and the electronic equipment of block chain network
CN108921694A (en) * 2018-06-21 2018-11-30 北京京东尚科信息技术有限公司 Block chain management method and block chain node and computer readable storage medium
CN108881476A (en) * 2018-07-16 2018-11-23 众安信息技术服务有限公司 Block chain dispositions method and system
CN109446266A (en) * 2018-09-20 2019-03-08 成都捕风数据科技有限公司 A method of transaction efficiency and stability are improved suitable for block chain network
CN109634679A (en) * 2018-10-16 2019-04-16 平安科技(深圳)有限公司 Block chain configures update method, device, equipment and storage medium
CN109491682A (en) * 2018-10-24 2019-03-19 杭州趣链科技有限公司 A kind of block catenary system automatically updating method that the permission based on intelligent contract is controllable
CN110011978A (en) * 2019-03-08 2019-07-12 阿里巴巴集团控股有限公司 A kind of method and system of modification block chain network configuration
CN110058878A (en) * 2019-04-04 2019-07-26 交通银行股份有限公司 Fabric block chain configuration method and system based on intelligent contract
CN110473096A (en) * 2019-07-31 2019-11-19 阿里巴巴集团控股有限公司 Data grant method and device based on intelligent contract
CN110473094A (en) * 2019-07-31 2019-11-19 阿里巴巴集团控股有限公司 Data grant method and device based on block chain
CN110427385A (en) * 2019-08-02 2019-11-08 中国工商银行股份有限公司 Block chain data-updating method, interdependent node and block chain
CN110532006A (en) * 2019-08-21 2019-12-03 杭州趣链科技有限公司 A state machine-based method for upgrading complex configuration files
CN110516007A (en) * 2019-08-30 2019-11-29 北京百度网讯科技有限公司 A kind of deployment control method, device, equipment and the medium of block chain network
CN110430087A (en) * 2019-09-16 2019-11-08 上海保险交易所股份有限公司 The architecture design and realization of block chain heat upgrading

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
徐美强 等: ""基于区块链技术的智能变电站配置版本管理"", 《电力系统保护与控制》, vol. 48, no. 02, pages 60 - 67 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111897826A (en) * 2020-06-27 2020-11-06 中国建设银行股份有限公司 Parameter information updating method, device, electronic device and readable storage medium

Similar Documents

Publication Publication Date Title
CN113541968B (en) Consensus method, device and block chain system
CN106445644B (en) Treating method and apparatus based on the distributed transaction that an improved stage submits
US9705894B2 (en) Method and system for network validation of information
US7487348B2 (en) System for authenticating and screening grid jobs on a computing grid
CN113169952A (en) Container cloud management system based on block chain technology
CN109862102B (en) Distributed data multi-copy concurrency control system, server and method
CN111008206A (en) Storage method, device and storage medium for state data of cross-chain transaction
US20220083656A1 (en) Apparatus and method for tolerating byzantine faults in blockchain platforms
CN114546650A (en) Method and device for upgrading microservice
CN110837505A (en) State data storage method, state data synchronization device and storage medium
CN112817995A (en) Data processing method and device, electronic equipment and storage medium
CN111143041B (en) Data consistency method, distributed coordinator and central coordinator
CN113835780A (en) Incident response method and device
CN113330419B (en) Device application installation method, device, equipment and storage medium
US20240152496A1 (en) Model ml registry and model serving
US11483158B2 (en) Distributed ledger device, distributed ledger system, and distributed ledger management method
CN111046055A (en) A method, device and storage medium for changing the global configuration of a blockchain
EP3811227B1 (en) Methods, devices and systems for non-disruptive upgrades to a distributed coordination engine in a distributed computing environment
CN110263551A (en) A kind of test method and device
CN112148725A (en) Method and device for realizing global unique index
CN112181599B (en) Model training method, device and storage medium
CN118964483A (en) Transaction query method and system based on blockchain network, and electronic device
CN118963653B (en) Volume creation method of Openstack cloud platform based on mimicry defense
CN111581449A (en) Task node execution method and device, computer equipment and medium
CN114781001B (en) Parallel chain verification method, computer device and storage medium

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200421