CN110647439B - Method and device for confirming block chain system deployment, computer equipment and storage medium - Google Patents

Method and device for confirming block chain system deployment, computer equipment and storage medium Download PDF

Info

Publication number
CN110647439B
CN110647439B CN201910754695.5A CN201910754695A CN110647439B CN 110647439 B CN110647439 B CN 110647439B CN 201910754695 A CN201910754695 A CN 201910754695A CN 110647439 B CN110647439 B CN 110647439B
Authority
CN
China
Prior art keywords
account
blockchain system
intelligent contract
node
block chain
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910754695.5A
Other languages
Chinese (zh)
Other versions
CN110647439A (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.)
OneConnect Financial Technology Co Ltd Shanghai
Original Assignee
OneConnect Financial Technology Co Ltd Shanghai
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 OneConnect Financial Technology Co Ltd Shanghai filed Critical OneConnect Financial Technology Co Ltd Shanghai
Priority to CN201910754695.5A priority Critical patent/CN110647439B/en
Publication of CN110647439A publication Critical patent/CN110647439A/en
Application granted granted Critical
Publication of CN110647439B publication Critical patent/CN110647439B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3055Monitoring arrangements for monitoring the status of the computing system or of the computing system component, e.g. monitoring if the computing system is on, off, available, not available
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3006Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system is distributed, e.g. networked systems, clusters, multiprocessor systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/302Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3065Monitoring arrangements determined by the means or processing involved in reporting the monitored data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2201/00Indexing scheme relating to error detection, to error correction, and to monitoring
    • G06F2201/865Monitoring of software
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2201/00Indexing scheme relating to error detection, to error correction, and to monitoring
    • G06F2201/875Monitoring of systems including the internet

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Computing Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Mathematical Physics (AREA)
  • Software Systems (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The invention discloses a method and a device for confirming block chain system deployment, computer equipment and a storage medium, which relate to the technical field of block chains and are used for effectively determining whether the block chain system is successfully deployed and avoiding polluting service data, and the main technical scheme of the invention is as follows: deploying the blockchain system through a deployment script; confirming whether the service of each node is started successfully or not through the log of each node in the block chain system; if it is confirmed that the service of each node in the blockchain system is successfully started, deploying an intelligent contract in the blockchain system, wherein an endorsement policy set by the intelligent contract is that an endorsement signature of all nodes in the blockchain system is needed for transfer transaction; and when the first account number is determined to successfully transfer the preset amount to the second account number, determining that the blockchain system is successfully deployed.

Description

Method and device for confirming block chain system deployment, computer equipment and storage medium
Technical Field
The present invention relates to the field of blockchain technologies, and in particular, to a method and an apparatus for confirming blockchain system deployment, a computer device, and a storage medium.
Background
The block chain is a recording technology different from the traditional centralized accounting mode, participates in nodes on a block chain system, possibly does not belong to the same organization, and does not need to trust each other; the blockchain data is maintained by all nodes together, and each node participating in maintenance can obtain a copy of the complete record. Compared with the traditional accounting technology, the method has the characteristics that: maintaining a chain which grows continuously, only adding records possibly, and the records which occur cannot be tampered; the consensus can be achieved without centralized control, and the realization adopts the distributed mode as much as possible; the method ensures that the transaction cannot be repudiated and destroyed through a cryptology mechanism, and protects the privacy of user information and records as much as possible.
Since the blockchain can only add records, records that occurred cannot be tampered with. Therefore, when the block chain is on line in production, it is difficult to confirm whether the service is successfully deployed. Generally, determining whether a blockchain system is deployed successfully can only be performed by judging logs of each node of the blockchain system or testing some data through an intelligent contract applied to a service. The former judging method only can judge whether the single node is successfully deployed or not, but is difficult to judge whether the whole system is communicated or not; the latter method has two disadvantages, one, the block chain data can not be tampered and deleted, so the test data can exist permanently, and the intelligent contract of the business application does not necessarily need all organization endorsement signatures, so it can not verify whether all the organization nodes in the alliance chain are connected.
Disclosure of Invention
The invention provides a method and a device for confirming block chain system deployment, computer equipment and a storage medium, which can effectively confirm whether the block chain system is successfully deployed and avoid polluting service data.
The invention provides a method for deploying a confirmation block chain system, which comprises the following steps:
deploying the blockchain system through a deployment script;
confirming whether the service of each node is started successfully or not through the log of each node in the block chain system;
if it is confirmed that service starting of each node in the blockchain system is successful, deploying an intelligent contract in the blockchain system, wherein an endorsement strategy set by the intelligent contract is that endorsement signatures of all nodes in the blockchain system are needed for transfer transaction;
and when the first account number is determined to successfully transfer the preset amount to the second account number, determining that the blockchain system is successfully deployed.
The invention provides a device for deploying a confirmation block chain system, which comprises:
the deployment module is used for deploying the blockchain system through the deployment script;
the confirming module is used for confirming whether the service of each node is started successfully or not through the log of each node in the block chain system;
the deployment module is used for deploying an intelligent contract in the blockchain system if the service of each node in the blockchain system is successfully started, and the endorsement policy set by the intelligent contract is that the transfer transaction needs the endorsement signatures of all nodes in the blockchain system;
and the determining module is used for determining that the block chain system is successfully deployed when the first account transfers the preset amount to the second account successfully.
A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the above-described method of confirming blockchain system deployment when executing the computer program.
A computer-readable storage medium, in which a computer program is stored, which, when being executed by a processor, implements the above-mentioned method for confirming blockchain system deployment.
The method, the device, the computer equipment and the storage medium for confirming the block chain system deployment deploy the block chain system through the deployment script; confirming whether the service of each node is started successfully or not through the log of each node in the block chain system; and if the service start of each node in the blockchain system is confirmed to be successful, deploying an intelligent contract in the blockchain system, wherein an endorsement policy set by the intelligent contract is that an endorsement signature of all nodes in the blockchain system is needed for the transfer transaction, and when the fact that the transfer of the preset amount from the first account to the second account is successful is confirmed, determining that the deployment of the blockchain system is successful. Compared with the prior art that whether the block chain system is successfully deployed is determined through log judgment of each node of the block chain system or through testing some data by an intelligent contract applied by a service, the method and the device have the advantages that the endorsement policy is firstly deployed in the block chain system, the endorsement signatures of all nodes in the block chain system are required for transfer transaction, then corresponding money is transferred between two established account numbers, and whether the block chain system is successfully deployed is determined through a transfer result.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
FIG. 1 is a flowchart of a method for identifying a block chain system deployment in accordance with an embodiment of the present invention;
FIG. 2 is a flow diagram of determining transfer success in one embodiment of the invention;
FIG. 3 is a schematic block diagram of an apparatus for identifying blockchain system deployment according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a computer device according to an embodiment of the invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without inventive step based on the embodiments of the present invention, are within the scope of protection of the present invention.
In one embodiment, as shown in fig. 1, a method for confirming block chain system deployment is provided, which comprises the following steps
And S10, deploying the blockchain system through a deployment script.
And S20, confirming whether the service of each node is started successfully or not through the log of each node in the block chain system.
Specifically, after the blockchain system is deployed through the deployment script, logs corresponding to each node in the blockchain system are obtained, and then whether each node is started successfully is determined through analysis of the logs of each node.
For the embodiment of the present invention, the method further includes: if it is determined that a node which is not successful in starting exists in the blockchain system, or it is determined that account amounts of the first account number and the second account number are different from an expected amount, the blockchain system is redeployed in the blockchain system, and then whether a node which is not successful in starting exists in the blockchain system is continuously determined through a log, or whether transfer operation between the first account number and the second account number is successful is continuously determined through a set intelligent contract until it is determined that account amounts of the two account numbers are the same as expected after the transfer operation from the first account number to the second account number is performed.
It should be noted that, in order to quickly acquire an unconnected node in a blockchain system so as to perform a connection recovery operation on the unconnected node, in the embodiment of the present invention, when it is determined that a node that has failed to start exists in the blockchain system, or when it is determined that account amounts of the first account number and the second account number are different from an expected amount, a node that has failed to start is acquired, or a node that does not obtain the endorsement signature in the blockchain system is acquired; and then outputting the acquired nodes with unsuccessful starting or the nodes without the endorsement signature in the blockchain system. Therefore, background management personnel can quickly acquire the nodes with problems in the block chain system and timely repair the nodes with problems.
And S30, if the service of each node in the blockchain system is successfully started, deploying an intelligent contract in the blockchain system, wherein an endorsement policy set by the intelligent contract is that an endorsement signature of all nodes in the blockchain system is required for transfer transaction.
The blockchain data in the blockchain system is commonly maintained by all nodes, and each node participating in maintenance can obtain a copy of a complete record. In the embodiment of the invention, whether each node in the blockchain system is successfully deployed is determined through the set intelligent contract, that is, whether each node in the blockchain system is successfully deployed is determined by setting the endorsement policy of the intelligent contract as the endorsement signature of all nodes in the blockchain system required by the transfer transaction. Specifically, the embodiment of the invention executes a specific transfer service logic through the intelligent contract, namely, the whole intelligent contract is used as a transfer logic, and the amount of the transferred two account numbers is compared with the expected amount, so that whether the whole block chain system is connected and successfully deployed is judged.
For the embodiment of the present invention, the execution subject may be a transaction server in a blockchain system, and specifically, deploying an intelligent contract in the blockchain system includes: the transaction server acquires an organization in the block chain system through a corresponding interface of the calling block chain management platform, sends an intelligent contract to the acquired organization, and the intelligent contract is an endorsement policy that an endorsement signature of an internal node needs to be organized for transfer transaction so that the organization can receive the intelligent contract set in the organization and receive the intelligent contract setting result fed back by the organization, and the transaction server can determine whether the block chain system is successfully deployed according to the intelligent contract setting result. It should be noted that the blockchain system in the embodiment of the present invention includes a plurality of organizations, where the organizations are equivalent to blocks in the blockchain system, and each organization includes two nodes, that is, nodes that need to perform transactions, and in the specific embodiment of the present invention, two account numbers that need to perform transfer transactions, that is, a first account number and a second account number, and information such as the amount of money transferred, may be specified in the process of setting an intelligent contract; and in order to transmit information such as the transfer amount of the first account and the second account in a parameter form to the intelligent contract in the process of verifying the blockchain system, whether the blockchain system is successfully deployed is verified through the intelligent contract.
And S40, when the first account transfers the preset amount to the second account successfully, determining that the block chain system is deployed successfully.
The first account and the second account may be two newly created accounts or two existing accounts, which is not specifically limited in the embodiment of the present invention. After the first account number and the second account number are determined, initial amounts of the account numbers corresponding to the first account number and the second account number are required, then the first account number transfers preset amounts to the second account number, whether account number balances of the first account number and the second account number are the same as expected or not is checked, if the account number balances of the first account number and the second account number are the same as expected, the transfer operation is described to have endorsement signatures of all nodes in the block chain system, and at this time, it can be determined that the block chain system is successfully deployed.
Specifically, the preset amount may be confirmed according to the initial amount of the account of the first account, where the preset amount is less than or equal to the initial amount of the account of the first account. For example, the initial amount of the account of the first account is 10 yuan, the initial amount of the account of the second account is 20 yuan, account balances of the first account and the second account are checked after the first account transfers 5 yuan to the second account, if the account balance of the first account is 5 yuan and the account balance of the second account is 25 yuan, it can be determined that the transfer operation from the first account to the second account is successful, and it is determined that the block chain system is successfully deployed according to the transfer operation.
In the embodiment of the invention, after sending an intelligent contract deployment request to each organization in a block chain system, a transaction server receives an intelligent contract deployment result returned by each organization, and then verifies the deployment result, namely, whether the amount of money transferred by a first account number and a second account number of an intelligent contract in each organization is the same as an expectation is verified firstly, if the amount of money transferred by the first account number and the second account number of the intelligent contract in each organization is the same as the expectation, whether the deployment result contains endorsement signatures of nodes in the organization is continuously verified, and if the amount of money transferred by each organization is the same as the expectation and contains endorsement signatures of each node in the organization, the transaction server can determine that the block chain system is successfully deployed.
Specifically, the endorsement policy of the intelligent contract needs to be configured in an AND manner to require endorsement signatures of all organizations, AND organization information in a specific block chain is acquired by calling a corresponding interface of a block chain management platform. Because a new organization may be added into the federation chain of the block chain subsequently, and the endorsement policy needs to support dynamic update, the new organization is added into the endorsement organization so as to confirm whether the newly added organization nodes can be communicated. In order to solve the problem, the embodiment of the invention adds a script for dynamically updating the endorsement policy into the one-key deployment script, and completes the change of the endorsement policy by calling an intelligent contract upgrading interface of a bottom-layer chain. After the setting is completed, if the endorsement signature is not completed by a certain organization, the verification is not passed in the subsequent flow. In the endorsement process, each organization needs to simulate transfer and send a signature of a result after the simulated transfer to the transaction server. The transaction server takes the results of the simulated account transfers of all organizations, performs primary verification, checks that the balance of each account after the simulated transaction of each organization is the same, and does not pass the results if the balance is different; if the signature verification fails, the transfer fails, and if the signature verification passes, the signature verification represents that all organizations sign signatures, and the endorsement signature is valid. So, if the transfer is successful, it can be determined that the blockchain system deployment was successful.
As shown in fig. 2, in an embodiment provided by the present invention, the step S40 of determining that the transfer of the preset amount from the first account to the second account is successful includes:
s401, establishing the first account and the second account through the intelligent contract, and initializing account amounts of the first account and the second account.
It should be noted that if the first account and the second account are two existing accounts, balances of the two accounts are respectively obtained, and if the two accounts are 0 yuan, to facilitate subsequent transfer operations, the account amounts of the two accounts need to be reset, and if the account amount of the first account is set to 10 yuan.
S402, after the first account number transfers preset money to the second account number, checking whether the account money of the first account number and the second account number is the same as the expected money through the intelligent contract.
And S403, if the account amount of the first account number and the second account number is the same as the expected amount, determining that the first account number successfully transfers the preset amount to the second account number.
In the embodiment of the invention, since the endorsement policy set by the intelligent contract is that the transfer transaction requires endorsement signatures of all nodes in the blockchain system, after the first account number transfers the preset amount to the second account number, if the account amounts of the first account number and the second account number are determined to be the same as the expected amount, it is indicated that the transfer operation has obtained the endorsement signatures of all nodes in the blockchain system, that is, all nodes in the blockchain system are connected, and the blockchain system has been successfully deployed.
The embodiment of the invention provides a method for confirming block chain system deployment, which deploys a block chain system through a deployment script; confirming whether the service of each node is started successfully or not through the log of each node in the block chain system; and if the service start of each node in the blockchain system is confirmed to be successful, deploying an intelligent contract in the blockchain system, wherein an endorsement policy set by the intelligent contract is that an endorsement signature of all nodes in the blockchain system is needed for the transfer transaction, and when the fact that the transfer of the preset amount from the first account to the second account is successful is confirmed, determining that the deployment of the blockchain system is successful. Compared with the prior art that whether a blockchain system is successfully deployed or not is determined by judging logs of all nodes of the blockchain system or testing some data through intelligent contracts applied by services, the method and the device for determining the block chain system deployment are characterized in that the endorsement policy is firstly deployed in the blockchain system, the endorsement of endorsement signatures of all nodes in the blockchain system is needed for transfer transaction, then corresponding money is transferred between two created account numbers, and whether the blockchain system is successfully deployed or not is determined through a transfer result.
In one embodiment provided by the present invention, in order to ensure the security of the blockchain system, the intelligent contract needs to be subjected to authority management and network shielding. That is, the right management is used to ensure that only an internal network administrator can execute the intelligent contract, where the network administrator may perform the setting in advance, for example, one or more network administrators may be set, and the embodiment of the present invention is not limited in particular. The network shielding means that an interface of the intelligent contract in the embodiment of the invention can only be accessed through an internal network and can not be accessed through an external network through a firewall, so that the safety of the intelligent contract is ensured.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
In an embodiment, an apparatus for deploying an acknowledgment blockchain system is provided, where the apparatus for deploying the acknowledgment blockchain system corresponds to the method for deploying the acknowledgment blockchain system in the above embodiments one to one. As shown in fig. 3, the apparatus for deploying an acknowledgment blockchain system includes a deployment module 10 and an acknowledgment module 30. The detailed description of each functional module is as follows:
a deployment module 10, configured to deploy the blockchain system through a deployment script;
a confirming module 20, configured to confirm whether the service of each node is successfully started through the log of each node in the blockchain system;
the system comprises a deployment module 10, a block chain system and a database, wherein the deployment module is used for deploying intelligent contracts in the block chain system, and endorsement strategies set by the intelligent contracts are endorsement signatures of all nodes in the block chain system required by transfer transaction;
the confirmation module 20 is further configured to determine that the blockchain system is successfully deployed when it is determined that the first account transfers the preset amount to the second account successfully.
Specifically, the confirmation module 20 includes:
the establishing unit 21 is configured to establish the first account and the second account through the smart contract, and initialize account amounts of the first account and the second account;
the detection unit 22 is configured to check whether account amounts of the first account number and the second account number are the same as an expected amount through the smart contract after a preset amount is transferred from the first account number to the second account number;
the determining unit 23 is configured to determine that the transfer of the preset amount from the first account to the second account is successful if the account amounts of the first account and the second account are the same as the expected amount.
The deployment module 10 is further configured to, if it is determined that a node that is unsuccessful in starting exists in the blockchain system, or it is determined that account amounts of the first account and the second account are different from an expected amount, redeploy the blockchain system in the blockchain system.
Further, the apparatus further comprises:
an obtaining module 30, configured to, if it is determined that a node that is unsuccessful in starting exists in the blockchain system, or it is determined that account amounts of the first account and the second account are different from an expected amount, obtain a node that is unsuccessful in starting, or obtain a node that does not obtain the endorsement signature in the blockchain system;
and an output module 40, configured to output the obtained node with the unsuccessful start or the node without the endorsement signature in the blockchain system.
And the management module 50 is used for performing authority management and network shielding on the intelligent contract.
For specific limitations of the device for deploying the acknowledgment blockchain system, reference may be made to the above limitations of the method for deploying the acknowledgment blockchain system, which are not described herein again. The various modules in the above-described acknowledgement blockchain system deployment apparatus may be implemented in whole or in part by software, hardware, and combinations thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 4. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a method of validating blockchain system deployment.
In one embodiment, a computer device is provided, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
deploying the blockchain system through a deployment script;
confirming whether the service of each node is started successfully or not through the log of each node in the block chain system;
if it is confirmed that the service of each node in the blockchain system is successfully started, deploying an intelligent contract in the blockchain system, wherein an endorsement policy set by the intelligent contract is that an endorsement signature of all nodes in the blockchain system is needed for transfer transaction;
and when the first account number is determined to successfully transfer the preset amount to the second account number, determining that the blockchain system is successfully deployed.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
deploying the blockchain system through a deployment script;
confirming whether the service of each node is started successfully or not through the log of each node in the block chain system;
if it is confirmed that service starting of each node in the blockchain system is successful, deploying an intelligent contract in the blockchain system, wherein an endorsement strategy set by the intelligent contract is that endorsement signatures of all nodes in the blockchain system are needed for transfer transaction;
and when the first account number is determined to successfully transfer the preset amount to the second account number, determining that the blockchain system is successfully deployed.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above may be implemented by hardware instructions of a computer program, which may be stored in a non-volatile computer-readable storage medium, and when executed, may include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), rambus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

Claims (10)

1. A method of validating a blockchain system deployment, the method comprising:
deploying the blockchain system through a deployment script;
confirming whether the service of each node is started successfully or not through the log of each node in the block chain system;
if it is confirmed that the service of each node in the blockchain system is successfully started, deploying an intelligent contract in the blockchain system, wherein an endorsement policy set by the intelligent contract is that endorsement signatures of all nodes in the blockchain system are needed for transfer transaction, and the endorsement policy set by the intelligent contract is used for determining whether each node in the blockchain system is successfully deployed; the intelligent contract is provided with an interface for transmitting parameters, and the intelligent contract receives the transfer amount transmitted to a first account and a second account of the intelligent contract in the form of parameters through the interface;
and when the fact that the first account transfers the preset amount to the second account successfully is determined, confirming that endorsement signatures of all nodes in the block chain system are obtained, and determining that the block chain system is deployed successfully.
2. The method of confirming block chain system deployment of claim 1, wherein the determining that the transfer of the preset amount of money from the first account to the second account is successful comprises:
establishing the first account and the second account through the intelligent contract, and initializing account amounts of the first account and the second account;
after the first account number transfers a preset amount to the second account number, checking whether account amounts of the first account number and the second account number are the same as an expected amount through the intelligent contract;
and if the account amount of the first account number and the second account number is the same as the expected amount, determining that the first account number successfully transfers the preset amount to the second account number.
3. The method of confirming blockchain system deployment of claim 2, further comprising:
if it is confirmed that a node which is not successfully started exists in the blockchain system, or the account amount of the first account number and the account amount of the second account number are different from the expected amount, the blockchain system is redeployed in the blockchain system.
4. The method of validating a blockchain system deployment as claimed in claim 2, further comprising:
if it is confirmed that a node which is not successful in starting exists in the block chain system, or the account amount of the first account number and the account amount of the second account number are different from the expected amount, acquiring a node which is not successful in starting or acquiring a node which is not signed by the endorsement in the block chain system;
and outputting the acquired nodes with unsuccessful starting or the nodes without the endorsement signature in the block chain system.
5. The method of confirming blockchain system deployment of claim 1, further comprising:
and carrying out authority management and network shielding on the intelligent contract.
6. An apparatus for validating a blockchain system deployment, the apparatus comprising:
the deployment module is used for deploying the block chain system through a deployment script;
the confirming module is used for confirming whether the service of each node is started successfully or not through the log of each node in the block chain system;
the deployment module is used for deploying an intelligent contract in the blockchain system if the service start of each node in the blockchain system is confirmed to be successful, the endorsement policy set by the intelligent contract is that the transfer transaction needs endorsement signatures of all nodes in the blockchain system, and the endorsement policy set by the intelligent contract is used for determining whether each node in the blockchain system is deployed successfully; the intelligent contract is provided with an interface for transmitting parameters, and the intelligent contract receives the transfer amount transmitted to a first account number and a second account number of the intelligent contract in the form of parameters through the interface;
and the confirmation module is further used for confirming that endorsement signatures of all nodes in the blockchain system are obtained and confirming that the blockchain system is successfully deployed when the first account number is confirmed to successfully transfer the preset amount to the second account number.
7. The apparatus of claim 6, wherein the determining module comprises:
the establishing unit is used for establishing the first account and the second account through the intelligent contract and initializing account sums of the first account and the second account;
the detection unit is used for checking whether the account amount of the first account number and the second account number is the same as the expected amount through the intelligent contract after the first account number transfers the preset amount to the second account number;
and the determining unit is used for determining that the preset amount is successfully transferred from the first account to the second account if the account amount of the first account and the second account is the same as the expected amount.
8. The apparatus for confirming block chain system deployment of claim 7, wherein the apparatus further comprises:
the deployment module is further configured to, if it is determined that a node that is unsuccessful in starting exists in the blockchain system, or it is determined that account amounts of the first account and the second account are different from an expected amount, redeploy the blockchain system in the blockchain system.
9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor when executing the computer program implements the method of confirming block chain system deployment according to any one of claims 1 to 5.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method of confirming a blockchain system deployment according to any one of claims 1 to 5.
CN201910754695.5A 2019-08-15 2019-08-15 Method and device for confirming block chain system deployment, computer equipment and storage medium Active CN110647439B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910754695.5A CN110647439B (en) 2019-08-15 2019-08-15 Method and device for confirming block chain system deployment, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910754695.5A CN110647439B (en) 2019-08-15 2019-08-15 Method and device for confirming block chain system deployment, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110647439A CN110647439A (en) 2020-01-03
CN110647439B true CN110647439B (en) 2023-02-03

Family

ID=69009687

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910754695.5A Active CN110647439B (en) 2019-08-15 2019-08-15 Method and device for confirming block chain system deployment, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110647439B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111368340A (en) * 2020-01-04 2020-07-03 链农(深圳)信息科技有限公司 Block chain-based evidence-based security verification method and device and hardware equipment
CN111352705B (en) * 2020-02-25 2023-10-31 百度在线网络技术(北京)有限公司 Transaction processing method, device, equipment and medium of block chain

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105976231A (en) * 2016-06-24 2016-09-28 深圳前海微众银行股份有限公司 Asset management method based on intelligent block chain contracts and nodes
WO2018076762A1 (en) * 2016-10-27 2018-05-03 上海亿账通区块链科技有限公司 Block chain-based transaction verification method and system, electronic device, and medium
CN108256864A (en) * 2018-02-13 2018-07-06 中链科技有限公司 Between a kind of block chain across the foundation of chain alliance and communication means, system
CN108288159A (en) * 2018-03-07 2018-07-17 物数(上海)信息科技有限公司 Across chain method of commerce, system, equipment and storage medium based on multi-tiling chain
CN108717466A (en) * 2018-06-05 2018-10-30 中国平安人寿保险股份有限公司 Collage-credit data storage method, device, computer equipment and storage medium
WO2019011179A1 (en) * 2017-07-10 2019-01-17 腾讯科技(深圳)有限公司 Certificate management method, system, network device and computer readable storage medium
CN109728954A (en) * 2019-01-04 2019-05-07 深圳壹账通智能科技有限公司 Alliance's chain node management system and method
CN109788032A (en) * 2018-12-17 2019-05-21 深圳壹账通智能科技有限公司 Acquisition methods, device, computer equipment and the storage medium of image file

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105976231A (en) * 2016-06-24 2016-09-28 深圳前海微众银行股份有限公司 Asset management method based on intelligent block chain contracts and nodes
WO2018076762A1 (en) * 2016-10-27 2018-05-03 上海亿账通区块链科技有限公司 Block chain-based transaction verification method and system, electronic device, and medium
WO2019011179A1 (en) * 2017-07-10 2019-01-17 腾讯科技(深圳)有限公司 Certificate management method, system, network device and computer readable storage medium
CN108256864A (en) * 2018-02-13 2018-07-06 中链科技有限公司 Between a kind of block chain across the foundation of chain alliance and communication means, system
CN108288159A (en) * 2018-03-07 2018-07-17 物数(上海)信息科技有限公司 Across chain method of commerce, system, equipment and storage medium based on multi-tiling chain
CN108717466A (en) * 2018-06-05 2018-10-30 中国平安人寿保险股份有限公司 Collage-credit data storage method, device, computer equipment and storage medium
CN109788032A (en) * 2018-12-17 2019-05-21 深圳壹账通智能科技有限公司 Acquisition methods, device, computer equipment and the storage medium of image file
CN109728954A (en) * 2019-01-04 2019-05-07 深圳壹账通智能科技有限公司 Alliance's chain node management system and method

Also Published As

Publication number Publication date
CN110647439A (en) 2020-01-03

Similar Documents

Publication Publication Date Title
CN110598446A (en) Block chain based test method and device, storage medium and computer equipment
CN109726099B (en) Application gray level publishing method, device and equipment
CN112363941A (en) Interface testing method and device, computer equipment and storage medium
CN109542767B (en) Automatic testing method and device based on block chain, computer equipment and storage medium
CN110647439B (en) Method and device for confirming block chain system deployment, computer equipment and storage medium
CN110992178A (en) Verification method and device for block chain node, computer equipment and storage medium
CN110348220A (en) A kind of bug excavation method, loophole repair verification method, device and electronic equipment
CN109669859A (en) Service test method, device, computer equipment and storage medium
CN108390786B (en) Business operation and maintenance method and device and electronic equipment
CN114546837A (en) Interface test method, device, equipment and storage medium
CN110933022A (en) Block processing method and device, computer equipment and storage medium
CN113468276A (en) Trusted data acquisition method and device of on-chain prediction machine and electronic equipment
CN115730935A (en) Data processing method, device and equipment based on block chain and readable storage medium
CN112448948A (en) Firewall opening result verification method, device, equipment and storage medium
CN112561506A (en) Live broadcast data processing method, system, device and medium based on virtual currency
CN111047323A (en) Credit transaction method and device based on block chain and hardware equipment
CN114579473B (en) Application testing method, device, equipment and storage medium
CN111131329A (en) Data consensus method and device for block chain system and hardware equipment
CN111932326B (en) Data processing method based on block chain network and related equipment
CN112383536B (en) Firewall verification method and device, computer equipment and storage medium
CN114037539A (en) Method and device for detecting single-link failure of insurance
CN111382062B (en) Joint debugging test method and device for real estate transaction system and external institution business system
CN113890751A (en) Method, apparatus and readable storage medium for controlling voting of alliance link authority
CN107769959B (en) Automatic deployment system and method for deploying server sites on server
CN110910140A (en) Method for realizing intelligent contract, front-end server, client, equipment and medium

Legal Events

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