CN109033814B - Intelligent contract triggering method, device, equipment and storage medium - Google Patents

Intelligent contract triggering method, device, equipment and storage medium Download PDF

Info

Publication number
CN109033814B
CN109033814B CN201810791321.6A CN201810791321A CN109033814B CN 109033814 B CN109033814 B CN 109033814B CN 201810791321 A CN201810791321 A CN 201810791321A CN 109033814 B CN109033814 B CN 109033814B
Authority
CN
China
Prior art keywords
intelligent contract
monitoring
information
block generation
setting operation
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
CN201810791321.6A
Other languages
Chinese (zh)
Other versions
CN109033814A (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.)
Baidu Online Network Technology Beijing Co Ltd
Original Assignee
Baidu Online Network Technology Beijing 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 Baidu Online Network Technology Beijing Co Ltd filed Critical Baidu Online Network Technology Beijing Co Ltd
Priority to CN201810791321.6A priority Critical patent/CN109033814B/en
Publication of CN109033814A publication Critical patent/CN109033814A/en
Application granted granted Critical
Publication of CN109033814B publication Critical patent/CN109033814B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/50Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems

Abstract

The embodiment of the invention discloses an intelligent contract triggering method, an intelligent contract triggering device, intelligent contract triggering equipment and a storage medium. The method is applied to a block generation node and comprises the following steps: running an intelligent contract in the received transaction request, and determining whether the intelligent contract contains demand information for executing set operation when a first set condition is met; when the requirement information is determined to be contained, a monitoring task is established according to the requirement information; and generating monitoring information through the monitoring task, wherein the monitoring information is used for triggering a subsequent block generation node to execute the setting operation, or judging whether the current block generation node meets the first setting condition and determining whether the setting operation is executed according to a judgment result. According to the intelligent contract triggering method provided by the embodiment of the invention, the intelligent contract with the follow-up operation execution requirement is found without traversing the historical blocks by the block generation node, so that the consumption of the network resource of the block chain can be reduced, and the workload of the node is reduced.

Description

Intelligent contract triggering method, device, equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of block chains, in particular to an intelligent contract triggering method, an intelligent contract triggering device, intelligent contract triggering equipment and a storage medium.
Background
In a blockchain network, a transaction request initiated by a certain node may include an intelligent contract in which certain operations may be specified to be performed when certain conditions are subsequently met. The conditions may be: a block chain reaches a certain block height, a system time reaches a certain point in time, a certain transaction is performed, a node performs a certain operation, etc.
The block generation node broadcasts the block after generating the block containing the transaction data, and the block chain network node receiving the block determines whether to add the block into a local block chain according to the verification result of the block.
In order to enable the operations specified in the intelligent contract to be executed, the subsequent block generation node needs to know that the intelligent contract with the subsequent operation execution requirement exists in the historical block, and then the intelligent contract is operated to judge whether the execution condition is met currently, so as to determine whether the corresponding operation is executed.
In the prior art, a block generation node finds that an intelligent contract with a subsequent operation execution requirement exists by traversing transaction data in all historical blocks in a block chain, and then judges whether an execution condition is met currently by running the found intelligent contract, so as to determine whether to execute a corresponding operation.
Obviously, the intelligent contracts with the execution requirements of the subsequent operations are found by the way that the block generation node traverses the historical blocks, the workload is large, the resource consumption is excessive, and the intelligent contracts without the specified operations needing to be executed currently are found after the traversal.
Disclosure of Invention
The embodiment of the invention provides an intelligent contract triggering method, an intelligent contract triggering device, intelligent contract triggering equipment and a storage medium, which are used for reducing consumption of block chain network resources and reducing the workload of nodes.
In a first aspect, an embodiment of the present invention provides an intelligent contract triggering method, which is applied to a block generation node, and the method includes:
running an intelligent contract in the received transaction request, and determining whether the intelligent contract contains demand information for executing set operation when a first set condition is met;
when the requirement information is determined to be contained, a monitoring task is established according to the requirement information;
and generating monitoring information through the monitoring task, wherein the monitoring information is used for triggering a subsequent block generation node to execute the setting operation, or judging whether the current block generation node meets the first setting condition and determining whether the setting operation is executed according to a judgment result.
In a second aspect, an embodiment of the present invention further provides an intelligent contract triggering method, which is applied to a block generation node, and the method includes:
acquiring monitoring information, wherein the monitoring information is generated through a monitoring task created by a history block generation node, and the monitoring task is created when the history block generation node determines that an intelligent contract in a received transaction request contains demand information for executing a setting operation when a first setting condition is met;
and acquiring and executing the setting operation in the intelligent contract according to the monitoring information, or judging whether the first setting condition is met currently and determining whether the setting operation in the intelligent contract is acquired and executed according to the judgment result.
In a third aspect, an embodiment of the present invention further provides an intelligent contract triggering apparatus, which is disposed at a block generation node, and includes:
the requirement information determining module is used for operating the intelligent contract in the received transaction request and determining whether the intelligent contract contains requirement information for executing setting operation when a first setting condition is met;
the monitoring task creating module is used for creating a monitoring task according to the demand information when the demand information is determined to be contained;
and the monitoring information generating module is used for generating monitoring information through the monitoring task, wherein the monitoring information is used for triggering a subsequent block generating node to execute the setting operation, or judging whether the current block generating node meets the first setting condition and determining whether the setting operation is executed according to a judgment result.
In a fourth aspect, an embodiment of the present invention further provides an intelligent contract triggering apparatus, which is disposed at a block generation node, and includes:
the monitoring information acquisition module is used for acquiring monitoring information, wherein the monitoring information is generated by a monitoring task created by a history block generation node, and the monitoring task is created when the history block generation node determines that an intelligent contract in a received transaction request contains demand information for executing a setting operation when a first setting condition is met;
and the setting operation executing module is used for acquiring and executing the setting operation in the intelligent contract according to the monitoring information, or judging whether the first setting condition is met currently or not and determining whether the setting operation in the intelligent contract is acquired and executed according to a judgment result.
In a fifth aspect, an embodiment of the present invention further provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor executes the computer program to implement the intelligent contract triggering method according to the embodiment of the present invention.
In a sixth aspect, the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the intelligent contract triggering method according to the present invention.
In the embodiment of the invention, the intelligent contract in the received transaction request is operated, and whether the intelligent contract contains the requirement information for executing the setting operation when the first setting condition is met is determined; when the requirement information is determined to be contained, a monitoring task is established according to the requirement information; and generating monitoring information through the monitoring task, wherein the monitoring information is used for triggering a subsequent block generation node to execute the setting operation, or judging whether the current block generation node meets a first setting condition and determining whether the setting operation is executed according to a judgment result. According to the intelligent contract triggering method provided by the embodiment of the invention, when the block generation node judges that the intelligent contract in the transaction request contains the demand information for executing the setting operation when the first setting condition is met, the monitoring task is created according to the demand information, and the monitoring information is created through the monitoring task, so that the subsequent block generation node executes the setting operation according to the monitoring information, the intelligent contract with the subsequent operation execution demand is found without traversing the history block by the block generation node, the consumption of the block chain network resource can be reduced, and the work load of the node is reduced.
Drawings
FIG. 1 is a flowchart of a method for triggering an intelligent contract according to a first embodiment of the present invention;
FIG. 2 is a flowchart of a method for triggering an intelligent contract according to a second embodiment of the present invention;
FIG. 3a is a flowchart of another intelligent contract triggering method according to the second embodiment of the present invention;
FIG. 3b is a flowchart of another intelligent contract triggering method according to the second embodiment of the present invention;
fig. 4 is a schematic structural diagram of an intelligent contract triggering apparatus in a third embodiment of the present invention;
fig. 5 is a schematic structural diagram of an intelligent contract triggering apparatus according to a fourth embodiment of the present invention;
fig. 6 is a schematic structural diagram of a computer device in the fifth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of an intelligent contract triggering method according to an embodiment of the present invention, which is applicable to a situation where a block chain network triggers and executes a setting operation defined by an intelligent contract in a block chain, where the block chain network may be a public chain, a federation chain, or a private chain, and the block chain network generally includes a plurality of nodes, and the nodes acquire a block generation right to become block generation nodes based on a consensus mechanism. The method may be performed by an intelligent contract triggering apparatus, which may be comprised of hardware and/or software, and may generally be integrated in the equipment carrying the block generating node. The device carrying the block generating node may be an electronic device such as a server, a mobile terminal, or a server cluster. As shown in fig. 1, the method is applied to a block generation node, and the method specifically includes:
and S110, operating the intelligent contract in the received transaction request, and determining whether the intelligent contract contains the demand information for executing the setting operation when the first setting condition is met.
The intelligent contract may be an intelligent contract added to the block by the block generation node and confirmed by other nodes, and may be an intelligent contract stored in any one block in the current block chain. The intelligent contract includes a series of trigger conditions and regulations preset for executing corresponding setting operation. The first set condition may include at least one of the blockchain reaching a first set blockheight, the system time reaching a first set point in time, the blockchain network node performing a first predetermined behavior operation, and reaching a first set timing time.
Specifically, the block generation node runs the intelligent contract in the transaction request through the virtual machine, so as to determine whether the intelligent contract contains the requirement information for executing the setting operation meeting the set first setting condition. Illustratively, the intelligent contract records that the first party node requires the second party node to provide data collection service, and collects certain type of data at 8 points per day, in this example, "8 points" is the first setting condition, and "collects certain type of data" is the setting operation.
And S120, when the requirement information is determined to be contained, creating a monitoring task according to the requirement information.
The monitoring task may be used to monitor the blockchain network and determine whether a trigger condition is currently met, where the trigger condition may be a second set condition or a first set condition.
The number of the monitoring tasks may be the same as the number of the demand information, for example, 10 demand information in the smart contract for performing the setting operation when the first setting condition is satisfied, and 10 monitoring tasks are correspondingly created.
Optionally, creating the monitoring task may be implemented by: establishing a program operation body, and executing a monitoring task by the program operation body; the established program operation body and the monitoring task have one-to-one correspondence.
Wherein, the program running body can be coroutine, thread or process. Specifically, after the monitoring task is created according to the demand information, a program operation body corresponding to the monitoring task is established, and the program operation body executes the corresponding monitoring task, so as to realize real-time monitoring on the block chain network. For example, assuming that the program running entity is a process, and the intelligent contract includes 20 pieces of requirement information for executing the setting operation when the first setting condition is satisfied, 20 monitoring tasks are created, and 20 processes are established, and the 20 processes execute corresponding monitoring tasks respectively.
Optionally, creating the monitoring task may be implemented by: and adding the monitoring tasks into a pre-established message queue, and waiting for one program running body in a preset number of program running bodies to execute the monitoring tasks in the message queue.
Wherein the set number may be a value smaller than the number of monitoring tasks. Specifically, after the monitoring task is added to the pre-established message queue, the monitoring task needs to wait for one program running object in an idle state among a preset number of program running objects to execute. In this embodiment, when the monitoring task is executed, the type of the monitoring task needs to be identified, if the first set condition in the monitoring task appears circularly, that is, appears repeatedly, the monitoring task needs to be added into the message queue after being executed, and if the first set condition in the monitoring task appears only once, the monitoring task does not need to be added into the message queue after being executed.
Specifically, the implementation process of the set number of program runners executing the monitoring tasks in the message queue may be that each program runner in the set number of program runners reads one monitoring task in the message queue in the activated state for execution each time, and executes another monitoring task in the activated state in the resume message queue after the execution is completed until the message queue is empty. For example, assuming that a program running body is a process, 5 processes are established for monitoring tasks, and there are 10 monitoring tasks in a current message queue, the 5 processes respectively read one monitoring task in an activated state for execution, and after one of the processes is completed, continue to read the remaining monitoring task in the activated state in the message queue for execution.
Optionally, the number of the message queues is multiple, and each message queue corresponds to a different service priority and is used for storing the monitoring task with the corresponding service priority; and the program operation bodies with the set quantity read and execute the monitoring tasks according to the service priority of each message queue.
Specifically, when adding a monitoring task to a pre-established message queue, firstly, the service priority of the monitoring task is judged, and then the monitoring task is added to the message queue with the corresponding service priority according to the service priority. In this embodiment, a program executor with a set number preferentially reads and executes the monitoring tasks in the message queue with the highest service priority and not being empty until the message queue with the highest service priority is empty, and then reads and executes the monitoring tasks in the message queue with the next highest service priority, and so on until all the message queues are empty.
And S130, generating monitoring information through the monitoring task.
The monitoring information is used for triggering a subsequent block generation node to execute the setting operation, or judging whether the current block generation node meets the first setting condition and determining whether the setting operation is executed according to a judgment result. The subsequent block generation node may be a node that obtains a block generation right in the block chain network after the monitoring information is generated.
Optionally, generating the monitoring information through the monitoring task may be implemented by: and generating a notification message when the monitoring task is that the second setting condition is met, and sending the notification message to the current block generation node to notify the current block generation node to execute the setting operation after the intelligent contract is found, or judging whether the first setting condition is met or not at present and determining whether the setting operation is executed or not according to the judgment result. Here, the current block generation node is a node that obtains a block generation right in the current block chain network when it is monitored that the second setting condition is satisfied.
Optionally, the notification message includes address information of the intelligent contract, so that the current block generation node finds the intelligent contract according to the address information.
Wherein the second setting condition includes at least one of: when the block chain reaches the second set block height, the system time reaches the second set time point, the block chain network node executes the second preset action operation, and reaches the second set timing time. In this embodiment, the second setting condition may be the same as or different from the first setting condition.
Specifically, in the process of executing the monitoring task, when detecting that the condition of the current block chain meets a second set condition, the program executor generates a notification message and sends the notification message to the current block generation node. If the notification message contains the address information of the intelligent contract, the current block generation node searches the intelligent contract according to the address information, if the second setting condition is the same as the first setting condition, the setting operation corresponding to the first setting condition is directly executed, if the second setting condition is different from the first setting condition, whether the first setting condition is met or not is judged, if yes, the setting operation corresponding to the first setting condition is executed, and if not, the setting operation is not executed until the current condition meets the first setting condition, and the setting operation is executed. If the notification message does not contain the address information of the intelligent contract, the current block generation node traverses the historical blocks of the block chain, finds the intelligent contract containing the demand information, judges whether the current intelligent contract meets a first setting condition, and if the current intelligent contract meets the first setting condition, executes a setting operation corresponding to the first setting condition.
Optionally, generating the monitoring information through the monitoring task may be implemented by: and monitoring whether a first set condition is met or not through the monitoring task, and generating and storing a monitoring result so that a subsequent block generation node can determine whether to execute a set operation or not according to the stored monitoring result. Here, the subsequent block generation node is a node that obtains a block generation right in the block chain network after the monitoring result is saved.
Optionally, the monitoring result includes address information of the intelligent contract, so that the subsequent block generation node finds the intelligent contract according to the address information. The monitoring result may include three types of information, which are respectively: the information of whether the first setting condition is satisfied, the address satisfying the first setting condition and the intelligent contract, and the information satisfying the first setting condition and the setting operation.
If the information in the monitoring result is the information that meets the first setting condition, determining whether to execute the implementation process of the setting operation according to the stored monitoring result, that is, if the first setting condition is currently met, the current block generation node traverses the history blocks of the block chain, finds the intelligent contract containing the required information, and judges whether the first setting condition is currently met, and if the first setting condition is met, the setting operation corresponding to the first setting condition is executed.
If the information in the monitoring result is the address meeting the first setting condition and the intelligent contract, determining whether to execute the implementation process of the setting operation according to the stored monitoring result, wherein if the first setting condition is currently met, the intelligent contract is searched according to the address information, and the setting operation corresponding to the first setting condition is directly executed.
If the information in the monitoring result is the information satisfying the first setting condition and the setting operation, the implementation process of determining whether to execute the setting operation according to the stored monitoring result may be that, if the first setting condition is currently satisfied, the setting operation is directly executed according to the information of the setting operation.
According to the technical scheme of the embodiment, an intelligent contract in a received transaction request is operated, and whether the intelligent contract contains the requirement information for executing the setting operation when a first setting condition is met is determined; when the requirement information is determined to be contained, a monitoring task is established according to the requirement information; and generating monitoring information through the monitoring task, wherein the monitoring information is used for triggering a subsequent block generation node to execute the setting operation, or judging whether the current block generation node meets a first setting condition and determining whether the setting operation is executed according to a judgment result. According to the intelligent contract triggering method provided by the embodiment of the invention, when the block generation node judges that the intelligent contract in the transaction request contains the demand information for executing the setting operation when the first setting condition is met, the monitoring task is created according to the demand information, and the monitoring information is created through the monitoring task, so that the subsequent block generation node executes the setting operation according to the monitoring information, the intelligent contract with the subsequent operation execution demand is found without traversing the history block by the block generation node, the consumption of the block chain network resource can be reduced, and the work load of the node is reduced.
Example two
Fig. 2 is a flowchart of an intelligent contract triggering method according to a second embodiment of the present invention, which is applicable to a situation where a block chain network is triggered to execute a setting operation defined by an intelligent contract in a block chain, where the block chain network may be a public chain, a federation chain, or a private chain, and the block chain network generally includes a plurality of nodes, and the nodes acquire a block generation right to become block generation nodes based on a consensus mechanism. The method may be performed by an intelligent contract triggering apparatus, which may be comprised of hardware and/or software, and may generally be integrated in a device carrying the block generating node, etc. The device carrying the block generating node may be an electronic device such as a server, a mobile terminal, or a server cluster. As shown in fig. 2, the method is applied to a block generation node, and the method specifically includes:
and S210, acquiring monitoring information.
The monitoring information is generated through a monitoring task created by the history block generation node, and the monitoring task is created when the history block generation node determines that the intelligent contract in the received transaction request contains the requirement information for executing the setting operation when the first setting condition is met. The history tile generation node may be a node that has obtained tile generation right before the current tile generation node.
The first setting condition may include at least one of the blockchain reaching a first set blockheight, the system time reaching a first set time point, the blockchain network node performing a first predetermined behavior operation, and reaching a first set timing time.
In this embodiment, when a certain node in the block chain obtains the block generation right to become a block generation node, the block generation node obtains the monitoring information to execute the setting operation in the intelligent contract according to the monitoring information, or determine whether the first setting condition is satisfied currently and determine whether to execute the setting operation according to the determination result.
Optionally, the implementation process of acquiring the monitoring information may be that a notification message is received, the notification message is generated and sent by executing a monitoring task, and the monitoring task is used for sending the notification message when it is monitored that the second set condition is met.
Wherein the second setting condition includes at least one of: when the block chain reaches the second set block height, the system time reaches the second set time point, the block chain network node executes the second preset action operation, and reaches the second set timing time. In this embodiment, the second setting condition may be the same as or different from the first setting condition. The notification message may include address information of the intelligent contract, so that the current block generation node finds the intelligent contract according to the address information.
Optionally, the implementation process of acquiring the monitoring information may be to acquire a stored monitoring result, where the monitoring result is obtained by executing a monitoring task, and the monitoring task is used to monitor whether the first set condition is met and store the monitoring result.
The monitoring result comprises address information of the intelligent contract, so that the current block generation node can search the intelligent contract according to the address information. The monitoring result may include three kinds of information, which are respectively: the information of whether the first setting condition is satisfied, the information of satisfying the first setting condition, the address of the intelligent contract, the information of satisfying the first setting condition, and the information of setting operation.
And S220, acquiring and executing the setting operation in the intelligent contract according to the monitoring information, or judging whether the current condition meets a first setting condition and determining whether the setting operation in the intelligent contract is acquired and executed according to the judgment result.
Optionally, the setting operation in the intelligent contract is acquired and executed according to the monitoring information, or whether the current first setting condition is met is judged, and whether the setting operation in the intelligent contract is acquired and executed is determined according to the judgment result, which may be implemented in the following manner: searching an intelligent contract containing the demand information according to the notification message; and after the intelligent contract is found, executing the setting operation or judging whether the current first setting condition is met or not by operating the intelligent contract and determining whether the setting operation is executed or not according to the judgment result. Optionally, the manner of searching for the intelligent contract containing the demand information according to the notification message may be: searching the intelligent contract according to the address information of the intelligent contract contained in the notification message; or, the intelligent contract is found by traversing the historical blocks in the block chain.
Specifically, when the monitoring task detects that the second setting condition is currently met, a notification message is sent to the current block generation node. If the notification message contains the address information of the intelligent contract, the current block generation node searches the intelligent contract according to the address information and runs the intelligent contract, if the second setting condition is the same as the first setting condition, the setting operation corresponding to the first setting condition is directly executed, if the second setting condition is different from the first setting condition, whether the first setting condition is met or not is judged, if yes, the setting operation corresponding to the first setting condition is executed, and if not, the setting operation is not executed until the current condition meets the first setting condition, and the setting operation is executed. If the notification message does not contain the address information of the intelligent contract, the current block generation node traverses the historical blocks of the block chain, finds the intelligent contract containing the demand information and runs the intelligent contract, judges whether the first setting condition is met currently, and if the first setting condition is met, executes the setting operation corresponding to the first setting condition.
Optionally, the setting operation in the intelligent contract is acquired and executed according to the monitoring information, or whether the current first setting condition is met is judged, and whether the setting operation in the intelligent contract is acquired and executed is determined according to the judgment result, which may be implemented in the following manner: and determining whether a first setting condition is met currently according to the monitoring result, and acquiring and executing a setting operation in the intelligent contract when the first setting condition is met.
The implementation manner of acquiring and executing the setting operation in the smart contract when it is determined that the first setting condition is satisfied may be: when the first setting condition is met, searching the intelligent contract according to the address information of the intelligent contract contained in the monitoring result, and executing the setting operation in the intelligent contract by operating the intelligent contract; alternatively, when it is determined that the first setting condition is satisfied, the setting operation is executed based on information of the setting operation included in the monitoring result.
Specifically, when the current block is determined to meet the first set condition according to the obtained monitoring result, the current block generates a history block in which nodes traverse the block chain, the intelligent contract containing the demand information is searched, whether the current block meets the first set condition is judged, and if the current block meets the first set condition, the setting operation corresponding to the first set condition is executed. Or searching the intelligent contract according to the address information in the monitoring result, and directly executing the setting operation corresponding to the first setting condition. Or directly executing the setting operation according to the information of the setting operation in the monitoring result.
Optionally, after the setting operation in the smart contract is performed, the method further includes: and deleting the monitoring result. This has the advantage of preventing different tile generation nodes from repeatedly acquiring the same monitoring result and repeatedly performing the setting operation.
According to the technical scheme of the embodiment, the monitoring information is acquired, and the setting operation in the intelligent contract is acquired and executed according to the monitoring information, or whether the current first setting condition is met or not is judged, and whether the setting operation in the intelligent contract is acquired and executed or not is determined according to the judgment result. According to the intelligent contract triggering method provided by the embodiment, the current block generation node executes the setting operation according to the monitoring information, and the intelligent contract with the subsequent operation execution requirement is found without traversing the historical block by the current block generation node, so that the consumption of network resources of the block chain can be reduced, and the workload of the node is reduced.
Fig. 3a is a flowchart of another intelligent contract triggering method provided in the second embodiment of the present invention, and as further explained in the foregoing embodiment, as shown in fig. 3a, the method includes:
s310, when the intelligent contract in the received transaction request is determined to contain the requirement information for executing the setting operation when the first setting condition is met, the historical block generation node creates a monitoring task;
and S320, generating a notification message when the monitoring that the second set condition is met through the monitoring task, and sending the notification message to the current block generation node.
S330, the current tile generating node receives the notification message.
And S340, searching the intelligent contract containing the demand information by the current block generating node according to the notification message.
And S350, after the current block generation node finds the intelligent contract, executing a setting operation or judging whether the current block generation node meets a first setting condition or not by operating the intelligent contract and determining whether the setting operation is executed or not according to a judgment result.
In this embodiment, the history block generation node creates a monitoring task. And generating a notification message when the monitoring that the second set condition is met through the monitoring task, and sending the notification message to the current block generation node. If the notification message contains the address information of the intelligent contract, the current block node searches the intelligent contract containing the demand information according to the address information after receiving the notification message, and if the first setting condition is the same as the second setting condition, the setting operation is executed by running the intelligent contract; and if the first setting condition is different from the second setting condition, judging whether the first setting condition is met or not at present, and if so, executing setting operation by running the intelligent contract. If the notification message does not contain the address information of the intelligent contract, after receiving the notification message, the current block node traverses the historical blocks in the historical block chain, finds the intelligent contract containing the demand information, judges whether the current intelligent contract meets the first setting condition, and if the current intelligent contract meets the first setting condition, executes the setting operation by operating the intelligent contract.
According to the technical scheme of the embodiment, the current block generation node searches for the intelligent contract by receiving the notification message generated by the historical block node, and executes the setting operation by operating the intelligent contract, so that the consumption of block chain network resources can be reduced, and the workload of the node is reduced.
Fig. 3b is a flowchart of another intelligent contract triggering method according to a second embodiment of the present invention, and as shown in fig. 3b, the method includes:
s410, when the history block generation node determines that the intelligent contract in the received transaction request contains the requirement information for executing the setting operation when the first setting condition is met, a monitoring task is created.
And S420, monitoring whether the first set condition is met or not through the monitoring task, and generating and storing a monitoring result.
S430, the current block generation node obtains the stored monitoring result.
And S440, determining whether the first setting condition is met currently according to the monitoring result, and acquiring and executing the setting operation in the intelligent contract when the first setting condition is met.
In this embodiment, the history block generation node monitors whether the first set condition is satisfied by the monitoring task, and generates and stores the monitoring result. After the current block generation node obtains the monitoring result, whether the first set condition is met or not is determined according to the monitoring result, if yes, the intelligent contract is searched according to the address information of the intelligent contract contained in the monitoring result, and the setting operation in the intelligent contract is executed by operating the intelligent contract; alternatively, the setting operation is executed based on information of the setting operation included in the monitoring result.
According to the technical scheme of the embodiment, the current block generation node determines whether the current block generation node meets a first setting condition or not by acquiring a monitoring result generated by the historical block generation node, and acquires and executes a setting operation in the intelligent contract when the first setting condition is met. The intelligent contract is searched without traversing the historical blocks by the current block generation node, so that the consumption of the network resources of the block chain can be reduced, and the workload of the node is reduced.
EXAMPLE III
Fig. 4 is a schematic structural diagram of an intelligent contract triggering apparatus according to a third embodiment of the present invention. As shown in fig. 4, the apparatus includes: a requirement information determination module 510, a monitoring task creation module 520, and a monitoring information generation module 530.
A requirement information determining module 510, configured to run an intelligent contract in the received transaction request, and determine whether the intelligent contract includes requirement information for executing a setting operation when a first setting condition is met;
a monitoring task creating module 520, configured to create a monitoring task according to the demand information when it is determined that the demand information is included;
the monitoring information generating module 530 is configured to generate monitoring information through the monitoring task, where the monitoring information is used to trigger a subsequent block generation node to execute a setting operation, or determine whether a first setting condition is currently met and determine whether to execute the setting operation according to a determination result.
Optionally, the monitoring information generating module 530 is further configured to:
through the monitoring task, generating a notification message when the second setting condition is met, and sending the notification message to the current block generation node to notify the current block generation node to execute the setting operation after the intelligent contract is found, or judging whether the first setting condition is met or not at present and determining whether the setting operation is executed or not according to the judgment result; or
And monitoring whether a first set condition is met or not through the monitoring task, and generating and storing a monitoring result so that a subsequent block generation node can determine whether to execute a set operation or not according to the stored monitoring result.
Optionally, the notification message or the monitoring result includes address information of the intelligent contract, so that the current block generation node or the subsequent block generation node finds the intelligent contract according to the address information.
Optionally, the monitoring task creating module 520 is further configured to:
establishing a program operation body, and executing a monitoring task by the program operation body; the established program operation body and the monitoring task have one-to-one correspondence; alternatively, the first and second electrodes may be,
and adding the monitoring tasks into a pre-established message queue, and waiting for one program running body in a preset number of program running bodies to execute the monitoring tasks in the message queue.
Optionally, the monitoring task creating module 520 is further configured to read and execute one monitoring task in the activated state in the message queue each time by each of the program runners in the set number of program runners, and continuously read and execute another monitoring task in the activated state in the message queue after the execution is completed until the message queue is empty.
Optionally, the number of the message queues is multiple, and each message queue corresponds to a different service priority and is used for storing the monitoring task with the corresponding service priority;
and the program operation bodies with the set quantity read and execute the monitoring tasks according to the service priority of each message queue.
Optionally, the program runtime includes: coroutines, threads, or processes.
Optionally, the first setting condition includes at least one of:
when the block chain reaches a first set block height, the system time reaches a first set time point, the block chain network node executes a first preset action operation and reaches a first set timing time;
the second setting condition includes at least one of:
when the block chain reaches the second set block height, the system time reaches the second set time point, the block chain network node executes the second preset action operation, and reaches the second set timing time.
Optionally, the second setting condition is the same as or different from the first setting condition.
The device can execute the methods provided by all the embodiments of the invention, and has corresponding functional modules and beneficial effects for executing the methods. For details not described in detail in this embodiment, reference may be made to the methods provided in all the foregoing embodiments of the present invention.
Example four
Fig. 5 is a schematic structural diagram of an intelligent contract triggering apparatus according to a fourth embodiment of the present invention. As shown in fig. 5, the apparatus includes: a monitoring information acquisition module 610 and a setting operation execution module 620.
A monitoring information obtaining module 610, configured to obtain monitoring information, where the monitoring information is generated by a monitoring task created by a history block generation node, and the monitoring task is created by the history block generation node when it is determined that an intelligent contract in a received transaction request includes requirement information for executing a setting operation when a first setting condition is satisfied;
and the setting operation executing module 620 is configured to acquire and execute the setting operation in the intelligent contract according to the monitoring information, or determine whether the first setting condition is currently met and determine whether the setting operation in the intelligent contract is acquired and executed according to the determination result.
Optionally, the monitoring information obtaining module 610 is further configured to:
receiving a notification message, wherein the notification message is generated and sent by executing a monitoring task, and the monitoring task is used for sending the notification message when the monitoring meets a second set condition;
the setting operation executing module 620 is further configured to:
searching an intelligent contract containing the demand information according to the notification message;
and after the intelligent contract is found, executing the setting operation or judging whether the current first setting condition is met or not by operating the intelligent contract and determining whether the setting operation is executed or not according to the judgment result.
The setting operation executing module 620 is further configured to:
searching the intelligent contract according to the address information of the intelligent contract contained in the notification message; alternatively, the first and second electrodes may be,
and searching the intelligent contract by traversing the historical blocks in the block chain.
Optionally, the monitoring information obtaining module 610 is further configured to:
acquiring a stored monitoring result, wherein the monitoring result is obtained by executing a monitoring task, and the monitoring task is used for monitoring whether a first set condition is met and storing the monitoring result;
the setting operation executing module 620 is further configured to:
and determining whether a first setting condition is met currently according to the monitoring result, and acquiring and executing a setting operation in the intelligent contract when the first setting condition is met.
The setting operation executing module 620 is further configured to:
when the first setting condition is met, searching the intelligent contract according to the address information of the intelligent contract contained in the monitoring result, and executing the setting operation in the intelligent contract by operating the intelligent contract; alternatively, the first and second electrodes may be,
and when the first setting condition is determined to be met, executing the setting operation according to the information of the setting operation contained in the monitoring result.
Optionally, the method further includes: and the monitoring result deleting module is used for deleting the monitoring result.
The device can execute the methods provided by all the embodiments of the invention, and has corresponding functional modules and beneficial effects for executing the methods. For details not described in detail in this embodiment, reference may be made to the methods provided in all the foregoing embodiments of the present invention.
EXAMPLE five
Fig. 6 is a schematic structural diagram of a computer device according to a fifth embodiment of the present invention. FIG. 6 illustrates a block diagram of a computer device 712 suitable for use to implement embodiments of the present invention. The computer device 712 shown in fig. 6 is only an example and should not bring any limitations to the functionality or scope of use of the embodiments of the present invention. Device 712 is typically a computing device that assumes intelligent contract triggering functionality.
As shown in fig. 6, computer device 712 is embodied in the form of a general purpose computing device. Components of computer device 712 may include, but are not limited to: one or more processors 716, a storage device 728, and a bus 718 that couples the various system components (including the storage device 728 and the processors 716).
Bus 718 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MCA) bus, an enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.
Computer device 712 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by computer device 712 and includes both volatile and nonvolatile media, removable and non-removable media.
Storage 728 may include computer system readable media in the form of volatile Memory, such as Random Access Memory (RAM) 730 and/or cache Memory 732. Computer device 712 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 734 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 6, commonly referred to as a "hard drive"). Although not shown in FIG. 6, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a Compact disk-Read Only Memory (CD-ROM), a Digital Video disk (DVD-ROM), or other optical media) may be provided. In these cases, each drive may be connected to the bus 718 by one or more data media interfaces. Storage 728 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
Program 736 having a set (at least one) of program modules 726, which may include, but are not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination thereof may comprise an implementation of a network environment, may be stored in, for example, storage 728. Program modules 726 generally perform the functions and/or methodologies of embodiments of the invention as described herein.
Computer device 712 may also communicate with one or more external devices 714 (e.g., keyboard, pointing device, camera, display 724, etc.), with one or more devices that enable a user to interact with computer device 712, and/or with any devices (e.g., network card, modem, etc.) that enable computer device 712 to communicate with one or more other computing devices. Such communication may occur through input/output (I/O) interfaces 722. Further, computer device 712 may also communicate with one or more networks (e.g., a Local Area Network (LAN), Wide Area Network (WAN), and/or a public Network, such as the internet) via Network adapter 720. As shown, network adapter 720 communicates with the other modules of computer device 712 via bus 718. It should be appreciated that although not shown, other hardware and/or software modules may be used in conjunction with computer device 712, including but not limited to: microcode, device drivers, Redundant processing units, external disk drive Arrays, disk array (RAID) systems, tape drives, and data backup storage systems, to name a few.
The processor 716 executes various functional applications and data processing by running programs stored in the storage device 728, for example, implementing the intelligent contract triggering method provided by the above-described embodiment of the present invention:
running an intelligent contract in the received transaction request, and determining whether the intelligent contract contains demand information for executing set operation when a first set condition is met;
when the requirement information is determined to be contained, a monitoring task is established according to the requirement information; generating monitoring information through the monitoring task, wherein the monitoring information is used for triggering a subsequent block generation node to execute the setting operation, or judging whether the current block generation node meets the first setting condition and determining whether the setting operation is executed according to a judgment result; alternatively, the first and second electrodes may be,
acquiring monitoring information, wherein the monitoring information is generated through a monitoring task created by a history block generation node, and the monitoring task is created when the history block generation node determines that an intelligent contract in a received transaction request contains demand information for executing a setting operation when a first setting condition is met;
and acquiring and executing the setting operation in the intelligent contract according to the monitoring information, or judging whether the first setting condition is met currently and determining whether the setting operation in the intelligent contract is acquired and executed according to the judgment result.
EXAMPLE six
The sixth embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the intelligent contract triggering method provided in the sixth embodiment of the present invention:
running an intelligent contract in the received transaction request, and determining whether the intelligent contract contains demand information for executing set operation when a first set condition is met;
when the requirement information is determined to be contained, a monitoring task is established according to the requirement information; generating monitoring information through the monitoring task, wherein the monitoring information is used for triggering a subsequent block generation node to execute the setting operation, or judging whether the current block generation node meets the first setting condition and determining whether the setting operation is executed according to a judgment result; alternatively, the first and second electrodes may be,
acquiring monitoring information, wherein the monitoring information is generated through a monitoring task created by a history block generation node, and the monitoring task is created when the history block generation node determines that an intelligent contract in a received transaction request contains demand information for executing a setting operation when a first setting condition is met;
and acquiring and executing the setting operation in the intelligent contract according to the monitoring information, or judging whether the first setting condition is met currently and determining whether the setting operation in the intelligent contract is acquired and executed according to the judgment result.
Of course, the computer program stored on the computer-readable storage medium provided by the embodiments of the present invention is not limited to the method operations described above, and may also perform related operations in the intelligent contract triggering method provided by any embodiments of the present invention.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (19)

1. An intelligent contract triggering method applied to a first block generation node, the method comprising:
running an intelligent contract in the received transaction request, and determining whether the intelligent contract contains demand information for executing set operation when a first set condition is met;
when the requirement information is determined to be contained, a monitoring task is established according to the requirement information;
generating monitoring information through the monitoring task, wherein the monitoring information is used for triggering a second block generation node to execute the setting operation, or judging whether the first setting condition is met at present and determining whether the setting operation is executed according to a judgment result; the second block generation node is a node which obtains a block generation right in the block chain network after the first block generation node generates the monitoring information.
2. The method of claim 1, wherein the generating monitoring information by the monitoring task comprises:
through the monitoring task, generating a notification message when a second set condition is monitored to be met, and sending the notification message to a second block generation node to notify the second block generation node to execute the set operation or judge whether the first set condition is met at present and determine whether the set operation is executed according to a judgment result after the intelligent contract is found; or
And monitoring whether a first set condition is met or not through the monitoring task, and generating and storing a monitoring result so that the second block generation node determines whether to execute the set operation or not according to the stored monitoring result.
3. The method according to claim 2, wherein the notification message or the monitoring result includes address information of the intelligent contract, so that the second block generation node finds the intelligent contract according to the address information.
4. The method of any of claims 1-3, wherein creating the monitoring task comprises:
establishing a program operation body, and executing the monitoring task by the program operation body; the established program operation body and the monitoring task have one-to-one correspondence; alternatively, the first and second electrodes may be,
and adding the monitoring task into a pre-established message queue, and waiting for one program running body in a preset number of program running bodies to execute the monitoring task in the message queue.
5. The method according to claim 4, wherein each program runner of the set number of program runners reads one monitor task in an active state in the message queue for execution each time, and continues to read another monitor task in an active state in the message queue for execution after execution is completed until the message queue is empty.
6. The method of claim 5, wherein the number of the message queues is multiple, and each message queue corresponds to a different service priority and is used for storing the monitoring task with the corresponding service priority;
and the program operation bodies with the set number read and execute the monitoring tasks according to the service priority of each message queue.
7. The method of claim 4, wherein the program run comprises: coroutines, threads, or processes.
8. A method according to claim 2 or 3, characterized in that the first set condition comprises at least one of:
when the block chain reaches a first set block height, the system time reaches a first set time point, the block chain network node executes a first preset action operation and reaches a first set timing time;
the second setting condition includes at least one of:
when the block chain reaches the second set block height, the system time reaches the second set time point, the block chain network node executes the second preset action operation, and reaches the second set timing time.
9. The method according to claim 8, wherein the second setting condition is the same as or different from the first setting condition.
10. An intelligent contract triggering method applied to a second block generation node, the method comprising:
acquiring monitoring information, wherein the monitoring information is generated by a monitoring task created by a first block generation node, and the monitoring task is created by the first block generation node when it is determined that an intelligent contract in a received transaction request contains demand information for executing a setting operation when a first setting condition is met; wherein the first block generation node is a node which has obtained a block generation right before the second block generation node;
and acquiring and executing the setting operation in the intelligent contract according to the monitoring information, or judging whether the first setting condition is met currently and determining whether the setting operation in the intelligent contract is acquired and executed according to the judgment result.
11. The method of claim 10, wherein the obtaining monitoring information comprises:
receiving a notification message, wherein the notification message is generated and sent by executing the monitoring task, and the monitoring task is used for sending the notification message when monitoring that a second set condition is met;
the acquiring and executing the setting operation in the intelligent contract according to the monitoring information, or judging whether the current first setting condition is met and determining whether the setting operation in the intelligent contract is acquired and executed according to the judgment result, includes:
searching the intelligent contract containing the demand information according to the notification message;
and after the intelligent contract is found, executing the setting operation or judging whether the current first setting condition is met or not by operating the intelligent contract and determining whether the setting operation is executed or not according to the judgment result.
12. The method of claim 11, wherein said locating the smart contract containing the demand information according to the notification message comprises:
searching the intelligent contract according to the address information of the intelligent contract contained in the notification message; alternatively, the first and second electrodes may be,
and searching the intelligent contract by traversing the historical blocks in the block chain.
13. The method of claim 10, wherein the obtaining monitoring information comprises:
acquiring a stored monitoring result, wherein the monitoring result is obtained by executing the monitoring task, and the monitoring task is used for monitoring whether a first set condition is met and storing the monitoring result;
the acquiring and executing the setting operation in the intelligent contract according to the monitoring information, or judging whether the current first setting condition is met and determining whether the setting operation in the intelligent contract is acquired and executed according to the judgment result, includes:
and determining whether the first setting condition is met currently according to the monitoring result, and acquiring and executing the setting operation in the intelligent contract when the first setting condition is met.
14. The method of claim 13, wherein obtaining and executing the setting operation in the smart contract when it is determined that the first setting condition is satisfied comprises:
when the first setting condition is determined to be met, searching the intelligent contract according to the address information of the intelligent contract contained in the monitoring result, and executing the setting operation in the intelligent contract by operating the intelligent contract; alternatively, the first and second electrodes may be,
and when the first setting condition is determined to be met, executing the setting operation according to the information of the setting operation contained in the monitoring result.
15. The method of claim 13, after performing the setting operation in the smart contract, further comprising: and deleting the monitoring result.
16. An intelligent contract triggering device, which is arranged at a first block generation node, and comprises:
the requirement information determining module is used for operating the intelligent contract in the received transaction request and determining whether the intelligent contract contains requirement information for executing setting operation when a first setting condition is met;
the monitoring task creating module is used for creating a monitoring task according to the demand information when the demand information is determined to be contained;
and the monitoring information generation module is used for generating monitoring information through the monitoring task, wherein the monitoring information is used for triggering a second block generation node to execute the setting operation, or judging whether the current state meets the first setting condition and determining whether the setting operation is executed according to the judgment result, and the second block generation node is a node which acquires the block generation right in the block chain network after the first block generation node generates the monitoring information.
17. An intelligent contract triggering device, arranged at a second block generation node, the device comprising:
the monitoring information acquisition module is used for acquiring monitoring information, wherein the monitoring information is generated by a monitoring task created by a first block generation node, the monitoring task is created when the first block generation node determines that an intelligent contract in a received transaction request contains requirement information for executing a setting operation when a first setting condition is met, and the first block generation node is a node which has obtained a block generation right before a second block generation node;
and the setting operation executing module is used for acquiring and executing the setting operation in the intelligent contract according to the monitoring information, or judging whether the first setting condition is met currently or not and determining whether the setting operation in the intelligent contract is acquired and executed according to a judgment result.
18. A computer apparatus comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the intelligent contract triggering method of any one of claims 1-15 when executing the program.
19. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, carries out the intelligent contract triggering method according to any one of claims 1-15.
CN201810791321.6A 2018-07-18 2018-07-18 Intelligent contract triggering method, device, equipment and storage medium Active CN109033814B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810791321.6A CN109033814B (en) 2018-07-18 2018-07-18 Intelligent contract triggering method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810791321.6A CN109033814B (en) 2018-07-18 2018-07-18 Intelligent contract triggering method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109033814A CN109033814A (en) 2018-12-18
CN109033814B true CN109033814B (en) 2021-12-10

Family

ID=64644008

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810791321.6A Active CN109033814B (en) 2018-07-18 2018-07-18 Intelligent contract triggering method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109033814B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111695991B (en) * 2019-03-14 2024-02-06 北京沃东天骏信息技术有限公司 Block-based contract processing method and device, block chain node and storage medium
CN110097364A (en) * 2019-04-30 2019-08-06 翟红鹰 Block chain intelligence contract modularization generation method, system, terminal and storage medium
CN110245108A (en) * 2019-07-15 2019-09-17 北京一流科技有限公司 It executes body creation system and executes body creation method
CN110780847B (en) * 2019-10-15 2022-02-25 腾讯科技(深圳)有限公司 Random number generation method, random number generation device and electronic equipment
CN110807637A (en) * 2019-11-05 2020-02-18 腾讯科技(深圳)有限公司 Service processing method, intelligent terminal and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180114205A1 (en) * 2016-10-21 2018-04-26 Bank Of America Corporation Distributed ledger system for providing aggregate tracking and threshold triggering
CN106874087A (en) * 2017-01-25 2017-06-20 上海钜真金融信息服务有限公司 A kind of block chain intelligence contract timed task dispatching method
CN107103473A (en) * 2017-04-27 2017-08-29 电子科技大学 A kind of intelligent contract implementation method based on block chain
CN107943580A (en) * 2017-11-13 2018-04-20 上海点融信息科技有限责任公司 For managing the method and equipment of user's intelligence contract at block chain link point

Also Published As

Publication number Publication date
CN109033814A (en) 2018-12-18

Similar Documents

Publication Publication Date Title
CN109033814B (en) Intelligent contract triggering method, device, equipment and storage medium
CN108537543B (en) Parallel processing method, device, equipment and storage medium for blockchain data
US7698602B2 (en) Systems, methods and computer products for trace capability per work unit
CN109951547B (en) Transaction request parallel processing method, device, equipment and medium
CN111459659A (en) Data processing method, device, scheduling server and medium
US10367719B2 (en) Optimized consumption of third-party web services in a composite service
US20150081914A1 (en) Allocation of Resources Between Web Services in a Composite Service
JP2009282807A (en) Apparatus, method and program for message binding processing
CN109284180B (en) Task scheduling method and device, electronic equipment and storage medium
CN106844055B (en) Task execution method and device
CN112988185A (en) Cloud application updating method, device and system, electronic equipment and storage medium
CN110781159B (en) Ceph directory file information reading method and device, server and storage medium
CN111831411A (en) Task processing method and device, storage medium and electronic equipment
CN111694639A (en) Method and device for updating address of process container and electronic equipment
CN111611086A (en) Information processing method, information processing apparatus, electronic device, and medium
CN111309743A (en) Report pushing method and device
CN111831408A (en) Asynchronous task processing method and device, electronic equipment and medium
CN111376255A (en) Robot data acquisition method and device and terminal equipment
CN114356713A (en) Thread pool monitoring method and device, electronic equipment and storage medium
CN112818204B (en) Service processing method, device, equipment and storage medium
US20220276901A1 (en) Batch processing management
CN113986569A (en) Message processing method and device and electronic equipment
CN114168607A (en) Global serial number generation method, device, equipment, medium and product
KR101639912B1 (en) Event managing system of steel process middleware
CN112965799A (en) Task state prompting method and device, electronic 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