CN109936486A - Auto-dial testing method, apparatus, equipment and storage medium based on block chain - Google Patents

Auto-dial testing method, apparatus, equipment and storage medium based on block chain Download PDF

Info

Publication number
CN109936486A
CN109936486A CN201910000487.6A CN201910000487A CN109936486A CN 109936486 A CN109936486 A CN 109936486A CN 201910000487 A CN201910000487 A CN 201910000487A CN 109936486 A CN109936486 A CN 109936486A
Authority
CN
China
Prior art keywords
testing
node
block chain
block
task
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
CN201910000487.6A
Other languages
Chinese (zh)
Other versions
CN109936486B (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 CN201910000487.6A priority Critical patent/CN109936486B/en
Publication of CN109936486A publication Critical patent/CN109936486A/en
Application granted granted Critical
Publication of CN109936486B publication Critical patent/CN109936486B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention relates to based on block chain common recognition mechanism technology testing technical field more particularly to a kind of auto-dial testing method, apparatus, equipment and storage medium based on block chain.This method comprises: filtering out the testing node of predetermined number in block chain network by common recognition mechanism, testing node obtains right of keeping accounts in turn according to preset timetable;After obtaining book keeping operation right in turn, the preset testing algorithm of intelligent contract and testing task are read from block chain network, testing task is executed by testing algorithm, obtains testing result;Testing result is generated into testing block, and carries out cochain in block chain network, forms new block chain.It present invention introduces the block chain network of decentralization, based on the advantage of block chain decentralization, the characteristics such as relies on the timestamp of block chain and can not distort carry out testing node competition election, testing algorithm synchronous, realize and fair disclosed execute testing task.

Description

Auto-dial testing method, apparatus, equipment and storage medium based on block chain
Technical field
The present invention relates to testing technical field more particularly to a kind of auto-dial testing method, apparatus, equipment based on block chain And storage medium.
Background technique
With information-based propulsion, internet is in people's lives in occupation of increasingly consequence.On internet Various websites all the time all for from user service all over the world, therefore the stability of website is extremely important.In view of The characteristic of internet, the server of website are typically all to be made of the computer cluster customized, therefore every computer is steady It is qualitative that all the stability of entire cluster is had an impact.In order to find whether the computer for providing service has crash, service in time Phenomena such as unavailable, needs to carry out testing to computer cluster by call-testing system.Currently existing call-testing system is centralization System, testing node are conventional deployment modes, and without synchronizing information and transmitting between testing node, and testing node is for network Whole testing business contribution is easy to produce dispute when distributing testing task by centralization recording mode.
Summary of the invention
In view of this, it is necessary to for without synchronizing information and transmitting, being easy between the testing node in traditional call-testing system Dispute is led to the problem of, a kind of auto-dial testing method, apparatus, equipment and storage medium based on block chain is provided.
A kind of auto-dial testing method based on block chain, comprising:
The testing node of predetermined number is filtered out in block chain network by common recognition mechanism, the testing node is according to pre- If timetable acquisition keep accounts in turn right;
After obtaining book keeping operation right in turn, the preset testing algorithm of intelligent contract is read from the block chain network And testing task, the testing task is executed by the testing algorithm, obtains testing result;
The testing result is generated into testing block, and carries out cochain in the block chain network, forms new block Chain.
In a kind of possible design, the testing section for filtering out predetermined number in block chain network by common recognition mechanism Point, the testing node obtain right of keeping accounts in turn according to preset timetable, comprising:
Acquire own node node resources information, the node resources information include network connectivty, CPU idleness and The node resources information is broadcast to other nodes in the block chain network by memory idleness;
It obtains in the block chain network after the node resources information of multiple nodes, by the network connection in network connectivty Speed, CPU idleness are added with memory idleness, the node resource value of each node are obtained, to the node resource of multiple nodes Value sorts from high in the end, filters out the highest multiple nodes of node resource value;
By the common recognition mechanism of the block chain network, automatic ballot passes through mechanism of knowing together to the multiple nodes filtered out The highest predetermined number node definition of number of votes obtained is testing section by the votes for recording all nodes in the block chain network Point.
In a kind of possible design, the node resource value to multiple nodes sorts from high in the end, screening egress money The highest multiple nodes of source value, comprising:
When screening the highest multiple nodes of the node resource value, the node resource value phase of at least two nodes if it exists Together, then the node stability of each node is obtained, and obtains testing task number, the execution of each node from block chain list Mass fraction calculates the node contribution degree of each node, the node contribution degree Z of i-th of nodeiFormula are as follows:
Zi=Ai*a+Bi*b+Ci*c
A+b+c=100%
Wherein, AiFor the testing task number of i-th of node, BiFor the execution mass fraction of i-th of node, CiIt is i-th The node stability of node, a, b and c are percent coefficient;
The highest multiple nodes of the node contribution degree are filtered out at least two nodes;
If the node contribution degree of at least two nodes is identical, the preceding node of broadcast is filtered out.
In a kind of possible design, when obtain keep accounts right in turn after, intelligence is read from the block chain network The preset testing algorithm of contract and testing task execute the testing task by the testing algorithm, before obtaining testing result, Include:
By preset testing maintenance interface, the testing algorithm and testing task that user uploads are obtained, the testing is calculated Method and the testing task are stored in the intelligent contract of the block chain network;
By preset testing maintenance interface, the testing algorithm or testing task of user query are obtained, the testing is calculated Method or testing task are shown by testing maintenance interface;
By preset testing maintenance interface, the testing algorithm or testing task of user's modification are obtained, the testing is calculated Method or testing task are updated in the intelligent contract of the block chain network.
In a kind of possible design, when obtain keep accounts right in turn after, intelligence is read from the block chain network The preset testing algorithm of contract and testing task execute the testing task by the testing algorithm, obtain testing as a result, packet It includes:
After obtaining book keeping operation right in turn, the preset testing algorithm of intelligent contract is read from the block chain network And testing task;
The testing algorithm stored in the testing algorithm and the intelligent contract of own node is compared, if it is different, then By the testing algorithm of testing algorithm replacement own node storage;
The testing algorithm for calling own node storage, executes the testing task, obtains testing result.
It is described that the testing result is generated into testing block in a kind of possible design, and in the block chain network Cochain is carried out, new block chain is formed, comprising:
After the testing result is generated testing block, is broadcasted in the block chain network, pass through other nodes Consistency checking is carried out to the testing block, when the testing block is by the verifying of M other nodes, is defined as described dial It surveys block and completes cochain in the block chain network, form new block chain.
It is described that consistency checking is carried out to the testing block by other nodes in a kind of possible design, when described Testing block passes through verifying, comprising:
After receiving broadcast, according to putting in order for right testing node of keeping accounts in turn is obtained in common recognition mechanism, judgement is wide Broadcast the testing block node whether with put in order consistent, verifying is defined as if inconsistent and is not passed through, verifying is terminated, if It is consistent then continue to verify;
The data information in the block body of the testing block, the cryptographic Hash in the block head are obtained, to the data Information is verified value according to hash value algorithms;
The validation value and the cryptographic Hash are compared, judge whether identical, verifies if different and does not pass through, terminate Verifying after then signing if they are the same to the cryptographic Hash in block head, continues other sections being broadcast in the block chain network Point.
A kind of auto-dial testing device based on block chain, comprising:
Testing node module is screened, for filtering out the testing section of predetermined number in block chain network by common recognition mechanism Point, the testing node obtain right of keeping accounts in turn according to preset timetable;
Testing task module is executed, for being read after obtaining book keeping operation right in turn from the block chain network The preset testing algorithm of intelligent contract and testing task execute the testing task by the testing algorithm, obtain testing knot Fruit;
Testing block module is generated, for the testing result to be generated testing block, and in the block chain network Cochain is carried out, new block chain is formed.
A kind of computer equipment, including memory and processor are stored with computer-readable instruction in the memory, institute When stating computer-readable instruction and being executed by the processor, so that the processor executes the above-mentioned auto-dial testing based on block chain The step of method.
A kind of storage medium being stored with computer-readable instruction, the computer-readable instruction are handled by one or more When device executes, so that the step of one or more processors execute the above-mentioned auto-dial testing method based on block chain.
Above-mentioned auto-dial testing method, apparatus, computer equipment and storage medium based on block chain, including pass through common recognition machine The testing node that predetermined number is filtered out in block chain network is made, the testing node obtains in turn according to preset timetable Book keeping operation right;After obtaining book keeping operation right in turn, the intelligent preset testing of contract is read from the block chain network and is calculated Method and testing task execute the testing task by the testing algorithm, obtain testing result;The testing result is generated Testing block, and cochain is carried out in the block chain network, form new block chain.Present invention introduces the blocks of decentralization Chain network the characteristics such as relies on the timestamp of block chain and can not distort carry out testing section based on the advantage of block chain decentralization Point competition is elected, testing algorithm is synchronous, realizes fair disclosed execution testing task.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention Limitation.
Fig. 1 is the flow chart of the auto-dial testing method based on block chain in one embodiment of the invention;
Fig. 2 is a kind of flow chart of step S1 in one embodiment;
Fig. 3 is a kind of flow chart of step S102 node screening technique in one embodiment;
Fig. 4 is a kind of flow chart of step S3 consistency checking in one embodiment;
Fig. 5 is the structure chart of the auto-dial testing device based on block chain in one embodiment of the 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 the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.
Those skilled in the art of the present technique are appreciated that unless expressly stated, singular " one " used herein, " one It is a ", " described " and "the" may also comprise plural form.It is to be further understood that being arranged used in specification of the invention Diction " comprising " refer to that there are the feature, integer, step, operation, element and/or component, but it is not excluded that in the presence of or addition Other one or more features, integer, step, operation, element, component and/or their group.
Fig. 1 is the flow chart of the auto-dial testing method based on block chain in one embodiment of the invention, as shown in Figure 1, A kind of auto-dial testing method based on block chain, comprising the following steps:
Step S1 screens testing node: filtering out the testing section of predetermined number in block chain network by common recognition mechanism Point, testing node obtain right of keeping accounts in turn according to preset timetable.
Block chain network is a kind of system based on block chain technology, and also referred to as distributed account book technology is a kind of mutual Networking data library technology.Its main feature is that it is decentralization, open and clear, allow each user to each may participate in maintenance data-base recording.Area Block chain network is the new application mould of the computer technologies such as Distributed Storage, point-to-point transmission, common recognition mechanism, Encryption Algorithm Formula.Block chain network mainly includes data Layer, intelligent contract layer etc., wherein data Layer encapsulates bottom data block and phase The basic datas such as the data encryption of pass and timestamp and rudimentary algorithm, and bottom data block is presented with chain structure, i.e. block Chain is a kind of a kind of linked data structure for being sequentially in time combined into data block in such a way that sequence is connected, and with close The distributed account book that can not be distorted He can not forge that code mode guarantees.Intelligent contract believable can not be distorted based on these Data, some rules pre-defined of execution, clause or the algorithm that can be automated.
Any terminal for participating in testing can be registered as node in block chain network, pass through being total to for block chain network Knowledge mechanism participates in the screening in this step to testing node jointly.The testing node filtered out obtains right of keeping accounts in turn, this note Account is to obtain and execute the process of testing task.
In one embodiment, step S1, as shown in Figure 2, comprising:
Step S101 acquires simultaneously broadcast message: acquiring the node resources information of own node, node resources information includes net Network connectivity, CPU idleness and memory idleness, other nodes node resources information being broadcast in block chain network.
In acquisition node resource information, network connectivty, the CPU that own node can be monitored by hook mechanism are idle Rate and memory idleness, obtain node resources information.Wherein to the network of the main acquisition own node of the acquisition of network connectivty Connection speed.
When other nodes node resources information being broadcast in block chain network, starting common recognition orderer node passes through Orderer node and multiple peer-to-peer network peer nodes establish connection, and node resources information is broadcasted to peer node, and will section Point resource information is stored in peer node.
Step S102 screens multiple nodes: obtaining in block chain network after the node resources information of multiple nodes, by network Network connection speed, CPU idleness in connectivity are added with memory idleness, obtain the node resource value of each node, right The node resource value of multiple nodes sorts from high in the end, filters out the highest multiple nodes of node resource value.
Any node in block chain network not only broadcasts the node resources information of own node to other nodes, also connects The node resources information for receiving other node broadcasts, after the node resources information for receiving certain amount node, for example, working as block chain In network after the node resources information of 90% node broadcasts, node resources information is handled, obtains the section of each node Point resource value.This step is before being uniformly processed node resources information, without receiving the node resource of whole node broadcasts Information.In the highest multiple nodes of screening node resource, certain ratio can be screened according to the node number in block chain network Multiple nodes of example.For example, it is highest to filter out 100 node resource values when containing 1000 nodes in block chain network Node.
When carrying out node screening, when multiple nodes have same node point resource value if it exists, for example, the node filtered out O, when node p and node q is respectively that the 99th, 100 and 101 node has same node point resource value, in one embodiment, such as Shown in Fig. 3, using following screening technique:
Step S10201, calculate node contribution degree: in the highest multiple nodes of screening node resource value, if it exists at least The node resource value of two nodes is identical, then obtains the node stability of each node, and obtains each from block chain list The testing task number of node executes mass fraction, calculates the node contribution degree of each node, the node contribution of i-th of node Spend ZiFormula are as follows:
Zi=Ai*a+Bi*b+Ci*c
A+b+c=100%
Wherein, AiFor the testing task number of i-th of node, BjFor the execution mass fraction of i-th of node, CiIt is i-th The node stability of node, a, b and c are percent coefficient.
This step interior joint stability refers to the stability of connecting node network, passes through fixed frequency connecting node, monitoring The inverse of delay time is defined as node stability parameter by delay time.
The each node registered in block chain network is preset with block chain list, and block cochain is pressed in this block chain list Sequential storage has the information such as the cryptographic Hash of the testing node of the testing block of each cochain, testing block.In block chain list In, any testing node contains a corresponding testing block, is denoted as corresponding testing number and adds one, so far looks into from block chain list Find out the testing number of each node in the highest multiple nodes of node resource value.Testing is obtained according to the cryptographic Hash of testing block Testing in the block body of block is preferably or bad as a result, contain a state parameter in testing result, reads this state ginseng Number, if preferably, mass value adds one, from finding out each node in the highest multiple nodes of node resource value in block chain list Mass value, each node mass value is obtained into the execution mass fraction of each node divided by testing number.
In node contribution degree ZiIn formula, it is 10%, 50% and 40% that coefficient a, b and c, which can distinguish value,.
Step S10202 screens node by node contribution degree: screening egress contribution degree highest at least two nodes Multiple nodes.
After obtaining the node contribution degree of multiple nodes, node contribution degree is ranked up from high to low, screens egress The highest node of contribution degree.For example, node o, node p and node q are respectively the 99th, 100 and 101 node and have identical section When point resource value, the node contribution degree of these three nodes is calculated, and after being ranked up, from high in the end must by the sequence of node contribution degree To node q, node o, node p.Due to needing to screen 100 nodes, node q, node o are screened, node is given up p。
Step S10203, by broadcast in preceding screening node: if the node contribution degree of at least two nodes is identical, screening Preceding node is broadcasted out.
When step step S10202 is by node contribution degree screening node, there are the node contribution degree of two nodes is identical When, such as the node contribution degree highest of node q, and the node contribution degree of node o, node p are identical, need to sieve in two nodes One of node is selected, broadcasts preceding node at this point, filtering out and receiving in two nodes.
It is progressive to multiple that the present embodiment passes through node resources information, node contribution degree and three layer parameter of broadcast time respectively Node is screened, filter out relative free in block chain network, execute that testing quality is higher, the speed of service is more faster A node.
Step S103 screens testing node: by the common recognition mechanism of block chain network, automatic ballot is multiple to filtering out Node records the votes of all nodes in block chain network by common recognition mechanism, by the highest predetermined number node of number of votes obtained It is defined as testing node.
Each node in block chain network has the right of ballot, and is all voted automatically by common recognition mechanism Work records the votes that each node obtains by common recognition mechanism, to the highest predetermined number node of votes as testing Node.For example, 100 node definitions highest to votes are testing node.
The common recognition mechanism of this step selects the node of predetermined number by DPoS common recognition mechanism using DPoS common recognition mechanism. DPoS common recognition mechanism is a kind of share authorisation verification mechanism, and principle is by different strategies, and choosing for not timing is a small set of Node, this selected a small set of node do creation, verifying, signature and the mutually supervision of new block, area have been greatly reduced The time of consumption required for block creates and confirms and calculation power cost.
The present embodiment is by common recognition mechanism, in such a way that multilayer is progressive, filters out in block chain network a collection of opposite Multiple nodes are used as testing node to idle, the higher, speed of service that executes testing quality faster, execute subsequent testing times Business.
Step S2 executes testing task: after obtaining book keeping operation right in turn, reading intelligence from block chain network and closes About preset testing algorithm and testing task execute testing task by testing algorithm, obtain testing result.
There is intelligent contract layer in block chain network, in the intelligent contract of intelligent contract layer containing several testing algorithms and Corresponding testing task.Testing algorithm and testing task in this step be such as: testing task is whether one domain name of verification can be used, And domain name is corresponding with many computer rooms, testing node needs to calculate the computer room information nearest from oneself by testing algorithm, asks The computer room is asked to be tested.The IP that specific testing algorithm such as passes through acquisition testing node analyzes node location, scanning machine Room information, the position for calculating the IP of which computer room is nearest from testing node, then is defined as needing to be implemented the computer room of testing task.
In one embodiment, before step S2, comprising: by preset testing maintenance interface, obtain group that user uploads Method of determining and calculating and testing task, testing algorithm and testing task are stored in the intelligent contract of block chain network;By preset Testing maintenance interface obtains the testing algorithm or testing task of user query, and testing algorithm or testing task are tieed up by testing Shield interface is shown;By preset testing maintenance interface, the testing algorithm or testing task of user's modification are obtained, by testing Algorithm or testing task are updated in the intelligent contract of block chain network.
The main body of the present embodiment is with the node for safeguarding intelligent contract permission, and commonly energy conservation safeguards permission without this.When need When upgrading or modifying testing algorithm, through this embodiment to the testing algorithm and testing task in intelligent contract, according to demand Increased, modified and is deleted.
In one embodiment, step S2, comprising: after obtaining book keeping operation right in turn, read from block chain network Take the preset testing algorithm of intelligent contract and testing task;The testing that will be stored in the intelligent contract of testing algorithm and own node Algorithm is compared, if it is different, then by the testing algorithm of testing algorithm replacement own node storage;Call own node storage Testing algorithm executes testing task, obtains testing result.
Any node is after obtaining right of keeping accounts in turn, in order to which the testing algorithm in the intelligent contract with block chain network is same Step, before carrying out testing task, from the testing algorithm and testing task read in block chain network in intelligent contract, with itself intelligence The testing algorithm that can be stored in contract be compared with it is synchronous after, then execute testing task, guarantee the testing algorithm executed every time It is newest with testing task.
In order to synchronize the intelligent contract for directly upgrading or modifying in block chain network, the present embodiment is carrying out testing task Before, the synchronous working of intelligent contract is also carried out, realizes the maintenance of testing algorithm, safeguards that testing algorithm and testing task are simply square Just, it overcomes traditional testing node and needs one by one upgrading testing algorithm manually, problem difficult in maintenance.
Step S3 generates testing block: testing result generated into testing block, and carries out cochain in block chain network, Form new block chain.
After testing node completes testing task, testing block also is generated to testing result, is shared in block chain network, For other nodes sharing testing results.
In one embodiment, step S3, comprising: by testing result generate testing block after, in block chain network into Row broadcast carries out consistency checking to testing block by other nodes, when testing block is by the verifying of M other nodes, It is defined as testing block and completes cochain in block chain network, form new block chain.Wherein, consistency checking, such as Fig. 4 institute Show, in the following way:
Step S301, for the first time verify: after receiving broadcast, according to obtained in common recognition mechanism in turn keep accounts right testing section Point puts in order, judge to broadcast testing block node whether with put in order consistent, verifying is defined as if inconsistent not Pass through, terminate verifying, continues to verify if consistent.
Any node carries out consistency checking after receiving broadcast in block chain.In order to reduce consumption required for verifying Time and calculation power cost, preferably testing node carry out consistency checking to testing block, and testing node is not only by the testing of generation Block is broadcasted, and is waited the consistency checking of other nodes, is also carried out consistency to the testing block of other node broadcasts and test Card.Node receives the testing block of other node broadcasts in block chain network by peer node when receiving broadcast.Due to The testing node for obtaining right of keeping accounts in turn is determined in step S1, therefore verifying for the first time is that node is dialled according in common recognition mechanism Putting in order for node is surveyed, whether the testing block sequence that judgement goes out block every time is consistent, to guarantee consistency.
Second of verifying: step S302 obtains the data information in the block body of testing block, the Hash in block head Value, to data information according to hash value algorithms, be verified value, validation value and cryptographic Hash compared, judge whether it is identical, It verifies if different and does not pass through, terminate verifying, after if they are the same then signing to the cryptographic Hash in block head, continue to be broadcast to area Other nodes in block chain network.
The data information of this step is testing as a result, whether the data that this step is used to verify testing block itself are usurped Change.When validation value is identical as cryptographic Hash, it is believed that testing result is not tampered with.
When testing block is by the verifying of M other nodes, completion cochain is also carried out the testing block for completing cochain same Step updates, and all nodes in block chain network in itself block chain list to being updated: before reading in testing block Cryptographic Hash, the cryptographic Hash of current block of one block are compared, when block chain list with the block chain list in own node Last-of-chain when being the cryptographic Hash of previous block, the cryptographic Hash of current block, corresponding testing node are added into block chain together In list, testing block block is defined as last-of-chain block, realizes the synchronization of data in block chain network.
After the testing node of predetermined number completes testing task, intelligent contract is triggered, re-starts step S1 screening Testing node.
Auto-dial testing method of the present embodiment based on block chain, testing node obtain node weight by resource contention mode Benefit, it is equal to each node, do not allow to generate dispute;Testing algorithm passes through intelligent contract and synchronizes, and calculates convenient for updating testing Method;Book keeping operation cochain is carried out to testing result, guarantees the transparency of account book and the fairness of each node, and account book can not be distorted, it can Retrospect.The present embodiment increases what testing node was joined by the advantage that introduces the decentralization of block chain technology and can not distort Enthusiasm, the transparency construct more fair testing network.
In one embodiment it is proposed that a kind of auto-dial testing device based on block chain, as shown in figure 5, including as follows Module:
Testing node module is screened, for filtering out the testing section of predetermined number in block chain network by common recognition mechanism Point, testing node obtain right of keeping accounts in turn according to preset timetable;
Testing task module is executed, for reading intelligence from block chain network after obtaining book keeping operation right in turn The preset testing algorithm of contract and testing task execute testing task by testing algorithm, obtain testing result;
Testing block module is generated, for testing result to be generated testing block, and carries out cochain in block chain network, Form new block chain.
In one embodiment it is proposed that a kind of computer equipment, including memory and processor, it is stored in memory Computer-readable instruction, when computer-readable instruction is executed by processor, so that reality when processor executes computer-readable instruction Step in the auto-dial testing method based on block chain of existing the various embodiments described above.
In one embodiment it is proposed that a kind of storage medium for being stored with computer-readable instruction, computer-readable finger When order is executed by one or more processors so that one or more processors execute the various embodiments described above based on block chain Step in auto-dial testing method.Wherein, storage medium can be non-volatile memory medium.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of above-described embodiment is can It is completed with instructing relevant hardware by program, which can be stored in a computer readable storage medium, storage Medium may include: read-only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), disk or CD etc..
Each technical characteristic of embodiment described above can be combined arbitrarily, for simplicity of description, not to above-mentioned reality It applies all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited In contradiction, all should be considered as described in this specification.
Some exemplary embodiments of the invention above described embodiment only expresses, the description thereof is more specific and detailed, but It cannot be construed as a limitation to the scope of the present invention.It should be pointed out that for the ordinary skill people of this field For member, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to of the invention Protection scope.Therefore, the scope of protection of the patent of the invention shall be subject to the appended claims.

Claims (10)

1. a kind of auto-dial testing method based on block chain characterized by comprising
The testing node of predetermined number is filtered out in block chain network by common recognition mechanism, the testing node is according to preset Timetable obtains right of keeping accounts in turn;
After obtaining book keeping operation right in turn, the preset testing algorithm of intelligent contract is read from the block chain network and is dialled Survey task executes the testing task by the testing algorithm, obtains testing result;
The testing result is generated into testing block, and carries out cochain in the block chain network, forms new block chain.
2. the auto-dial testing method according to claim 1 based on block chain, which is characterized in that described to pass through common recognition mechanism The testing node of predetermined number is filtered out in block chain network, the testing node is remembered in turn according to preset timetable Account right, comprising:
The node resources information of own node is acquired, the node resources information includes network connectivty, CPU idleness and memory The node resources information is broadcast to other nodes in the block chain network by idleness;
It obtains in the block chain network after the node resources information of multiple nodes, by the network connection speed in network connectivty Degree, CPU idleness are added with memory idleness, the node resource value of each node are obtained, to the node resource value of multiple nodes It sorts from high in the end, filters out the highest multiple nodes of node resource value;
By the common recognition mechanism of the block chain network, automatic ballot passes through common recognition mechanism record to the multiple nodes filtered out The highest predetermined number node definition of number of votes obtained is testing node by the votes of all nodes in the block chain network.
3. the auto-dial testing method according to claim 2 based on block chain, which is characterized in that described to multiple nodes Node resource value sorts from high in the end, filters out the highest multiple nodes of node resource value, comprising:
In the highest multiple nodes of the screening node resource value, the node resource value of at least two nodes is identical if it exists, The node stability of each node is then obtained, and obtains testing task number, the execution matter of each node from block chain list Score is measured, the node contribution degree of each node, the node contribution degree Z of i-th of node are calculatediFormula are as follows:
Zi=Ai*a+Bi*b+Ci*c
A+b+c=100%
Wherein, AiFor the testing task number of i-th of node, BiFor the execution mass fraction of i-th of node, CiFor i-th of node Node stability, a, b and c be percent coefficient;
The highest multiple nodes of the node contribution degree are filtered out at least two nodes;
If the node contribution degree of at least two nodes is identical, the preceding node of broadcast is filtered out.
4. the auto-dial testing method according to claim 1 based on block chain, which is characterized in that remembered in turn when obtaining After account right, the preset testing algorithm of intelligent contract and testing task are read from the block chain network, passes through the testing Algorithm executes the testing task, before obtaining testing result, comprising:
By preset testing maintenance interface, obtain the testing algorithm and testing task that user uploads, by the testing algorithm and The testing task is stored in the intelligent contract of the block chain network;
By preset testing maintenance interface, obtain the testing algorithm or testing task of user query, by the testing algorithm or Testing task is shown by testing maintenance interface;
By preset testing maintenance interface, obtain the testing algorithm or testing task of user's modification, by the testing algorithm or Testing task is updated in the intelligent contract of the block chain network.
5. the auto-dial testing method according to claim 1 based on block chain, which is characterized in that remembered in turn when obtaining After account right, the preset testing algorithm of intelligent contract and testing task are read from the block chain network, passes through the testing Algorithm executes the testing task, obtains testing result, comprising:
After obtaining book keeping operation right in turn, the preset testing algorithm of intelligent contract is read from the block chain network and is dialled Survey task;
The testing algorithm stored in the testing algorithm and the intelligent contract of own node is compared, if it is different, then by institute State the testing algorithm of testing algorithm replacement own node storage;
The testing algorithm for calling own node storage, executes the testing task, obtains testing result.
6. the auto-dial testing method according to claim 1 based on block chain, which is characterized in that described by the testing knot Fruit generates testing block, and carries out cochain in the block chain network, forms new block chain, comprising:
After the testing result is generated testing block, broadcasted in the block chain network, by other nodes to institute It states testing block and carries out consistency checking, when the testing block is by the verifying of M other nodes, be defined as the testing area Block completes cochain in the block chain network, forms new block chain.
7. the auto-dial testing method according to claim 6 based on block chain, which is characterized in that described to pass through other nodes Consistency checking is carried out to the testing block, when the testing block passes through verifying, comprising:
After receiving broadcast, according to putting in order for right testing node of keeping accounts in turn is obtained in common recognition mechanism, judge to broadcast institute State testing block node whether with put in order consistent, verifying is defined as if inconsistent and is not passed through, terminates verifying, if unanimously Then continue to verify;
The data information in the block body of the testing block, the cryptographic Hash in the block head are obtained, to the data information According to hash value algorithms, it is verified value;
The validation value and the cryptographic Hash are compared, judge whether identical, verifies if different and does not pass through, terminate to test Card, after then signing if they are the same to the cryptographic Hash in block head, continues other nodes being broadcast in the block chain network.
8. a kind of auto-dial testing device based on block chain characterized by comprising
Testing node module is screened, for the testing node of predetermined number to be filtered out in block chain network by common recognition mechanism, The testing node obtains right of keeping accounts in turn according to preset timetable;
Testing task module is executed, for reading intelligence from the block chain network after obtaining book keeping operation right in turn The preset testing algorithm of contract and testing task execute the testing task by the testing algorithm, obtain testing result;
Testing block module is generated, for the testing result to be generated testing block, and is carried out in the block chain network Cochain forms new block chain.
9. a kind of computer equipment, including memory and processor, it is stored with computer-readable instruction in the memory, it is described When computer-readable instruction is executed by the processor, so that the processor executes such as any one of claims 1 to 7 right It is required that the step of auto-dial testing method based on block chain.
10. a kind of storage medium for being stored with computer-readable instruction, the computer-readable instruction is handled by one or more When device executes, so that one or more processors are executed is based on block chain as described in any one of claims 1 to 7 claim Auto-dial testing method the step of.
CN201910000487.6A 2019-01-02 2019-01-02 Automatic dial testing method, device, equipment and storage medium based on block chain Active CN109936486B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910000487.6A CN109936486B (en) 2019-01-02 2019-01-02 Automatic dial testing method, device, equipment and storage medium based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910000487.6A CN109936486B (en) 2019-01-02 2019-01-02 Automatic dial testing method, device, equipment and storage medium based on block chain

Publications (2)

Publication Number Publication Date
CN109936486A true CN109936486A (en) 2019-06-25
CN109936486B CN109936486B (en) 2021-11-26

Family

ID=66984996

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910000487.6A Active CN109936486B (en) 2019-01-02 2019-01-02 Automatic dial testing method, device, equipment and storage medium based on block chain

Country Status (1)

Country Link
CN (1) CN109936486B (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109872152A (en) * 2019-01-11 2019-06-11 平安科技(深圳)有限公司 Block chain common recognition method and relevant device based on share authorisation verification mechanism
CN110572468A (en) * 2019-09-17 2019-12-13 平安科技(深圳)有限公司 server cluster file synchronization method and device, electronic equipment and storage medium
CN110943869A (en) * 2019-12-16 2020-03-31 杭州复杂美科技有限公司 Block consensus and broadcast method, equipment and storage medium
CN111353177A (en) * 2020-05-25 2020-06-30 杭州趣链科技有限公司 Block chain-based privacy large file storage system
CN111651260A (en) * 2020-06-24 2020-09-11 北京米弘科技有限公司 Network detection task scheduling method and device based on block chain technology
CN112860509A (en) * 2021-01-14 2021-05-28 金茂数字科技有限公司 Dial testing alarm method and device
CN113726758A (en) * 2021-08-25 2021-11-30 百保(上海)科技有限公司 Data privacy calculation method and system based on block chain
CN113949657A (en) * 2021-11-30 2022-01-18 中国电信股份有限公司 Internet of things detection device, system and test method
CN114189522A (en) * 2021-10-15 2022-03-15 敏博科技(武汉)有限公司 Block chain consensus method and system based on priority in Internet of vehicles
CN114430383A (en) * 2022-01-29 2022-05-03 北京百度网讯科技有限公司 Method and device for screening detection nodes, electronic equipment and storage medium
CN115514663A (en) * 2022-09-23 2022-12-23 北京奇艺世纪科技有限公司 Dial testing method, system, device, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106569887A (en) * 2016-11-04 2017-04-19 东南大学 Fine-grained task scheduling method under cloud environment
US9934138B1 (en) * 2016-12-07 2018-04-03 International Business Machines Corporation Application testing on a blockchain
WO2018149505A1 (en) * 2017-02-17 2018-08-23 Nokia Technologies Oy Voting-consensus distributed ledger
CN108848055A (en) * 2018-05-03 2018-11-20 中国银联股份有限公司 A kind of block chain common recognition method, accounting nodes and node
CN108900380A (en) * 2018-07-14 2018-11-27 上海分布信息科技有限公司 A kind of node administration method and its realize system
CN109088792A (en) * 2018-08-06 2018-12-25 佛山市甜慕链客科技有限公司 A kind of block chain data transmission testing method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106569887A (en) * 2016-11-04 2017-04-19 东南大学 Fine-grained task scheduling method under cloud environment
US9934138B1 (en) * 2016-12-07 2018-04-03 International Business Machines Corporation Application testing on a blockchain
WO2018149505A1 (en) * 2017-02-17 2018-08-23 Nokia Technologies Oy Voting-consensus distributed ledger
CN108848055A (en) * 2018-05-03 2018-11-20 中国银联股份有限公司 A kind of block chain common recognition method, accounting nodes and node
CN108900380A (en) * 2018-07-14 2018-11-27 上海分布信息科技有限公司 A kind of node administration method and its realize system
CN109088792A (en) * 2018-08-06 2018-12-25 佛山市甜慕链客科技有限公司 A kind of block chain data transmission testing method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李彬: "区块链:需求侧资源参与电网互动的支撑技术", 《电力建设》 *

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109872152A (en) * 2019-01-11 2019-06-11 平安科技(深圳)有限公司 Block chain common recognition method and relevant device based on share authorisation verification mechanism
CN109872152B (en) * 2019-01-11 2022-07-15 平安科技(深圳)有限公司 Block chain consensus method based on share authorization certification mechanism and related equipment
CN110572468A (en) * 2019-09-17 2019-12-13 平安科技(深圳)有限公司 server cluster file synchronization method and device, electronic equipment and storage medium
CN110572468B (en) * 2019-09-17 2022-11-04 平安科技(深圳)有限公司 Server cluster file synchronization method and device, electronic equipment and storage medium
CN110943869B (en) * 2019-12-16 2022-03-04 杭州复杂美科技有限公司 Block consensus and broadcast method, equipment and storage medium
CN110943869A (en) * 2019-12-16 2020-03-31 杭州复杂美科技有限公司 Block consensus and broadcast method, equipment and storage medium
CN111353177A (en) * 2020-05-25 2020-06-30 杭州趣链科技有限公司 Block chain-based privacy large file storage system
CN111651260A (en) * 2020-06-24 2020-09-11 北京米弘科技有限公司 Network detection task scheduling method and device based on block chain technology
CN112860509A (en) * 2021-01-14 2021-05-28 金茂数字科技有限公司 Dial testing alarm method and device
CN113726758A (en) * 2021-08-25 2021-11-30 百保(上海)科技有限公司 Data privacy calculation method and system based on block chain
CN114189522A (en) * 2021-10-15 2022-03-15 敏博科技(武汉)有限公司 Block chain consensus method and system based on priority in Internet of vehicles
CN114189522B (en) * 2021-10-15 2024-04-16 敏博科技(武汉)有限公司 Priority-based blockchain consensus method and system in Internet of vehicles
CN113949657A (en) * 2021-11-30 2022-01-18 中国电信股份有限公司 Internet of things detection device, system and test method
CN114430383A (en) * 2022-01-29 2022-05-03 北京百度网讯科技有限公司 Method and device for screening detection nodes, electronic equipment and storage medium
CN115514663A (en) * 2022-09-23 2022-12-23 北京奇艺世纪科技有限公司 Dial testing method, system, device, electronic equipment and storage medium
CN115514663B (en) * 2022-09-23 2023-10-27 北京奇艺世纪科技有限公司 Dial testing method, system, device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN109936486B (en) 2021-11-26

Similar Documents

Publication Publication Date Title
CN109936486A (en) Auto-dial testing method, apparatus, equipment and storage medium based on block chain
CN109639413A (en) A kind of block catenary system based on mobile ad hoc network
van der Aalst et al. Finding structure in unstructured processes: The case for process mining
US7783973B2 (en) Change approvals for computing systems
CN106357457B (en) A kind of alarm test method, apparatus and system
CN107302450A (en) A kind of data acquisition session variation and device
CN105635066B (en) A kind of management method and device of client application
CN109544982B (en) Parking information sharing method and system
CN108710681A (en) File acquisition method, device, equipment and storage medium
CN105550248B (en) User information method for digging and device
CN107741950A (en) Processing method, device, processor and the service end of data syn-chronization task
CN111291060A (en) Method, device and computer readable medium for managing block chain nodes
JP5278309B2 (en) Audit program, audit system, and audit method
US11343355B1 (en) Automated mapping of multi-tier applications in a distributed system
CN104615716B (en) Distributed social network information acquisition method and system based on priority sequence
CN114301935B (en) Reputation-based internet of things edge cloud collaborative federal learning node selection method
CN112860569A (en) Automatic testing method and device, electronic equipment and storage medium
Cole et al. Modeling the energy consumption of blockchain consensus algorithms
CN108733698B (en) Log message processing method and background service system
CN111343004A (en) Docker-based Fabric network remote deployment method, device and system
Vilalta et al. Zero-touch network slicing through multi-domain transport networks
CN110266872A (en) Management-control method, device and the cloud address book system of address book data
CN114358907A (en) Financial risk prediction method and system based on block chain federal learning
CN106779485A (en) Total management system and data processing method based on SOA framework
CN115022326A (en) Block chain Byzantine fault-tolerant consensus method based on collaborative filtering recommendation

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