[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN110222535A - Processing unit, method and the storage medium of block chain configuration file - Google Patents

Processing unit, method and the storage medium of block chain configuration file Download PDF

Info

Publication number
CN110222535A
CN110222535A CN201910370494.5A CN201910370494A CN110222535A CN 110222535 A CN110222535 A CN 110222535A CN 201910370494 A CN201910370494 A CN 201910370494A CN 110222535 A CN110222535 A CN 110222535A
Authority
CN
China
Prior art keywords
newly
information
chain
node
configuration
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.)
Granted
Application number
CN201910370494.5A
Other languages
Chinese (zh)
Other versions
CN110222535B (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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201910370494.5A priority Critical patent/CN110222535B/en
Priority to PCT/CN2019/102205 priority patent/WO2020224100A1/en
Publication of CN110222535A publication Critical patent/CN110222535A/en
Application granted granted Critical
Publication of CN110222535B publication Critical patent/CN110222535B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • G06F9/4451User profiles; Roaming

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Databases & Information Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Bioethics (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present invention relates to a kind of block chain technologies, disclose processing unit, method and the storage medium of a kind of block chain configuration file, this method comprises: when increasing mechanism in the block chain of alliance's chain newly, receive the information to be verified of the newly-increased mechanism, based on the information to be verified newly mechanism is increased to this and carry out legitimate verification, and the node for increasing mechanism newly is added in configuration chain scheduled, by nodes all in alliance's chain building after being verified;The node of the newly-increased mechanism of write-in and the configuration information of chain are received, which is generated into configuration file and is written in the configuration chain, so that all nodes in the configuration chain synchronize to obtain the configuration file of the newly-increased mechanism by common recognition mechanism.The present invention enables to the node in multichain to obtain the configuration file of newly-increased mechanism in time, improves the timeliness of multichain interaction.

Description

Processing unit, method and the storage medium of block chain configuration file
Technical field
The present invention relates to block chain technical field more particularly to a kind of processing unit of block chain configuration file, method and Storage medium.
Background technique
Block chain is generally understood as a distributed account book, its essence is also a distributed database.Joining Multichain is introduced in alliance's chain scene, each chain can increase new mechanism.Many application scenarios of block chain multichain are all at present It needing using the information in configuration file, the information in configuration file includes the relevant information of new mechanism, such as address information, Nodal information etc..When have new mechanism coalize chain when, existing configuration file be can not be suitable for new multichained construction, And due to the complexity of interaction between alliance's chain, the node in multichain can not often obtain the configuration file of new mechanism in time, Influence the timeliness of interaction between the node of multichain.
Summary of the invention
The purpose of the present invention is to provide processing unit, method and the storage mediums of a kind of block chain configuration file, it is intended to So that the node in multichain obtains the configuration file of newly-increased mechanism in time, the timeliness of multichain interaction is improved.
To achieve the above object, the present invention provides a kind of processing unit of block chain configuration file, the block chain configuration The processing unit of file includes memory and the processor that connect with the memory, and being stored in the memory can be described The processing system run on processor, the processing system realize following steps when being executed by the processor:
When increasing mechanism in the block chain of alliance's chain newly, the information to be verified of the newly-increased mechanism is received, it is to be verified based on this Information to this increase newly mechanism carry out legitimate verification, and after being verified by this increase newly mechanism node be added it is scheduled, by In alliance's chain in the configuration chain of all node buildings;
The node of the newly-increased mechanism of write-in and the configuration information of chain are received, which is generated into configuration file and is write Enter in the configuration chain, so that all nodes in the configuration chain synchronize to obtain the configuration text of the newly-increased mechanism by common recognition mechanism Part.
Preferably, the information to be verified includes digital certificate for being digitally signed to newly-increased mechanism and this is newly-increased The identity information of mechanism, it is described that the step of mechanism carries out legitimate verification is increased newly to this based on the information to be verified, it specifically includes:
The legitimacy of the digital certificate is verified;
If the digital certificate is legal, the identity information of the owner of the digital certificate is obtained, by the identity of the owner Information is compared with the identity information of the newly-increased mechanism;
If the identity information of the owner is consistent with the newly-increased identity information of mechanism, the identity of the newly-increased mechanism is determined It is legal, allow the newly-increased mechanism to be added in the configuration chain.
Preferably, the configuration information includes the address of node information of newly-increased mechanism and the intelligent contract letter that node includes Breath when the processing system is executed by the processor, also realizes following steps:
The intelligent contract information of the configuration file of the newly-increased mechanism is obtained from the configuration chain, if the node of the newly-increased mechanism In have node that monitoring intelligent contract is not installed, then installation monitoring intelligent contract is sent to corresponding node based on the address information Instruction, so as to the node installation monitoring intelligent contract;
System status information and business information are carried out to the corresponding node of the address information based on the monitoring intelligent contract Monitoring.
Preferably, when the processing system is executed by the processor, following steps are also realized:
The system status information and business information for receiving each node feeding back are shown with being sent to terminal, respectively to being System status information and business information are analyzed, if having analyzed system status information and/or business information is exception information, Early warning is carried out to the exception information.
To achieve the above object, the present invention also provides a kind of processing method of block chain configuration file, the block chain is matched The processing method for setting file includes:
S1 receives the information to be verified of the newly-increased mechanism when increasing mechanism in the block chain of alliance's chain newly, to be tested based on this Card information to this increase newly mechanism carry out legitimate verification, and after being verified by this increase newly mechanism node be added it is scheduled, In configuration chain by nodes all in alliance's chain building;
S2 receives the node of the newly-increased mechanism of write-in and the configuration information of chain, which is generated configuration file And be written in the configuration chain, so that all nodes in the configuration chain synchronize to obtain the configuration of the newly-increased mechanism by common recognition mechanism File.
Preferably, the information to be verified includes digital certificate for being digitally signed to newly-increased mechanism and this is newly-increased The identity information of mechanism, it is described that the step of mechanism carries out legitimate verification is increased newly to this based on the information to be verified, it specifically includes:
The legitimacy of the digital certificate is verified;
If the digital certificate is legal, the identity information of the owner of the digital certificate is obtained, by the identity of the owner Information is compared with the identity information of the newly-increased mechanism;
If the identity information of the owner is consistent with the newly-increased identity information of mechanism, the identity of the newly-increased mechanism is determined It is legal, allow the newly-increased mechanism to be added in the configuration chain.
Preferably, the configuration information includes the address of node information of newly-increased mechanism and the intelligent contract letter that node includes It ceases, after the step S2, further includes:
The intelligent contract information of the configuration file of the newly-increased mechanism is obtained from the configuration chain, if the node of the newly-increased mechanism In have node that monitoring intelligent contract is not installed, then installation monitoring intelligent contract is sent to corresponding node based on the address information Instruction, so as to the node installation monitoring intelligent contract;
System status information and business information are carried out to the corresponding node of the address information based on the monitoring intelligent contract Monitoring.
Preferably, the processing method of the block chain configuration file, further includes:
The system status information and business information for receiving each node feeding back are shown with being sent to terminal, respectively to being System status information and business information are analyzed, if having analyzed system status information and/or business information is exception information, Early warning is carried out to the exception information.
Preferably, after the step S2, further includes: the configuration file for increasing mechanism newly is pushed to client, for The configuration file for increasing mechanism newly is stored in local by the client.
The present invention also provides a kind of computer readable storage medium, processing is stored on the computer readable storage medium System, the processing system realize the processing of the block chain configuration file of above-mentioned block chain configuration file when being executed by processor The step of method.
The beneficial effects of the present invention are: the present invention when in the block chain of alliance's chain increase newly mechanism when, to this increase newly mechanism into The mechanism being verified is added in scheduled configuration chain row legitimate verification, and the section of newly-increased mechanism is then written in configuration chain It puts the configuration information with chain and generates configuration file, synchronize to obtain this newly by common recognition mechanism for all nodes in the configuration chain The configuration file for increasing mechanism enables to the node in multichain to obtain the configuration file of new mechanism in time in this way, Improve the timeliness of multichain interaction.
Detailed description of the invention
Fig. 1 is the optional application environment schematic diagram of each embodiment one of the invention;
Fig. 2 is the schematic diagram of the hardware structure of one embodiment of processing unit of block chain configuration file of the present invention;
Fig. 3 is the Program modual graph that processing system unifies embodiment in Fig. 2;
Fig. 4 is the flow diagram of one embodiment of processing method of block chain configuration file of the present invention.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that described herein, specific examples are only used to explain the present invention, not For limiting the present invention.Based on the embodiments of the present invention, those of ordinary skill in the art are not before making creative work Every other embodiment obtained is put, shall fall within the protection scope of the present invention.
It should be noted that the description for being related to " first ", " second " etc. in the present invention is used for description purposes only, and cannot It is interpreted as its relative importance of indication or suggestion or implicitly indicates the quantity of indicated technical characteristic.Define as a result, " the One ", the feature of " second " can explicitly or implicitly include at least one of the features.In addition, the skill between each embodiment Art scheme can be combined with each other, but must be based on can be realized by those of ordinary skill in the art, when technical solution Will be understood that the combination of this technical solution is not present in conjunction with there is conflicting or cannot achieve when, also not the present invention claims Protection scope within.
As shown in fig.1, being the application environment schematic diagram of presently preferred embodiments of the present invention.In this embodiment, Duo Gejie Point forms block chain, and multiple block chains form alliance's chain.After some block chain increases mechanism newly, need to increase the newly-increased mechanism phase At least one node answered.In the present embodiment, what the processing unit 1 of block chain configuration file can be in alliance's chain any is set It is standby.In Fig. 1, alliance's chain includes block chain 1 and block chain 2, and node 5 is added as the node of newly-increased mechanism into block chain 1.
The processing unit 1 of the block chain configuration file is that one kind can be according to the instruction for being previously set or storing, certainly The dynamic equipment for carrying out numerical value calculating and/or information processing.The processing unit 1 of the block chain configuration file can be computer, Be also possible to single network server, multiple network servers composition server group or based on cloud computing by a large amount of hosts Or the cloud that network server is constituted, wherein cloud computing is one kind of distributed computing, by the computer set of a group loose couplings One super virtual computer of composition.
Referring to shown in Fig. 2, in the present embodiment, the processing unit 1 of block chain configuration file may include, but be not limited only to, The memory 11, processor 12, network interface 13 of connection can be in communication with each other by system bus, memory 11, which is stored with, to be located The processing system run on reason device 12.It should be pointed out that Fig. 2 illustrates only the block chain configuration file with component 11-13 Processing unit 1, it should be understood that be not required for implementing all components shown, the implementation that can be substituted it is more or Less component.
Wherein, memory 11 includes the readable storage medium storing program for executing of memory and at least one type.Inside save as block chain configuration text The operation of the processing unit 1 of part provides caching;Readable storage medium storing program for executing can be for such as flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory etc.), random access storage device (RAM), static random-access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read only memory (PROM), magnetic storage, magnetic The non-volatile memory medium of disk, CD etc..In some embodiments, readable storage medium storing program for executing can be block chain configuration file The internal storage unit of processing unit 1, for example, the block chain configuration file processing unit 1 hard disk;In other embodiments In, which is also possible to the External memory equipment of the processing unit 1 of block chain configuration file, such as block The plug-in type hard disk being equipped in the processing unit 1 of chain configuration file, intelligent memory card (Smart Media Card, SMC), safety Digital (Secure Digital, SD) card, flash card (Flash Card) etc..In the present embodiment, the readable storage of memory 11 Medium is installed on the operating system and types of applications software of the processing unit 1 of block chain configuration file commonly used in storage, such as Store the program code etc. of the processing system 10 in one embodiment of the invention.In addition, memory 11 can be also used for temporarily depositing Store up the Various types of data that has exported or will export.
The processor 12 can be in some embodiments central processing unit (Central Processing Unit, CPU), controller, microcontroller, microprocessor or other data processing chips store in the memory 11 for running Program code or processing data, such as operation processing system 10 etc..
The network interface 13 may include the radio network interface of standard, wired network interface, and the network interface 13 is usual For establishing communication connection between the processing unit 1 and other electronic equipments of the block chain configuration file.Commonly used in Communication connection is established between the processing unit 1 and other electronic equipments of the block chain configuration file.
The processing system 10 is stored in memory 11, can including at least one computer being stored in memory 11 Reading instruction, at least one computer-readable instruction can be executed by processor device 12, the method to realize each embodiment of the application; And the function that at least one computer-readable instruction is realized according to its each section is different, can be divided into different logics Module.
In one embodiment, following steps are realized when above-mentioned processing system 10 is executed by the processor 12:
When increasing mechanism in the block chain of alliance's chain newly, the information to be verified of the newly-increased mechanism is received, it is to be verified based on this Information to this increase newly mechanism carry out legitimate verification, and after being verified by this increase newly mechanism node be added it is scheduled, by In alliance's chain in the configuration chain of all node buildings;
The node of the newly-increased mechanism of write-in and the configuration information of chain are received, which is generated into configuration file and is write Enter in the configuration chain, so that all nodes in the configuration chain synchronize to obtain the configuration text of the newly-increased mechanism by common recognition mechanism Part.
It is the Program modual graph of processing system 10 in Fig. 2 referring to shown in Fig. 3.The processing system 10 is divided into multiple Module, multiple module are stored in memory 12, and are executed by processor 13, to complete the present invention.The present invention is so-called Module is the series of computation machine program instruction section for referring to complete specific function.
The processing system 10 can be divided into: module 101, processing module 102 is added.
The addition module 101, for when increasing mechanism in the block chain of alliance's chain newly, receiving the to be tested of the newly-increased mechanism Information is demonstrate,proved, mechanism is increased newly to this based on the information to be verified and carries out legitimate verification, and increases this newly mechanism after being verified Node be added it is scheduled, by nodes all in alliance's chain building configuration chain in;
Wherein, in alliance's chain scene, specifying fixed chain is configuration chain, while block chain is added in newly-increased mechanism, The node for increasing mechanism newly is added in the configuration chain, and the configuration chain has been added in all nodes of other in alliance's chain, this is matched Chain is set to be specifically intended for storing all configuration files of entire alliance's chain.
Wherein, legitimate verification mechanism is introduced to improve the safety of block chain, when increasing mechanism in alliance's chain, is passed through Legitimate verification is carried out to the newly-increased mechanism, only legal mechanism can just be carried out configuration chain is added.
The information to be verified includes the body of the digital certificate and the newly-increased mechanism for being digitally signed to newly-increased mechanism Part information, it is in one embodiment, described that mechanism progress legitimate verification is increased newly to this based on the information to be verified, comprising: to this The legitimacy of digital certificate is verified;If the digital certificate is legal, the identity information of the owner of the digital certificate is obtained, The identity information of the owner is compared with the identity information of the newly-increased mechanism;If the identity information of the owner is new with this The identity information for increasing mechanism is consistent, then determines that the identity of the newly-increased mechanism is legal, and the newly-increased mechanism is allowed to be added in the configuration chain. If the digital certificate is illegal or the identity information of the owner of the digital certificate and identity information of the newly-increased mechanism it is different It causes, then determines that the identity of the newly-increased mechanism is illegal, the newly-increased mechanism is not allowed to be added in the configuration chain.
The processing module 102, for receiving the node of the newly-increased mechanism of write-in and the configuration information of chain, by the configuration Information generates configuration file and is written in the configuration chain, so that all nodes in the configuration chain synchronize to obtain by common recognition mechanism The configuration file of the newly-increased mechanism.
Wherein, newly-increased mechanism and node are increased by system manager, after increase, system manager uses administrator's body Part, increase this newly the node of mechanism and the configuration information write-in configuration chain of chain, comprising: receive the newly-increased mechanism of administrator's write-in Node and chain configuration information, which includes that the node of newly-increased mechanism belongs to which chain, the IP address of node and end The intelligent contract etc. that message breath, node include.
All nodes on the configuration chain synchronize to obtain the configuration file of the newly-increased mechanism by common recognition mechanism, mechanism of knowing together Can be POW, POS, DPOS, Paxos, Raft, PBFT etc., by common recognition mechanism enable to the newly-increased mechanism with confidence Breath is open shared.
The present invention in this way, enables to the node in multichain to obtain the configuration file of new mechanism in time, mentions The timeliness of high multichain interaction.
Concrete principle please refers to introduction of following Fig. 4 about the flow chart about this method.
As shown in figure 4, Fig. 4 is the flow diagram of one embodiment of processing method of block chain configuration file of the present invention, area The processor 13 of the processing unit 1 of block chain configuration file realizes this method when executing the processing system 10 stored in memory 12 Following steps:
Step S1 receives the information to be verified of the newly-increased mechanism when increasing mechanism in the block chain of alliance's chain newly, and being based on should Information to be verified increases mechanism newly to this and carries out legitimate verification, and the node for increasing mechanism newly is added after being verified and makes a reservation for , by nodes all in alliance's chain building configuration chain in;
Wherein, in alliance's chain scene, specifying fixed chain is configuration chain, while block chain is added in newly-increased mechanism, The node for increasing mechanism newly is added in the configuration chain, and the configuration chain has been added in all nodes of other in alliance's chain, this is matched It sets chain to be specifically intended for storing all configuration files of entire alliance's chain, can be the corresponding configuration file of each mechanism, or The corresponding configuration file of each node.
Wherein, legitimate verification mechanism is introduced to improve the safety of block chain, when increasing mechanism in alliance's chain, is passed through Legitimate verification is carried out to the newly-increased mechanism, only legal mechanism can just be carried out configuration chain is added.
The information to be verified includes the body of the digital certificate and the newly-increased mechanism for being digitally signed to newly-increased mechanism Part information, it is in one embodiment, described that mechanism progress legitimate verification is increased newly to this based on the information to be verified, comprising: to this The legitimacy of digital certificate is verified;If the digital certificate is legal, the identity information of the owner of the digital certificate is obtained, The identity information of the owner is compared with the identity information of the newly-increased mechanism;If the identity information of the owner is new with this The identity information for increasing mechanism is consistent, then determines that the identity of the newly-increased mechanism is legal, and the newly-increased mechanism is allowed to be added in the configuration chain. If the digital certificate is illegal or the identity information of the owner of the digital certificate and identity information of the newly-increased mechanism it is different It causes, then determines that the identity of the newly-increased mechanism is illegal, the newly-increased mechanism is not allowed to be added in the configuration chain.
Step S2 receives the node of the newly-increased mechanism of write-in and the configuration information of chain, which is generated and is configured File is simultaneously written in the configuration chain, so that all nodes in the configuration chain synchronize to obtain the newly-increased mechanism by common recognition mechanism Configuration file.
Wherein, newly-increased mechanism and node are increased by system manager, after increase, system manager uses administrator's body Part, increase this newly the node of mechanism and the configuration information write-in configuration chain of chain, comprising: receive the newly-increased mechanism of administrator's write-in Node and chain configuration information, which includes that the node of newly-increased mechanism belongs to which chain, the IP address of node and end The intelligent contract etc. that message breath (i.e. address information), node include.
All nodes on the configuration chain synchronize to obtain the configuration file of the newly-increased mechanism by common recognition mechanism, mechanism of knowing together Can be POW, POS, DPOS, Paxos, Raft, PBFT etc., by common recognition mechanism enable to the newly-increased mechanism with confidence Breath is open shared.
Further, which can also be pushed to block chain client by message push-mechanism by each node End, is locally stored the configuration file for client.In this way, client can also get the configuration file of newly-increased mechanism in time, And the configuration file can be used in other application scenarios, for example, updating endorsement strategy using the configuration file for increasing mechanism newly Deng.
In alliance's chain scene, block chain node is generally relatively fewer, and therefore, whether normal operation is desirable to each node Monitoring, by the monitoring to node, the current state of each node can be obtained.In one embodiment, in above-described embodiment On the basis of, upon step s 2, further includes:
The intelligent contract information of the configuration file of the newly-increased mechanism is obtained from the configuration chain, if the node of the newly-increased mechanism In have node that monitoring intelligent contract is not installed, then installation monitoring intelligent contract is sent to corresponding node based on the address information Instruction, so as to the node installation monitoring intelligent contract;
System status information and business information are carried out to the corresponding node of the address information based on the monitoring intelligent contract Monitoring.
Further, it by configuring the configuration file of all nodes in chain, may be implemented to nodes all in alliance's chain Monitoring.
Further, which is also possible to system intelligence contract, i.e., the intelligent contract built in system, There is and can provide service after the creation of block chain node, does not need additional resource.After the node starting of newly-increased mechanism, automatically The system intelligence contract is installed, is installed without sending instruction, reduces maintenance work amoun.
Wherein, the monitoring including system status information and business information is monitored to node using monitoring intelligent contract, It include: to initiate call request after the initialization of block chain, to call the monitoring intelligent contract of each node to carry out node respectively Monitoring, then, subsequent each node itself is periodically executed monitoring intelligent contract to be monitored.
Wherein, system status information may include system current operating conditions, cpu information, memory occupation information, block chain Elevation information etc.;Business information may include that block chain is currently traded stroke count, current transaction total assets etc., different industry Business can customize the monitoring of different business information.
In one embodiment, this method further include: receive system status information and the business information of each node feeding back with It is sent to terminal to be shown, system status information and business information is analyzed respectively;If having analyzed system mode letter Breath and/or business information are exception information, then carry out early warning to the exception information.
Wherein, system status information includes low memory alarm extremely, disk is insufficient, block can not be written, intelligent contract Execute exception, block height change speed is greater than preset speed etc., business information include extremely abnormal Transaction Information (for example, Transactions velocity be greater than scheduled transactions velocity), doubtful illegal transaction detection etc., can also be customized according to business difference different Judge the standard of service exception.
When having system status information and/or business information is exception information, for example, depositing used in the block chain data In the case that the residual capacity of storage equipment is lower than 10%, early warning is carried out.
Wherein it is possible to monitoring intelligent contract is periodically executed, for example, the monitoring on each block chain node of far call in turn Intelligent contract, the intelligent contract engine on node execute monitoring intelligent contract, and monitoring intelligent contract calls query interface.Intelligence is closed About engine reads cpu information, memory occupation information etc. by modular system state acquisition interface, and returns to monitoring intelligent conjunction About, it and then is fed back.
Further, it when node executes monitoring intelligent contract, can be monitored using conventional system tool.For example, On (SuSE) Linux OS, memory and cpu usage are monitored using top, htop order, carrys out monitoring network using ss order Network bandwidth usage, the service condition, etc. for checking data storage device using iostat order.
Wherein, while showing the system status information and business information of block chain, can by system status information and Business information is separately converted to patterned form and is shown, so as to more intuitive displaying.
Further, when the memory space inadequate of the storage equipment of the node used in block chain data, for example, it is remaining In the case that capacity is lower than 10%, dilatation processing can be carried out, i.e., data to be stored is stored to specified chain, is not influenced Data on other chains.
Compared with prior art, the present invention increases mechanism newly to this and closes when increasing mechanism in the block chain of alliance's chain newly Method verifying, the mechanism being verified is added in scheduled configuration chain, then configuration chain be written newly-increased mechanism node and The configuration information of chain simultaneously generates configuration file, synchronizes to obtain the newly-increased machine by common recognition mechanism for all nodes in the configuration chain The configuration file of structure enables to the node in multichain to obtain the configuration file of new mechanism in time in this way, improves The timeliness of multichain interaction.
In addition, the embodiment of the present invention also proposes a kind of computer readable storage medium, the computer readable storage medium It can be hard disk, multimedia card, SD card, flash card, SMC, read-only memory (ROM), Erasable Programmable Read Only Memory EPROM (EPROM), any one in portable compact disc read-only memory (CD-ROM), USB storage etc. or several timess Meaning combination.It include processing system, the function which realizes when being executed by processor in the computer readable storage medium Can, the above-mentioned introduction about Fig. 3 and Fig. 4 is please referred to, details are not described herein.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, device, article or the method that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, device, article or method institute it is intrinsic Element.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, computer, clothes Business device, air conditioner or the network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of processing unit of block chain configuration file, which is characterized in that the processing unit packet of the block chain configuration file The processor for including memory and connecting with the memory is stored with the place that can be run on the processor in the memory Reason system, the processing system realize following steps when being executed by the processor:
When increasing mechanism in the block chain of alliance's chain newly, the information to be verified of the newly-increased mechanism is received, the information to be verified is based on To this increase newly mechanism carry out legitimate verification, and after being verified by this increase newly mechanism node be added it is scheduled, by alliance In chain in the configuration chain of all node buildings;
The node of the newly-increased mechanism of write-in and the configuration information of chain are received, which is generated into configuration file and write-in should It configures in chain, so that all nodes in the configuration chain synchronize to obtain the configuration file of the newly-increased mechanism by common recognition mechanism.
2. the processing unit of block chain configuration file according to claim 1, which is characterized in that the packet to be verified It includes for increasing the digital certificate that mechanism is digitally signed and the identity information of the newly-increased mechanism newly to this, it is described to be tested based on this Card information increases the step of mechanism carries out legitimate verification newly to this, specifically includes:
The legitimacy of the digital certificate is verified;
If the digital certificate is legal, the identity information of the owner of the digital certificate is obtained, by the identity information of the owner It is compared with the identity information for increasing mechanism newly;
If the identity information of the owner is consistent with the newly-increased identity information of mechanism, determine that the identity of the newly-increased mechanism is closed Method allows the newly-increased mechanism to be added in the configuration chain.
3. the processing unit of block chain configuration file according to claim 1 or 2, which is characterized in that the configuration information The intelligent contract information that address of node information and node including newly-increased mechanism include, the processing system is by the processor When execution, following steps are also realized:
The intelligent contract information of the configuration file of the newly-increased mechanism is obtained from the configuration chain, if having in the node of the newly-increased mechanism Node does not install monitoring intelligent contract, then sends the finger of installation monitoring intelligent contract to corresponding node based on the address information It enables, so as to the node installation monitoring intelligent contract;
The monitoring of system status information and business information is carried out to the corresponding node of the address information based on the monitoring intelligent contract.
4. the processing unit of block chain configuration file according to claim 3, which is characterized in that the processing system is by institute When stating processor execution, following steps are also realized:
The system status information and business information for receiving each node feeding back are shown with being sent to terminal, respectively to system shape State information and business information are analyzed, if having analyzed system status information and/or business information is exception information, to this Exception information carries out early warning.
5. a kind of processing method of block chain configuration file, which is characterized in that the processing method packet of the block chain configuration file It includes:
S1 receives the information to be verified of the newly-increased mechanism, is based on the letter to be verified when increasing mechanism in the block chain of alliance's chain newly Breath to this increase newly mechanism carry out legitimate verification, and after being verified by this increase newly mechanism node be added it is scheduled, by joining In alliance's chain in the configuration chain of all node buildings;
S2 receives the node of the newly-increased mechanism of write-in and the configuration information of chain, which is generated configuration file and is write Enter in the configuration chain, so that all nodes in the configuration chain synchronize to obtain the configuration text of the newly-increased mechanism by common recognition mechanism Part.
6. the processing method of block chain configuration file according to claim 5, which is characterized in that the packet to be verified It includes for increasing the digital certificate that mechanism is digitally signed and the identity information of the newly-increased mechanism newly to this, it is described to be tested based on this Card information increases the step of mechanism carries out legitimate verification newly to this, specifically includes:
The legitimacy of the digital certificate is verified;
If the digital certificate is legal, the identity information of the owner of the digital certificate is obtained, by the identity information of the owner It is compared with the identity information for increasing mechanism newly;
If the identity information of the owner is consistent with the newly-increased identity information of mechanism, determine that the identity of the newly-increased mechanism is closed Method allows the newly-increased mechanism to be added in the configuration chain.
7. the processing method of block chain configuration file according to claim 5 or 6, which is characterized in that the configuration information Address of node information and the node intelligent contract information that includes including increasing mechanism newly, after the step S2, further includes:
The intelligent contract information of the configuration file of the newly-increased mechanism is obtained from the configuration chain, if having in the node of the newly-increased mechanism Node does not install monitoring intelligent contract, then sends the finger of installation monitoring intelligent contract to corresponding node based on the address information It enables, so as to the node installation monitoring intelligent contract;
The monitoring of system status information and business information is carried out to the corresponding node of the address information based on the monitoring intelligent contract.
8. the processing method of block chain configuration file according to claim 7, which is characterized in that the block chain configuration text The processing method of part, further includes:
The system status information and business information for receiving each node feeding back are shown with being sent to terminal, respectively to system shape State information and business information are analyzed, if having analyzed system status information and/or business information is exception information, to this Exception information carries out early warning.
9. the processing method of block chain configuration file according to claim 5 or 6, which is characterized in that the step S2 it Afterwards, further includes: push the configuration file for increasing mechanism newly to client, so that the client is literary by the configuration for increasing mechanism newly Part is stored in local.
10. a kind of computer readable storage medium, which is characterized in that be stored with processing system on the computer readable storage medium System, the block chain configuration file as described in any one of claim 5 to 9 is realized when the processing system is executed by processor The step of processing method.
CN201910370494.5A 2019-05-06 2019-05-06 Processing device, method and storage medium for block chain configuration file Active CN110222535B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910370494.5A CN110222535B (en) 2019-05-06 2019-05-06 Processing device, method and storage medium for block chain configuration file
PCT/CN2019/102205 WO2020224100A1 (en) 2019-05-06 2019-08-23 Blockchain configuration file processing apparatus, system, and method, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910370494.5A CN110222535B (en) 2019-05-06 2019-05-06 Processing device, method and storage medium for block chain configuration file

Publications (2)

Publication Number Publication Date
CN110222535A true CN110222535A (en) 2019-09-10
CN110222535B CN110222535B (en) 2024-03-12

Family

ID=67820332

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910370494.5A Active CN110222535B (en) 2019-05-06 2019-05-06 Processing device, method and storage medium for block chain configuration file

Country Status (2)

Country Link
CN (1) CN110222535B (en)
WO (1) WO2020224100A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110650193A (en) * 2019-09-20 2020-01-03 腾讯科技(深圳)有限公司 Node management method, cluster management device and storage medium
CN112416396A (en) * 2020-11-20 2021-02-26 泰康保险集团股份有限公司 Application program updating method and system
CN114499835A (en) * 2021-12-23 2022-05-13 杭州溪塔科技有限公司 Method and system for configuring newly added nodes in alliance chain
CN114928558A (en) * 2022-06-14 2022-08-19 上海万向区块链股份公司 Operation and maintenance method and system based on block chain
CN115426256A (en) * 2021-05-31 2022-12-02 中移雄安信息通信科技有限公司 Alliance chain configuration method and device and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107018125A (en) * 2017-02-17 2017-08-04 阿里巴巴集团控股有限公司 A kind of block catenary system, date storage method and device
CN108416589A (en) * 2018-03-08 2018-08-17 深圳前海微众银行股份有限公司 Connection method, system and the computer readable storage medium of block chain node
CN108681572A (en) * 2018-05-04 2018-10-19 蔷薇信息技术有限公司 Date storage method, device and the electronic equipment of block chain
WO2019011179A1 (en) * 2017-07-10 2019-01-17 腾讯科技(深圳)有限公司 Certificate management method, system, network device and computer readable storage medium
US20190036712A1 (en) * 2017-07-26 2019-01-31 Alibaba Group Holding Limited Digital certificate management method, apparatus, and system
CN109474584A (en) * 2018-10-29 2019-03-15 中化能源科技有限公司 A kind of rule-based block chain network permits Adding Way automatically

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10636033B2 (en) * 2016-02-22 2020-04-28 Bank Of America Corporation System for routing of process authorizations and settlement to a user in a process data network
CN110033373A (en) * 2019-03-12 2019-07-19 平安科技(深圳)有限公司 Device, method and the storage medium endorsed in block chain

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107018125A (en) * 2017-02-17 2017-08-04 阿里巴巴集团控股有限公司 A kind of block catenary system, date storage method and device
WO2019011179A1 (en) * 2017-07-10 2019-01-17 腾讯科技(深圳)有限公司 Certificate management method, system, network device and computer readable storage medium
US20190036712A1 (en) * 2017-07-26 2019-01-31 Alibaba Group Holding Limited Digital certificate management method, apparatus, and system
CN108416589A (en) * 2018-03-08 2018-08-17 深圳前海微众银行股份有限公司 Connection method, system and the computer readable storage medium of block chain node
CN108681572A (en) * 2018-05-04 2018-10-19 蔷薇信息技术有限公司 Date storage method, device and the electronic equipment of block chain
CN109474584A (en) * 2018-10-29 2019-03-15 中化能源科技有限公司 A kind of rule-based block chain network permits Adding Way automatically

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110650193A (en) * 2019-09-20 2020-01-03 腾讯科技(深圳)有限公司 Node management method, cluster management device and storage medium
CN110650193B (en) * 2019-09-20 2021-06-25 腾讯科技(深圳)有限公司 Node management method, cluster management device and storage medium
CN112416396A (en) * 2020-11-20 2021-02-26 泰康保险集团股份有限公司 Application program updating method and system
CN112416396B (en) * 2020-11-20 2023-11-03 泰康保险集团股份有限公司 Application program updating method and system
CN115426256A (en) * 2021-05-31 2022-12-02 中移雄安信息通信科技有限公司 Alliance chain configuration method and device and storage medium
CN115426256B (en) * 2021-05-31 2024-07-02 中移雄安信息通信科技有限公司 Alliance chain configuration method, device and storage medium
CN114499835A (en) * 2021-12-23 2022-05-13 杭州溪塔科技有限公司 Method and system for configuring newly added nodes in alliance chain
CN114499835B (en) * 2021-12-23 2023-06-20 杭州溪塔科技有限公司 Newly added node configuration method and system in alliance chain
CN114928558A (en) * 2022-06-14 2022-08-19 上海万向区块链股份公司 Operation and maintenance method and system based on block chain
CN114928558B (en) * 2022-06-14 2023-12-12 上海万向区块链股份公司 Operation and maintenance method and system based on block chain

Also Published As

Publication number Publication date
WO2020224100A1 (en) 2020-11-12
CN110222535B (en) 2024-03-12

Similar Documents

Publication Publication Date Title
CN110222535A (en) Processing unit, method and the storage medium of block chain configuration file
CN108683604B (en) Concurrent access control method, terminal device, and medium
CN110995473B (en) Service node control method and related equipment
CN108462760B (en) Electronic device, automatic cluster access domain name generation method and storage medium
US10785320B2 (en) Managing operation of instances
WO2019024161A1 (en) Block chain-based data management method, block chain system, server and readable storage medium
CN111698283B (en) Management and control method, device, equipment and storage medium of distributed cluster host
CN110569251A (en) Data processing method, related equipment and computer readable storage medium
CN110232094A (en) Device, method and storage medium across chain transaction
CN110033373A (en) Device, method and the storage medium endorsed in block chain
CN110704490A (en) Service data processing method and device based on intelligent contract
CN110221938A (en) The method and storage medium of electronic device, block chain common recognition
CN112733206A (en) Resource allocation method, device, server and medium
CN113726566B (en) Service gateway device
CN111585805B (en) Smooth release upgrading method and device, computer system and readable storage medium
CN110879826A (en) Credit blacklist sharing method and device based on block chain
CN112087497B (en) Data synchronization method and device, electronic equipment and readable storage medium
CN110209736A (en) Device, method and the storage medium of block chain data processing
CN111124631A (en) Task processing method and device based on block chain network
CN115131022A (en) Block chain-based digital asset transaction method, device, equipment and medium
CN114296909A (en) Automatic node capacity expansion and reduction method and system according to kubernets event
CN109905407B (en) Management method, system, equipment and medium for accessing intranet based on VPN server
CN113791792A (en) Application calling information acquisition method and device and storage medium
CN112015563A (en) Message queue switching method and device, electronic equipment and storage medium
CN110058866B (en) Cluster component installation method and device

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