A smart contract processing method, device and equipment
A technology of smart contracts and processing methods, applied in the computer field, can solve problems such as high design cost, unstable execution, and design difficulty
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0052] figure 2 For a schematic flowchart of a smart contract processing method provided in Embodiment 1 of this specification, see figure 2 , the method can be given by Figure 1a The nodes in are completed, which may specifically include the following steps:
[0053] Step 22. In the process of executing the contract transaction corresponding to the smart contract, execute the contract transaction based on the first time slice allocated by the node;
[0054] That is, the relevant programs in the node use the CPU to execute the contract transaction based on the time allocated by the node CPU, or in other words, execute the business logic related to the contract transaction.
[0055] In addition, based on the description of the above-mentioned life cycle management mechanism, it can be seen that the smart contract in step 22 is in the second life cycle Running, and before step 22, it may also include: the step of entering the second life cycle Running, which can be specifica...
Embodiment 2
[0090] Figure 4 For a schematic flowchart of a smart contract processing method provided in Embodiment 2 of this specification, see Figure 4 , for ease of understanding, the method will be described in detail below from an overall perspective, which may specifically include the following steps:
[0091] Step 42. Obtain the contract transaction of the smart contract to be executed.
[0092] Step 44, when the first time slice starts, execute the contract transaction.
[0093] Synchronously, lock the account information of the parties involved in the contract transaction, and set the contract transaction to an active state at the same time.
[0094] Step 46: When the time slice ends, it is judged whether the execution result satisfies the preset stop execution condition.
[0095] If so, then perform step 412 and step 420; if not, then perform step 48;
[0096] Step 48. Set a breakpoint for the contract transaction.
[0097] After setting a breakpoint for a contract transac...
Embodiment 3
[0111] Figure 5 For a schematic structural diagram of a smart contract processing device provided in Embodiment 3 of this specification, see Figure 5 , the means can be included for nodes Figure 1a The shown device of the life cycle management module may specifically include: an execution module 51 and a detection module 52, wherein:
[0112] An execution module 51, configured to execute the contract transaction based on the first time slice allocated by the node during the execution of the contract transaction corresponding to the smart contract;
[0113] A detection module 52, configured to record the execution progress of the contract transaction if it is detected that the first time slice is over and the contract transaction has not been completed;
[0114] The execution module 51 is further configured to execute the contract transaction based on the second time slice allocated by the node and the execution progress;
[0115] The execution module 51 is further configu...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com