Unlock instant, AI-driven research and patent intelligence for your innovation.

Smart contract trigger method, device, equipment and storage medium

A technology of smart contracts and setting conditions, applied in the field of blockchain, can solve problems such as heavy workload and consumption of resources, and achieve the effect of reducing consumption and node workload.

Active Publication Date: 2021-12-10
BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] Obviously, finding smart contracts that require follow-up operations by traversing historical blocks through block generation nodes requires a lot of work and consumes too many resources, and it is very likely that after traversal, there is no smart contract that requires the current execution of specified operations

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Smart contract trigger method, device, equipment and storage medium
  • Smart contract trigger method, device, equipment and storage medium
  • Smart contract trigger method, device, equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0034] figure 1 It is a flow chart of a smart contract triggering method provided by Embodiment 1 of the present invention. This embodiment can be applied to triggering the execution of the setting operation specified in the smart contract in the blockchain network in the blockchain network. The blockchain network can It is a public chain, a consortium chain or a private chain. The blockchain network usually includes multiple nodes. Based on the consensus mechanism, the nodes will obtain the right to generate blocks and become block generation nodes. The method can be executed by a smart contract triggering device, which can be composed of hardware and / or software, and can generally be integrated into a device carrying a block generation node. The device carrying the block generation node may be an electronic device such as a server, a mobile terminal, or a server cluster. like figure 1 As shown, the method is applied to the block generation node, and the method specifically...

Embodiment 2

[0061] figure 2 It is a flow chart of a smart contract triggering method provided by Embodiment 2 of the present invention. This embodiment can be applied to triggering the execution of the setting operation specified in the smart contract in the blockchain network in the blockchain network. The blockchain network can It is a public chain, a consortium chain or a private chain. The blockchain network usually includes multiple nodes. Based on the consensus mechanism, the nodes will obtain the right to generate blocks and become block generation nodes. The method can be executed by a smart contract triggering device, which can be composed of hardware and / or software, and can generally be integrated into a device carrying a block generating node. The device carrying the block generation node may be an electronic device such as a server, a mobile terminal, or a server cluster. like figure 2 As shown, the method is applied to the block generation node, and the method specifical...

Embodiment 3

[0094] Figure 4 It is a schematic structural diagram of a smart contract trigger device provided by Embodiment 3 of the present invention. like Figure 4 As shown, the device includes: a demand information determination module 510 , a monitoring task creation module 520 and a monitoring information generation module 530 .

[0095] The demand information determination module 510 is used to run the smart contract in the received transaction request, and determine whether the smart contract contains demand information for performing a set operation when the first set condition is met;

[0096] A monitoring task creation module 520, configured to create a monitoring task according to the demand information when it is determined that the demand information is included;

[0097] The monitoring information generation module 530 is configured to generate monitoring information through monitoring tasks, wherein the monitoring information is used to trigger subsequent block generatio...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The embodiment of the invention discloses a smart contract triggering method, device, equipment and storage medium. The method is applied to a block generation node, and includes: running the smart contract in the received transaction request, determining whether the smart contract contains demand information for performing a setting operation when the first setting condition is met; When the demand information is required, a monitoring task is created according to the demand information; monitoring information is generated through the monitoring task, wherein the monitoring information is used to trigger subsequent block generation nodes to perform the setting operation, or to determine whether the current Satisfying the first setting condition and determining whether to execute the setting operation according to a judgment result. The smart contract triggering method provided by the embodiment of the present invention does not require block generation nodes to traverse historical blocks to find smart contracts that require subsequent operation execution, which can reduce the consumption of blockchain network resources and reduce the workload of nodes.

Description

technical field [0001] Embodiments of the present invention relate to the technical field of blockchain, and in particular, to a smart contract triggering method, device, equipment, and storage medium. Background technique [0002] In the blockchain network, a transaction request initiated by a certain node can include a smart contract, in which it can be stipulated that certain operations will be performed when certain conditions are met. The condition can be: the blockchain reaches a certain block height, the system time reaches a certain point in time, a certain transaction is performed, a node performs a certain operation, and so on. [0003] The transaction data obtained by the block generation node after processing the above transaction request contains the smart contract. After the block generation node generates a block containing the transaction data, it broadcasts the block and receives the block The block chain network node determines whether to add the block to ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F21/50G06Q40/04
CPCG06F21/50G06Q40/04
Inventor 肖伟
Owner BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD