CN111459573A - Method and device for starting intelligent contract execution environment - Google Patents

Method and device for starting intelligent contract execution environment Download PDF

Info

Publication number
CN111459573A
CN111459573A CN202010250544.9A CN202010250544A CN111459573A CN 111459573 A CN111459573 A CN 111459573A CN 202010250544 A CN202010250544 A CN 202010250544A CN 111459573 A CN111459573 A CN 111459573A
Authority
CN
China
Prior art keywords
intelligent contract
execution environment
container object
container
contract execution
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010250544.9A
Other languages
Chinese (zh)
Other versions
CN111459573B (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.)
Shandong Inspur Scientific Research Institute Co Ltd
Original Assignee
Jinan Inspur Hi Tech Investment and Development 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 Jinan Inspur Hi Tech Investment and Development Co Ltd filed Critical Jinan Inspur Hi Tech Investment and Development Co Ltd
Priority to CN202010250544.9A priority Critical patent/CN111459573B/en
Publication of CN111459573A publication Critical patent/CN111459573A/en
Application granted granted Critical
Publication of CN111459573B publication Critical patent/CN111459573B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44568Immediately runnable code
    • G06F9/44578Preparing or optimising for loading

Abstract

The application discloses a starting method of an intelligent contract execution environment, the intelligent contract execution environment is formed by pre-establishing a configuration of a container object corresponding to the container object, after the configuration of the container object corresponding to the container object is called, binding of the container object and an intelligent contract process is completed, and the intelligent contract execution environment is started through the bound intelligent contract process.

Description

Method and device for starting intelligent contract execution environment
Technical Field
The application relates to the technical field of computers, in particular to a method and a device for starting an intelligent contract execution environment.
Background
An intelligent contract is a computer protocol intended to propagate, validate or execute contracts in an informational manner. Smart contracts allow trusted transactions to be conducted without third parties, which transactions are traceable and irreversible. The intelligent contract execution environment may be implemented in a container that functions to execute contract code in a sandbox and to isolate and limit the resources used by the contract. A container generally refers to a container engine that allows a developer to package its applications and also to implement virtualization.
In the prior art, the starting time is long when the intelligent contract is executed, and the influence on the whole intelligent contract system is large.
Disclosure of Invention
In view of this, embodiments of the present application provide a method and an apparatus for starting an intelligent contract execution environment, so as to solve the problem that an intelligent contract in the prior art has a long start time during execution.
The embodiment of the application adopts the following technical scheme:
the embodiment of the application provides a method for starting an intelligent contract execution environment, which comprises the following steps:
calling a pre-created container object and a configuration corresponding to the container object to form an intelligent contract execution environment, wherein the container object is positioned in a resource pool;
binding the container object with a corresponding intelligent contract process;
and starting the intelligent contract execution environment through the bound intelligent contract process.
Further, before the invoking of the configuration of the pre-created container object corresponding to the container object, the method further includes:
and creating a container object and a configuration corresponding to the container object according to the machine resources of the computing nodes and the construction files required by the intelligent contract execution environment.
Further, the construction files required by the intelligent contract execution environment comprise a base image, an image operation instruction and an execution command when the intelligent contract is started.
Furthermore, the container object is correspondingly configured to access and isolate other container objects and control the intelligent contract process resources.
Further, the configuration corresponding to the container object includes a namespace and a control group.
Further, before the container object is bound with the corresponding intelligent contract process, the method further includes:
and locking the object of the container with the corresponding intelligent contract process.
Further, before the intelligent contract execution environment is started by the bound intelligent contract process, the method further includes:
and modifying relevant parameters of the intelligent contract process and/or relevant variables of the intelligent contract execution environment so as to match the current intelligent contract execution environment with the intelligent contract process.
Further, after the intelligent contract execution environment is started by the bound intelligent contract process, the method further includes:
and if the use frequency of the intelligent contract execution environment is lower than a preset threshold value, the intelligent contract process and the container object are unbound, so that the intelligent contract execution environment is destroyed conveniently.
Further, the container object includes a container for executing the intelligent contract and an interface of the container, and the binding the container object with the corresponding intelligent contract process specifically includes:
and connecting the interface of the container with the corresponding intelligent contract process to finish the binding of the container object and the intelligent contract process.
The embodiment of the present application further provides a starting apparatus for an intelligent contract execution environment, where the apparatus includes:
the system comprises a calling unit, a storage unit and a processing unit, wherein the calling unit is used for calling a pre-created container object and a configuration corresponding to the container object to form an intelligent contract execution environment, and the container object is positioned in a resource pool;
the binding unit is used for binding the container object with the corresponding intelligent contract process;
and the starting unit is used for starting the intelligent contract execution environment through the bound intelligent contract process.
Embodiments of the present application further provide a computer-readable medium, on which computer-readable instructions are stored, where the computer-readable instructions are executable by a processor to implement the following method:
calling a pre-created container object and a configuration corresponding to the container object to form an intelligent contract execution environment, wherein the container object is positioned in a resource pool;
binding the container object with a corresponding intelligent contract process;
and starting the intelligent contract execution environment through the bound intelligent contract process.
The embodiment of the application adopts at least one technical scheme which can achieve the following beneficial effects: according to the method and the device for executing the intelligent contract, the configuration corresponding to the container object and the container object is created in advance, the intelligent contract execution environment is formed after the configuration corresponding to the container object and the container object is called, then the binding of the container object and the intelligent contract process is completed, and the intelligent contract execution environment is started through the bound intelligent contract process.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a schematic flowchart of a method for starting an intelligent contract execution environment according to an embodiment of the present disclosure;
fig. 2 is a schematic view of an application scenario provided in the second embodiment of the present specification;
fig. 3 is a schematic structural diagram of a starting apparatus of an intelligent contract execution environment according to a third embodiment of the present specification.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be described in detail and completely with reference to the following specific embodiments of the present application and the accompanying drawings. It should be apparent that the described embodiments are only some of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
An intelligent contract is a computer protocol intended to propagate, validate or execute contracts in an informational manner. Smart contracts allow trusted transactions to be conducted without third parties, which transactions are traceable and irreversible. The designs of the currently mainstream intelligent contract execution environment are mainly divided into two types, namely a virtual machine and a container (Docker). Whether virtual machines or containers, they function to execute contract code in a sandbox and to isolate and limit the resources used by the contract. Containers are typically implemented by a container engine that allows developers to package their applications and dependencies into a portable container, as well as to implement virtualization. Docker does not adopt virtualization technology, programs run on a bottom operating system directly, code execution efficiency is high, but compared with a lightweight virtual machine, the Docker is too large in architecture, and therefore deployment and starting of the Docker consume a large amount of time and computing resources. Since the smart contract is essentially executable code on a block chain, two problems need to be paid attention to during the execution of the smart contract, namely the execution speed of the instruction and the starting speed of the running environment of the smart contract. For smart contracts, the start-up speed of the execution environment is more important than the execution speed of the instructions. This is because, for a lightweight virtual machine or container, IO-related instructions are rarely involved in the code of the smart contract, and therefore the instruction code is easy to optimize. Each invocation of the intelligent contract must be performed in a new virtual machine or container, so the start time of the intelligent contract execution environment has a great influence on the whole intelligent contract system.
The technical solutions provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings.
Fig. 1 is a schematic flowchart of a method for starting an intelligent contract execution environment provided in an embodiment of this specification, where an execution main body in the embodiment of the present application may be an intelligent contract system, and specifically includes:
step S101, calling a pre-created container object and a configuration corresponding to the container object to form an intelligent contract execution environment, wherein the container object is located in a resource pool.
And step S102, binding the container object with the corresponding intelligent contract process.
And step S103, starting the intelligent contract execution environment through the bound intelligent contract process.
According to the method and the device for the intelligent contract execution environment, the configuration corresponding to the container object and the container object is created in advance, the intelligent contract execution environment is formed after the configuration corresponding to the container object and the container object is called, then the binding of the container object and the intelligent contract process is completed, the information of the intelligent contract process is transmitted into the container, the intelligent contract process is executed in the container, and further the starting process of the intelligent contract execution environment is achieved.
Correspondingly to the foregoing embodiment, a second method for adjusting power transmission line detection equipment provided in this embodiment specifically includes:
step S201, a configuration of a pre-created container object and a configuration corresponding to the container object is called to form an intelligent contract execution environment, where the container object is located in a resource pool.
In step S201 in the embodiment of this specification, before the intelligent contract system executes a configuration step of invoking a pre-created container object and corresponding to the container object, the embodiment of this specification further needs to execute the steps including:
and creating a container object and a configuration corresponding to the container object according to the machine resources of the computing nodes and the construction files required by the intelligent contract execution environment. The configuration corresponding to the container object may be located in the resource pool, or may be located in other positions, which is not limited in this embodiment of the present application.
The machine resources of the compute node include CPU information of the compute node and the size of the memory space of the compute node, and the compute node may be a physical machine.
The construction files required by the intelligent contract execution environment comprise a basic mirror image, mirror image operation instructions, software package information operation and execution commands when the intelligent contract is started, and the specific reference is given in table 1.
The container object is correspondingly configured for accessing and isolating other container objects and controlling the intelligent contract process resources.
Further, the configuration corresponding to the container object includes a namespace and a control group.
The Namespace (Namespace) is used for accessing and isolating other container objects, and the Namespace encapsulates global resources of the kernel, so that each Namespace has an independent resource, and therefore, the use of the same resource by different processes in respective namespaces is not interfered mutually. For example, executing the system call sethostname changes the host name, which is a global resource, the kernel can separate different processes into different UTSNamespace through UTS Namespace, and when a certain Namespace modifies the host name, the host name of another Namespace remains unchanged.
The control group is used for controlling the resources of the intelligent contract process, and the principle is that a group of processes are placed in a control group, and the control group is allocated with the specified available resources, so that the purpose of controlling the available resources of the group of processes is achieved.
Figure BDA0002435332350000061
TABLE 1
And step S202, binding the container object with the corresponding intelligent contract process.
In step S202 in this embodiment of the present specification, each intelligent contract process may include a corresponding identifier, and set in advance an intelligent contract process that needs to be bound by the intelligent contract execution environment, or set in advance an intelligent contract process that needs to be bound by the container object. The intelligent contract system can enable the container object and the corresponding intelligent contract process according to the identification of the intelligent contract process.
In step S202 in this embodiment of the present specification, before the intelligent contract system performs the step of binding the container object with the corresponding intelligent contract process, the step further needs to be performed to include:
and locking the object of the container and the corresponding intelligent contract process so as to better complete the binding of the container object and the intelligent contract process. When the intelligent contract system runs, a plurality of container objects and a plurality of processes are simultaneously included, in order to ensure that each container can be bound with the corresponding process, the object of the container and the intelligent contract process of the object need to be locked, or the intelligent contract execution environment and the intelligent contract need to be locked, so that the container object is prevented from being bound with the plurality of intelligent contract processes, or the plurality of container objects are prevented from being bound with one intelligent contract process.
Step S203, starting the intelligent contract execution environment through the bound intelligent contract process.
In step S203 in this embodiment of the present specification, before the intelligent contract system executes the intelligent contract execution environment started by the intelligent contract process after binding, the further steps that need to be executed include: and modifying relevant parameters of the intelligent contract process and/or relevant variables of the intelligent contract execution environment so as to match the current intelligent contract execution environment with the intelligent contract process.
It should be noted that, the control module executing step S203 may be a control module of the intelligent contract system, and the control module transmits information of each intelligent contract process to a corresponding container, and if the current intelligent contract execution environment does not match the intelligent contract process, the control module may modify relevant parameters of the intelligent contract process and/or relevant variables of the intelligent contract execution environment, where functions of the control module include use of a namespace, management of a control group, configuration start of a root file system (Rootfs), and variable configuration of process operation, and the root file system is mounted on a container root directory to provide a file system of an isolated execution environment for the intelligent contract process.
It should be noted that, the control module in this embodiment of the present application may be L ibcontainer, L ibcontainer may define a series of operations for Container management by way of an interface, including a series of interfaces for creating a processing Container (Factory), managing a Container life cycle (Container), managing a Process life cycle (Process), and the like.
Further, after the intelligent contract system executes the step of starting the intelligent contract execution environment through the bound intelligent contract process, the intelligent contract system further needs to execute the steps of:
if the use frequency of the intelligent contract execution environment is lower than the preset threshold value, the intelligent contract process and the container object are unbound so as to destroy the intelligent contract execution environment, but the destruction does not delete the corresponding container object and the intelligent contract process, but removes the binding relationship between the corresponding container object and the intelligent contract process, and the pre-created container object is still in the resource pool and can be applied to other intelligent contract execution environments again.
Further, the container object includes a container for executing the intelligent contract and an interface of the container, and the binding of the container object and the corresponding intelligent contract process specifically includes:
and connecting the interface of the container with the corresponding intelligent contract process to finish the binding of the container object and the intelligent contract process.
It should be noted that the embodiment of the present application may be applied to deploying a plurality of intelligent contract execution environments and process groups, and the creation and destruction of each intelligent contract execution environment may be according to a current application frequency, and if the frequency of use of a certain intelligent contract execution environment is less than a preset threshold, the interface of the intelligent contract process and the interface of the container may be unbound, so as to provide resources for other intelligent contract execution environments.
It should be noted that fig. 2 is a schematic view of a scenario provided in the second embodiment of the present application, where L inuxKernel includes a plurality of sets of container objects (containers in the drawing) and a configuration (Namespace and Cgroups in the drawing) corresponding to the container objects, and the plurality of sets of container objects are located in a resource pool, and an upper layer of the container objects is a process group (a queue in the drawing).
It should be noted that, in the embodiment of the present application, an isolation mechanism of an intelligent contract execution environment is regarded as a resource in a resource pool, a container object in the resource pool is dynamically bound with an intelligent contract process when the intelligent contract execution environment is started, the binding with the intelligent contract process is released when the intelligent contract execution environment is destroyed, and the container object is returned to the resource pool. The method can effectively avoid resource competition caused by high concurrent starting of the intelligent contract execution environment, thereby improving the starting performance of the intelligent contract execution environment.
According to the method and the device for the intelligent contract execution environment, the configuration corresponding to the container object and the container object is created in advance, the intelligent contract execution environment is formed after the configuration corresponding to the container object and the container object is called, then the binding of the container object and the intelligent contract process is completed, the information of the intelligent contract process is transmitted into the container, the intelligent contract process is executed in the container, and further the starting process of the intelligent contract execution environment is achieved.
Corresponding to the above embodiment, fig. 3 is a schematic structural diagram of a starting apparatus of an intelligent contract execution environment provided in the third embodiment of this specification, including: a calling unit 1, a binding unit 2 and an initiating unit 3.
The invoking unit 1 is configured to invoke a configuration of a pre-created container object corresponding to the container object to form an intelligent contract execution environment, where the container object is located in a resource pool.
The binding unit 2 is used for binding the container object with the corresponding intelligent contract process.
The starting unit 3 is configured to start the intelligent contract execution environment through the bound intelligent contract process.
According to the method and the device for the intelligent contract execution environment, the configuration corresponding to the container object and the container object is created in advance, the intelligent contract execution environment is formed after the configuration corresponding to the container object and the container object is called, then the binding of the container object and the intelligent contract process is completed, the information of the intelligent contract process is transmitted into the container, the intelligent contract process is executed in the container, and further the starting process of the intelligent contract execution environment is achieved.
Embodiments of the present application provide a computer readable medium, on which computer readable instructions are stored, the computer readable instructions being executable by a processor to implement the following method:
calling a pre-created container object and a configuration corresponding to the container object to form an intelligent contract execution environment, wherein the container object is positioned in a resource pool;
binding the container object with a corresponding intelligent contract process;
and starting the intelligent contract execution environment through the bound intelligent contract process.
In the 90 th generation of 20 th century, it is obvious that improvements in Hardware (for example, improvements in Circuit structures such as diodes, transistors and switches) or software (for improvement in method flow) can be distinguished for a technical improvement, however, as technology develops, many of the improvements in method flow today can be regarded as direct improvements in Hardware Circuit structures, designers almost all obtain corresponding Hardware Circuit structures by Programming the improved method flow into Hardware circuits, and therefore, it cannot be said that an improvement in method flow cannot be realized by Hardware entity modules, for example, Programmable logic devices (Programmable logic devices L organic devices, P L D) (for example, Field Programmable Gate Arrays (FPGAs) are integrated circuits whose logic functions are determined by user Programming of devices), and a digital system is "integrated" on a P L D "by self Programming of designers without requiring many kinds of integrated circuits manufactured and manufactured by special chip manufacturers to design and manufacture, and only a Hardware software is written in Hardware programs such as Hardware programs, software programs, such as Hardware programs, software, Hardware programs, software programs, Hardware programs, software, Hardware programs, software, Hardware programs, software, Hardware, software, Hardware, software, Hardware, software, Hardware, software, Hardware, software, Hardware, software, Hardware, software, Hardware, software, Hardware, software, Hardware, software, Hardware, software, Hardware, software, Hardware, software, Hardware, software, Hardware, software.
A controller may be implemented in any suitable manner, e.g., in the form of, for example, a microprocessor or processor and a computer readable medium storing computer readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, Application Specific Integrated Circuits (ASICs), programmable logic controllers (PLC's) and embedded microcontrollers, examples of which include, but are not limited to, microcontrollers 625D, Atmel AT91SAM, Microchip PIC18F26K20 and Silicone L abs C8051F320, which may also be implemented as part of the control logic of a memory.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. One typical implementation device is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functionality of the units may be implemented in one or more software and/or hardware when implementing the present application.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices, or any other non-transmission medium which can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The application may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, container objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The application may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. A method for starting an intelligent contract execution environment, the method comprising:
calling a pre-created container object and a configuration corresponding to the container object to form an intelligent contract execution environment, wherein the container object is positioned in a resource pool;
binding the container object with a corresponding intelligent contract process;
and starting the intelligent contract execution environment through the bound intelligent contract process.
2. The method for starting up an intelligent contract execution environment according to claim 1, wherein before the calling the pre-created container object and the configuration corresponding to the container object, the method further comprises:
and creating a container object and a configuration corresponding to the container object according to the machine resources of the computing nodes and the construction files required by the intelligent contract execution environment.
3. The method for starting up the intelligent contract execution environment according to claim 2, wherein the construction files required by the intelligent contract execution environment comprise a base image, an image operation instruction and an execution command when the intelligent contract is started up.
4. A method for starting up an intelligent contract execution environment according to claim 1, wherein the container object is configured to access and isolate other container objects and to control the intelligent contract process resources.
5. The method of claim 4, wherein the configuration corresponding to the container object comprises a namespace and a control group.
6. A method for starting an intelligent contract execution environment according to claim 1, wherein before binding the container object with the corresponding intelligent contract process, the method further comprises:
and locking the object of the container with the corresponding intelligent contract process.
7. The method for starting up an intelligent contract execution environment according to claim 1, wherein before the intelligent contract execution environment is started up by the intelligent contract process after binding, the method further comprises:
and modifying relevant parameters of the intelligent contract process and/or relevant variables of the intelligent contract execution environment so as to match the current intelligent contract execution environment with the intelligent contract process.
8. The method for starting up an intelligent contract execution environment according to claim 1, wherein after the intelligent contract execution environment is started up by the intelligent contract process after binding, the method further comprises:
and if the use frequency of the intelligent contract execution environment is lower than a preset threshold value, the intelligent contract process and the container object are unbound, so that the intelligent contract execution environment is destroyed conveniently.
9. The method for starting an intelligent contract execution environment according to claim 1, wherein the container object includes an interface between a container for executing an intelligent contract and the container, and the binding the container object with a corresponding intelligent contract process specifically includes:
and connecting the interface of the container with the corresponding intelligent contract process to finish the binding of the container object and the intelligent contract process.
10. An apparatus for initiating an intelligent contract execution environment, the apparatus comprising:
the system comprises a calling unit, a storage unit and a processing unit, wherein the calling unit is used for calling a pre-created container object and a configuration corresponding to the container object to form an intelligent contract execution environment, and the container object is positioned in a resource pool;
the binding unit is used for binding the container object with the corresponding intelligent contract process;
and the starting unit is used for starting the intelligent contract execution environment through the bound intelligent contract process.
CN202010250544.9A 2020-04-01 2020-04-01 Method and device for starting intelligent contract execution environment Active CN111459573B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010250544.9A CN111459573B (en) 2020-04-01 2020-04-01 Method and device for starting intelligent contract execution environment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010250544.9A CN111459573B (en) 2020-04-01 2020-04-01 Method and device for starting intelligent contract execution environment

Publications (2)

Publication Number Publication Date
CN111459573A true CN111459573A (en) 2020-07-28
CN111459573B CN111459573B (en) 2023-09-15

Family

ID=71684311

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010250544.9A Active CN111459573B (en) 2020-04-01 2020-04-01 Method and device for starting intelligent contract execution environment

Country Status (1)

Country Link
CN (1) CN111459573B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113360252A (en) * 2021-08-11 2021-09-07 北京微芯感知科技有限公司 Container-based accelerated intelligent contract execution method and device and storage medium
WO2023273994A1 (en) * 2021-07-01 2023-01-05 支付宝(杭州)信息技术有限公司 Method, system, and apparatus for executing smart contract, and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105824688A (en) * 2016-03-16 2016-08-03 合网络技术(北京)有限公司 Method for solving start concurrence bottleneck of docker container
CN109800056A (en) * 2019-01-16 2019-05-24 杭州趣链科技有限公司 A kind of block chain dispositions method based on container
CN109976774A (en) * 2019-04-11 2019-07-05 北京启迪区块链科技发展有限公司 Block chain node deployment method, device, equipment and storage medium
CN110286997A (en) * 2019-05-17 2019-09-27 平安科技(深圳)有限公司 More container application creation methods, device, computer equipment and storage medium
CN110392052A (en) * 2019-07-22 2019-10-29 中国工商银行股份有限公司 A kind of block chain intelligence contract processing system and method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105824688A (en) * 2016-03-16 2016-08-03 合网络技术(北京)有限公司 Method for solving start concurrence bottleneck of docker container
CN109800056A (en) * 2019-01-16 2019-05-24 杭州趣链科技有限公司 A kind of block chain dispositions method based on container
CN109976774A (en) * 2019-04-11 2019-07-05 北京启迪区块链科技发展有限公司 Block chain node deployment method, device, equipment and storage medium
CN110286997A (en) * 2019-05-17 2019-09-27 平安科技(深圳)有限公司 More container application creation methods, device, computer equipment and storage medium
CN110392052A (en) * 2019-07-22 2019-10-29 中国工商银行股份有限公司 A kind of block chain intelligence contract processing system and method

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
XIAOLONG LIU: "Elastic and cost-effective data carrier architecture for smart contract in blockchain", FUTURE GENERATION COMPUTER SYSTEMS, vol. 100, pages 590 - 599, XP055876159, DOI: 10.1016/j.future.2019.05.042 *
肖伟民;邓浩江;胡琳琳;郭志川;: "基于容器的Web运行环境轻量级虚拟化方法", 计算机应用研究, no. 06 *
郑远;: "基于Docker的服务器虚拟化实践", 福建电脑, no. 04 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023273994A1 (en) * 2021-07-01 2023-01-05 支付宝(杭州)信息技术有限公司 Method, system, and apparatus for executing smart contract, and storage medium
CN113360252A (en) * 2021-08-11 2021-09-07 北京微芯感知科技有限公司 Container-based accelerated intelligent contract execution method and device and storage medium
CN113360252B (en) * 2021-08-11 2021-11-23 北京微芯感知科技有限公司 Container-based accelerated intelligent contract execution method and device and storage medium

Also Published As

Publication number Publication date
CN111459573B (en) 2023-09-15

Similar Documents

Publication Publication Date Title
JP6912583B2 (en) Service processing method and equipment
CN107368292B (en) Resource compiling method and device
CN109947643B (en) A/B test-based experimental scheme configuration method, device and equipment
CN110401700B (en) Model loading method and system, control node and execution node
CN107577523B (en) Task execution method and device
CN107578338B (en) Service publishing method, device and equipment
CN116185532B (en) Task execution system, method, storage medium and electronic equipment
CN110597614A (en) Resource adjusting method and device
CN111459573B (en) Method and device for starting intelligent contract execution environment
CN107391529B (en) Method and device for realizing Object Relation Mapping (ORM)
CN107977572B (en) Application program running method and device and intelligent terminal
CN116107728B (en) Task execution method and device, storage medium and electronic equipment
CN110837446A (en) Equipment management method and device applied to embedded system, medium and embedded equipment
CN111190692A (en) Monitoring method and system based on Roc processor and readable medium
CN108733432A (en) The implementation method of private method, call method and its device under programmed environment
CN107402749B (en) Method and device for realizing picture loading library
CN116382713A (en) Method, system, device and storage medium for constructing application mirror image
CN111580938B (en) Transaction processing method, device, equipment and medium for work unit
CN107291439B (en) Target incremental data construction method and device
CN111198689B (en) Code execution method, device and computer readable storage medium
CN113867776A (en) Method and device for publishing middle station application, electronic equipment and storage medium
CN113672470A (en) Interface monitoring method, device, equipment and medium
CN111158940A (en) Method and device for docking and dynamically loading different devices in field of Internet of things
CN112328213B (en) Isolation method, equipment and medium for online software development process
CN111209079A (en) Scheduling method, device and medium based on Roc processor

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
TA01 Transfer of patent application right

Effective date of registration: 20230822

Address after: 250101 building S02, 1036 Chaochao Road, high tech Zone, Jinan City, Shandong Province

Applicant after: Shandong Inspur Scientific Research Institute Co.,Ltd.

Address before: Floor 6, Chaochao Road, Shandong Province

Applicant before: JINAN INSPUR HIGH-TECH TECHNOLOGY DEVELOPMENT Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant