CN113222748A - Execution method of block chain based on concurrency model - Google Patents

Execution method of block chain based on concurrency model Download PDF

Info

Publication number
CN113222748A
CN113222748A CN202110005499.5A CN202110005499A CN113222748A CN 113222748 A CN113222748 A CN 113222748A CN 202110005499 A CN202110005499 A CN 202110005499A CN 113222748 A CN113222748 A CN 113222748A
Authority
CN
China
Prior art keywords
hanging
list
contract
initiator
bill
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.)
Pending
Application number
CN202110005499.5A
Other languages
Chinese (zh)
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.)
Neng Lian Tech Ltd
Original Assignee
Neng Lian Tech 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 Neng Lian Tech Ltd filed Critical Neng Lian Tech Ltd
Priority to CN202110005499.5A priority Critical patent/CN113222748A/en
Publication of CN113222748A publication Critical patent/CN113222748A/en
Pending legal-status Critical Current

Links

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
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • 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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3829Payment protocols; Details thereof insuring higher security of transaction involving key management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Computer Security & Cryptography (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Strategic Management (AREA)
  • Health & Medical Sciences (AREA)
  • General Business, Economics & Management (AREA)
  • Computer Hardware Design (AREA)
  • General Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • Computing Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Technology Law (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention relates to an execution method of a block chain based on a concurrency model, which comprises a list hanging initiator, a list hanging receiver, the block chain, an intelligent contract, a contract channel, a flow processing cluster module, a dependency label list, an execution byte code and a state storage array. The block chain technology is used as a technical support, and an independent lightweight execution environment is initialized first by combining the prior art, so that the operation environments of execution programs are independent and do not influence each other. And the intelligent contract service is distributed to the parallel execution pipelines to be executed simultaneously, so that the concurrent execution capacity of a large number of contract services is improved, and the execution time of the whole service is shortened.

Description

Execution method of block chain based on concurrency model
Technical Field
The invention relates to the technical field of a block chain, in particular to an execution method of the block chain based on a concurrency model.
Background
When the main chain of the current mainstream is accessed into an intelligent contract, an obvious defect is that resource isolation cannot be well achieved, congestion is inevitably caused along with continuous expansion of ecology, and for example, the phenomenon of congestion of the whole system caused by certain popular crowd funding occurs in an ether house. In subsequent development, the related technologies need to be continuously perfected, and finally, the operating environments of the DAPPs are independent and do not influence each other. Therefore, the workload of the user can be greatly reduced, the data storage requirement of the nodes can be reduced, the system resources are saved, and the processing efficiency of the system is improved.
Disclosure of Invention
In view of the above, the present invention provides a concurrent model-based business execution method that solves or partially solves the above-mentioned problems.
In order to achieve the effect of the technical scheme, the technical scheme of the invention is as follows: a block chain execution method based on a concurrency model comprises the following contents: the method comprises the following steps that 1, a list hanging initiator and a list hanging receiver perform two steps of execution hanging and execution ending through a block chain, wherein a system of the block chain comprises an intelligent contract, a contract channel for executing the intelligent contract, a stream processing cluster module, a dependency tag list, an execution byte code and a state storage array; the process 2, setting the list-hanging initiator as the mechanism or the individual initiating the list hanging, setting the list-hanging receiver as the mechanism or the individual executing the list hanging, and setting the list-hanging rationality parameter by the flow processing cluster module; the statement-of-hanging rationality parameters are used for meeting the transaction requirements of a statement-of-hanging initiator and a statement-of-hanging receiver, reducing the system load and the system response time, and comprise a statement-of-hanging transaction target value, a rationality range of a target number, a statement-of-hanging state type and an execution condition of an intelligent contract; the execution bytecode responds to the configuration operation of a user on the management interfaces of the hang note initiator and the hang note receiver, acquires the hang note transaction management parameters of the corresponding hang note initiator and the hang note receiver, and determines and configures a hang note transaction target value corresponding to the stream processing cluster module; the configuration operation of the management interface comprises a mode that the number of the hung bills is expected to be managed by the bill hanging initiator and the bill hanging receiver and a maximum value indication mode of the number; the list hanging initiator corresponding to the triggered condition sends out a corresponding maximum quantity indication signal according to a maximum quantity indication mode, so that the list hanging acceptor identifies the maximum quantity indication signal and conducts corresponding list hanging acceptance management; 3, the stream processing cluster module sets the intelligent contract to include a dependency label list, an execution byte code and a state storage array; the dependency label list comprises an address of a bill hanging initiator, an address of a bill hanging bearer, an address of a contract channel and an address of a flow processing cluster module; if the list bearer changes in the service process, the dependency tag list further includes the address of the modified list bearer; the dependence tag list is also set to be in a hovering state by 95% of abnormal pending numbers in a day, so that normal pending of the normal pending list can be ensured, and enough response time is left for the abnormal pending list by misoperation; the dependency tag list also needs to participate in a third-party transaction platform or other transaction information provided by the API to perform grid-connected service; meanwhile, the intelligent contract can quickly respond to the system requirement within the time less than 0.01 mm, so that the stream processing cluster module can undertake the resource allocation task of the distributed hang list in the concurrent model in an intelligent allocation mode; through reasonable address management, the schedulability of a distributed block chain system is greatly improved under the action of the stream processing cluster module, so that the stability of a concurrency model is stably improved on the premise of ensuring the response time of the system; 4, the dependency label list comprises the address of the bill hanging initiator, the address of the bill hanging bearer, the address of the contract channel and the address of the flow processing cluster module; if the list bearer changes in the service process, the dependency tag list further includes the address of the modified list bearer; the process 5, the execution byte code is the execution environment of the intelligent contract; after the intelligent contract is deployed on the block chain, the execution byte codes can be inquired on the block chain, and an independent execution environment can be initialized after the execution byte codes are executed; the method comprises the following steps that 6, a storage space of the intelligent contract is set as a state storage array, the state storage array is a storage area divided in a memory by hardware or software, after the intelligent contract is deployed on a block chain, when the intelligent contract relates to data changes, the state storage array can update the stored data, and the updated content is the current data and the data changes each time; the process 7, contract channels include 1 st contract channel, 2 nd contract channel, … …, I contract channel, … …, N contract channel; i is the number of the contract channel, and the number of the contract channel is randomly distributed; n is the number of intelligent contracts to be executed in one block-out time; the block-out time is determined by the block chain system; different contract channels can execute intelligent contracts simultaneously; the process 8, the I-th contract channel comprises a 1 st thread flow processing cluster module of the I-th channel, a 2 nd thread flow processing cluster module of the I-th channel, … …, a J-th thread flow processing cluster module of the I-th channel, … … and an M-th thread flow processing cluster module of the I-th channel; j is the serial number of the flow processing cluster module in the I-th contract channel, and the serial number of the flow processing cluster module is determined by the content of the service; m is the number of the flow processing cluster modules needing to be started in the I-th contract channel, and is determined by the content of the hang list; the process 9, the concurrent model-based service execution method, includes the following steps: the method comprises the following steps: the order-hanging initiator sends a private key signature of an instruction for initiating order-hanging operation to the block chain and the order-hanging receiver; step two: after receiving the private key signature sent by the hang list initiator, the hang list receiver packs the service signature and sends the service signature to the block chain; step three: after the block chain receives the private key signatures of the bill hanging initiator and the bill hanging receiver, deploying an intelligent contract; step four: the block chain searches the corresponding execution byte code according to the intelligent contract and executes the searched corresponding execution byte code; step five: the block chain starts a corresponding contract channel according to the address of the contract channel in the dependency label list, different contract channels can be started simultaneously, one contract channel can only be started by one intelligent contract, and one intelligent contract can start a plurality of contract channels simultaneously; if the intelligent contract does not comprise the address of the contract channel in the dependency label list or the dependency label list, the blockchain charges a certain amount of supplementary commission fees to the bill-hanging initiator and the bill-hanging receiver; after the bill-hanging initiator and the bill-hanging receiver pay the supplementary commission charge within the effective supplementary time, the block chain starts a temporary contract channel, wherein the temporary contract channel refers to a contract channel which is not started currently; if the bill-hanging initiator and the bill-hanging receiver do not pay the supplementary commission charge within the effective supplementary time, the block chain packs the blank service; if the contract channel corresponding to the address of the contract channel in the dependency label list does not exist or is started, the blockchain charges a certain amount of punishment handling charge to the bill-hanging initiator and the bill-hanging receiver and packs a blank service; step six: the block chain starts the corresponding stream processing cluster module according to the address of the stream processing cluster module in the dependency tag list; the stream processing cluster modules in the same contract channel cannot be started simultaneously and are started in sequence according to the sequence in the dependency tag list; if the intelligent contract does not comprise the dependent label list or the dependent label list does not comprise the address of the flow processing cluster module, the blockchain charges a supplementary handling fee to the bill hanging initiator and the bill hanging bearer; after the bill hanging initiator and the bill hanging receiver pay the supplementary commission charge within the effective supplementary time, the block chains sequentially start the corresponding flow processing cluster modules; if the bill-hanging initiator and the bill-hanging receiver do not pay the supplementary commission charge within the effective supplementary time, the block chain packs the blank service; and if the flow processing cluster module corresponding to the address of the flow processing cluster module in the dependency tag list does not exist or is started, the blockchain charges a punishment handling fee to the bill hanging initiator and the bill hanging bearer and packs blank services.
Detailed description of the invention
In order to make the technical problems, technical solutions and advantageous effects to be solved by the present invention more apparent, the present invention is described in detail below with reference to the embodiments. It should be noted that the specific embodiments described herein are only for illustrating the present invention and are not to be construed as limiting the present invention, and products that can achieve the same functions are included in the scope of the present invention. The specific method comprises the following steps:
example 1: this embodiment specifically describes the steps of the concurrent model-based service execution method:
the system of the block chain comprises an intelligent contract, a contract channel for executing the intelligent contract, a flow processing cluster module, a dependency tag list, an execution byte code and a state storage array;
setting a list-hanging initiator as a list-starting mechanism or a list-starting individual, setting a list-hanging receiver as a list-executing mechanism or a list-executing individual, and setting a list-hanging rationality parameter by the flow processing cluster module; the statement-of-hanging rationality parameters are used for meeting the transaction requirements of a statement-of-hanging initiator and a statement-of-hanging receiver, reducing the system load and the system response time, and comprise a statement-of-hanging transaction target value, a rationality range of a target number, a statement-of-hanging state type and an execution condition of an intelligent contract; the execution bytecode responds to the configuration operation of a user on the management interfaces of the hang note initiator and the hang note receiver, acquires the hang note transaction management parameters of the corresponding hang note initiator and the hang note receiver, and determines and configures a hang note transaction target value corresponding to the stream processing cluster module; the configuration operation of the management interface comprises a mode that the number of the hung bills is expected to be managed by the bill hanging initiator and the bill hanging receiver and a maximum value indication mode of the number; the list hanging initiator corresponding to the triggered condition sends out a corresponding maximum quantity indication signal according to a maximum quantity indication mode, so that the list hanging acceptor identifies the maximum quantity indication signal and conducts corresponding list hanging acceptance management;
setting a list-hanging initiator as a list-starting mechanism or a list-starting individual, setting a list-hanging receiver as a list-executing mechanism or a list-executing individual, and setting a list-hanging rationality parameter by the flow processing cluster module; the statement-of-hanging rationality parameters are used for meeting the transaction requirements of a statement-of-hanging initiator and a statement-of-hanging receiver, reducing the system load and the system response time, and comprise a statement-of-hanging transaction target value, a rationality range of a target number, a statement-of-hanging state type and an execution condition of an intelligent contract; the execution bytecode responds to the configuration operation of a user on the management interfaces of the hang note initiator and the hang note receiver, acquires the hang note transaction management parameters of the corresponding hang note initiator and the hang note receiver, and determines and configures a hang note transaction target value corresponding to the stream processing cluster module; the configuration operation of the management interface comprises a mode that the number of the hung bills is expected to be managed by the bill hanging initiator and the bill hanging receiver and a maximum value indication mode of the number; the list hanging initiator corresponding to the triggered condition sends out a corresponding maximum quantity indication signal according to a maximum quantity indication mode, so that the list hanging acceptor identifies the maximum quantity indication signal and conducts corresponding list hanging acceptance management; the stream processing cluster module sets the intelligent contracts to comprise dependency label lists, execution byte codes and state storage arrays; the dependency label list comprises an address of a bill hanging initiator, an address of a bill hanging bearer, an address of a contract channel and an address of a flow processing cluster module; if the list bearer changes in the service process, the dependency tag list further includes the address of the modified list bearer; the dependence tag list is also set to be in a hovering state by 95% of abnormal hang number in one day, so that normal hang list can be ensured to be normally carried out, and enough response time is left for abnormal hang list by misoperation; the dependency tag list also needs to participate in a third-party transaction platform or other transaction information provided by the API to perform grid-connected service; the intelligent contract can quickly respond to the system requirement in less than 0.01 millisecond, and the stream processing cluster module can undertake the resource allocation task of the distributed form hanging in the concurrent model in an intelligent allocation mode; through reasonable address management, the schedulability of a distributed block chain system is greatly improved under the action of the stream processing cluster module, so that the stability of a concurrency model is stably improved on the premise of ensuring the response time of the system;
the dependency label list comprises an address of a bill hanging initiator, an address of a bill hanging bearer, an address of a contract channel and an address of a flow processing cluster module; if the list bearer changes in the service process, the dependency tag list further includes the address of the modified list bearer;
the execution bytecode is the execution environment of the intelligent contract; after the intelligent contract is deployed on the block chain, the execution byte codes can be inquired on the block chain, and an independent execution environment can be initialized after the execution byte codes are executed;
the state storage array is the storage space of the intelligent contract, and after the intelligent contract is deployed on the block chain, when the intelligent contract involves data changes, the state storage array can update the stored data, and the updating method is to store the current data and the change of each data;
the contract channels comprise a 1 st contract channel, a 2 nd contract channel, … …, an I-th contract channel, … … and an N-th contract channel; i is the number of the contract channel, and the number of the contract channel is randomly distributed; n is the number of intelligent contracts to be executed in one block-out time; the block-out time is determined by the block chain system; different contract channels can execute intelligent contracts simultaneously;
the I-th contract channel comprises an I-th channel 1 st thread flow processing cluster module, an I-th channel 2 nd thread flow processing cluster module, … …, an I-th channel J-th thread flow processing cluster module, … … and an I-th channel Mth thread flow processing cluster module; j is the serial number of the flow processing cluster module in the I-th contract channel, and the serial number of the flow processing cluster module is determined by the content of the service; m is the number of the flow processing cluster modules needing to be started in the I-th contract channel, and is determined by the content of the service;
the service execution method based on the concurrency model comprises the following steps:
the method comprises the following steps: the order-hanging initiator sends a private key signature of an instruction for initiating order-hanging operation to the block chain and the order-hanging receiver;
step two: after receiving the private key signature sent by the hang list initiator, the hang list receiver packs the service signature and sends the service signature to the block chain;
step three: after the block chain receives the private key signatures of the bill hanging initiator and the bill hanging receiver, deploying an intelligent contract;
step four: the block chain searches the corresponding execution byte code according to the intelligent contract and executes the searched corresponding execution byte code;
step five: the block chain starts a corresponding contract channel according to the address of the contract channel in the dependency label list, different contract channels can be started simultaneously, one contract channel can only be started by one intelligent contract, and one intelligent contract can start a plurality of contract channels simultaneously;
if the intelligent contract does not comprise the address of the contract channel in the dependency label list or the dependency label list, the blockchain charges a certain amount of supplementary commission fees to the bill-hanging initiator and the bill-hanging receiver; after the bill-hanging initiator and the bill-hanging receiver pay the supplementary commission charge within the effective supplementary time, the block chain starts a temporary contract channel, wherein the temporary contract channel refers to a contract channel which is not started currently; if the bill-hanging initiator and the bill-hanging receiver do not pay the supplementary commission charge within the effective supplementary time, the block chain packs the blank service;
if the contract channel corresponding to the address of the contract channel in the dependency label list does not exist or is started, the blockchain charges a certain amount of punishment handling charge to the bill-hanging initiator and the bill-hanging receiver and packs a blank service;
step six: the block chain starts the corresponding stream processing cluster module according to the address of the stream processing cluster module in the dependency tag list; the stream processing cluster modules in the same contract channel cannot be started simultaneously and are started in sequence according to the sequence in the dependency tag list;
if the intelligent contract does not comprise the dependent label list or the dependent label list does not comprise the address of the flow processing cluster module, the blockchain charges a supplementary handling fee to the bill hanging initiator and the bill hanging bearer; after the bill hanging initiator and the bill hanging receiver pay the supplementary commission charge within the effective supplementary time, the block chains sequentially start the corresponding flow processing cluster modules; if the bill-hanging initiator and the bill-hanging receiver do not pay the supplementary commission charge within the effective supplementary time, the block chain packs the blank service;
and if the flow processing cluster module corresponding to the address of the flow processing cluster module in the dependency tag list does not exist or is started, the blockchain charges a punishment handling fee to the bill hanging initiator and the bill hanging bearer and packs blank services.
Compared with the prior art, the invention has the beneficial effects that: the invention provides a concurrent model-based block chain execution method, which takes a block chain technology as a technical support and combines the prior art, firstly, an independent lightweight execution environment is initialized, and the independent running environment of each execution program is realized without mutual influence. And the intelligent contract service is distributed to the parallel execution pipelines to be executed simultaneously, so that the concurrent execution capacity of a large number of contract services is improved, and the execution time of the whole service is shortened.
The above description is only for the preferred embodiment of the present invention, and should not be used to limit the scope of the claims of the present invention. While the foregoing description will be understood and appreciated by those skilled in the relevant art, other equivalents may be made thereto without departing from the scope of the claims.
The beneficial results are as follows: the invention provides a concurrent model-based block chain execution method, which takes a block chain technology as a technical support and combines the prior art, firstly, an independent lightweight execution environment is initialized, and the independent running environment of each execution program is realized without mutual influence. And the intelligent contract service is distributed to the parallel execution pipelines to be executed simultaneously, so that the concurrent execution capacity of a large number of contract services is improved, and the execution time of the whole service is shortened.

Claims (1)

1. A block chain execution method based on a concurrency model is characterized by comprising the following steps: the method comprises the following steps that 1, a list hanging initiator and a list hanging receiver perform two steps of execution hanging and execution ending through a block chain, wherein a system of the block chain comprises an intelligent contract, a contract channel for executing the intelligent contract, a stream processing cluster module, a dependency tag list, an execution byte code and a state storage array; process 2, setting the list-hanging initiator as the mechanism or the individual initiating the list hanging, setting the list-hanging receiver as the mechanism or the individual executing the list hanging, and setting the list-hanging rationality parameter by the flow processing cluster module; the statement-of-hanging rationality parameters are used for meeting the transaction requirements of a statement-of-hanging initiator and a statement-of-hanging acceptor, and comprise a target value of statement-of-hanging transaction, a rationality range of target quantity, a state type of the statement-of-hanging and an execution condition of an intelligent contract in order to reduce system load and system response time; the execution bytecode responds to the configuration operation of a user on the management interfaces of the hang note initiator and the hang note receiver, acquires the hang note transaction management parameters of the corresponding hang note initiator and the hang note receiver, and determines and configures a hang note transaction target value corresponding to the stream processing cluster module; the configuration operation of the management interface comprises a mode that the number of the hung bills is expected to be managed by the bill hanging initiator and the bill hanging receiver and a maximum value indication mode of the number; the list hanging initiator corresponding to the triggered condition sends out a corresponding maximum quantity indication signal according to the maximum quantity indication mode, so that the list hanging acceptor identifies the maximum quantity indication signal and conducts corresponding list hanging acceptance management; 3, the stream processing cluster module sets the intelligent contract to include the dependency label list, the execution byte code and the state storage array; the dependency label list comprises an address of a bill hanging initiator, an address of a bill hanging bearer, an address of a contract channel and an address of a flow processing cluster module; if the list bearer is changed in the service process, the dependency label list also comprises the address of the modified list bearer; the dependence tag list is also set to be in a hovering state by 95% of abnormal pending numbers in a day, so that normal pending is ensured, and enough response time is left for the abnormal pending list by misoperation; the dependency tag list also needs to participate in a third-party transaction platform or other transaction information provided by an API (application program interface) to perform grid-connected service; meanwhile, the intelligent contract can quickly respond to the system requirement in less than 0.01 millisecond, so that the stream processing cluster module can undertake the resource allocation task of the distributed suspension list in the concurrent model in an intelligent allocation mode; through reasonable address management, the schedulability of a distributed block chain system is greatly improved under the action of the stream processing cluster module, so that the stability of a concurrency model is stably improved on the premise of ensuring the response time of the system; the process 4, the dependency label list includes the address of the bill hanging initiator, the address of the bill hanging bearer, the address of the contract channel, and the address of the flow processing cluster module; if the list bearer is changed in the service process, the dependency label list also comprises the address of the modified list bearer; step 5, the execution byte code is the execution environment of the intelligent contract; after the intelligent contract is deployed on the block chain, the execution bytecode can be inquired on the block chain, and an independent execution environment can be initialized after the execution bytecode is executed; the method comprises the following steps that 6, a storage space of the intelligent contract is set as a state storage array, the state storage array is a storage area divided in a memory by hardware or software, after the intelligent contract is deployed on the block chain, when the intelligent contract relates to data changes, the state storage array updates the stored data, and the updated content is the current data and the data changes each time; process 7, the contract channels including contract channel 1, contract channel 2, … …, contract channel I, contract channel … …, contract channel N; the I is the number of the contract channel, and the number of the contract channel is randomly distributed; the N is the number of intelligent contracts needing to be executed in one out-of-block time; the block-out time is determined by a block chain system; different contract channels may execute the intelligent contracts simultaneously; the process 8, the I-th contract channel comprises an I-th channel 1 st thread flow processing cluster module, an I-th channel 2 nd thread flow processing cluster module, … …, an I-th channel J-th thread flow processing cluster module, … … and an I-th channel M-th thread flow processing cluster module; the J is the number of the flow processing cluster module in the I-th contract channel, and the number of the flow processing cluster module is determined by the content of the service; the M is the number of the flow processing cluster modules needing to be started in the I-th contract channel, and the M is determined by the content of the hang list; the process 9, the concurrent model-based service execution method, includes the following steps: the method comprises the following steps: the order-hanging initiator sends a private key signature of an instruction for initiating order-hanging operation to the block chain and the order-hanging receiver; step two: after receiving the private key signature sent by the hang ticket initiator, the hang ticket receiver packs the service signature and sends the service signature to the block chain; step three: after the block chain receives the private key signatures of the bill hanging initiator and the bill hanging receiver, the intelligent contract is deployed; step four: the block chain searches the corresponding execution byte code according to the intelligent contract and executes the searched corresponding execution byte code; step five: the block chain starts a corresponding contract channel according to the address of the contract channel in the dependency label list, different contract channels can be started simultaneously, one contract channel can only be started by one intelligent contract, and one intelligent contract can start a plurality of contract channels simultaneously; if the dependency tag list is not included in the intelligent contract or the address of the contract channel is not included in the dependency tag list, the blockchain charges the hang ticket initiator and the hang ticket acceptor for a certain amount of supplementary commission; after the bill-hanging initiator and the bill-hanging receiver pay the supplementary commission charge within the effective supplementary time, the block chain starts a temporary contract channel, wherein the temporary contract channel refers to a contract channel which is not started currently; if the bill-hanging initiator and the bill-hanging receiver do not pay the supplementary commission charge within the effective supplementary time, the blockchain packages a blank service; if the contract channel corresponding to the address of the contract channel in the dependency label list does not exist or is started, the block chain charges a certain amount of punishment handling fee to the bill-hanging initiator and the bill-hanging receiver and packs blank services; step six: the block chain starts a corresponding stream processing cluster module according to the address of the stream processing cluster module in the dependency label list; the stream processing cluster modules in the same contract channel cannot be started simultaneously, and are started in sequence according to the sequence in the dependency label list; if the dependency tag list is not included in the intelligent contract or the address of the flow processing cluster module is not included in the dependency tag list, the blockchain charges the supplementary commission to the hang ticket initiator and the hang ticket acceptor; after the bill hanging initiator and the bill hanging receiver pay the supplementary commission charge within the effective supplementary time, the block chains sequentially start the corresponding stream processing cluster modules; if the bill-hanging initiator and the bill-hanging receiver do not pay the supplementary commission charge within the effective supplementary time, the blockchain packages a blank service; and if the stream processing cluster module corresponding to the address of the stream processing cluster module in the dependency label list does not exist or is started, the block chain charges the penalty handling fee to the bill hanging initiator and the bill hanging acceptor and packs blank services.
CN202110005499.5A 2021-01-05 2021-01-05 Execution method of block chain based on concurrency model Pending CN113222748A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110005499.5A CN113222748A (en) 2021-01-05 2021-01-05 Execution method of block chain based on concurrency model

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110005499.5A CN113222748A (en) 2021-01-05 2021-01-05 Execution method of block chain based on concurrency model

Publications (1)

Publication Number Publication Date
CN113222748A true CN113222748A (en) 2021-08-06

Family

ID=77083583

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110005499.5A Pending CN113222748A (en) 2021-01-05 2021-01-05 Execution method of block chain based on concurrency model

Country Status (1)

Country Link
CN (1) CN113222748A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108694575A (en) * 2018-06-13 2018-10-23 深圳前海微众银行股份有限公司 Verification method of transferring accounts, device and storage medium based on block chain
CN111414374A (en) * 2020-03-20 2020-07-14 深圳市网心科技有限公司 Block chain transaction concurrent processing method, device and equipment
CN111552709A (en) * 2020-04-24 2020-08-18 潘小胜 Execution method based on concurrent model hanging list

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108694575A (en) * 2018-06-13 2018-10-23 深圳前海微众银行股份有限公司 Verification method of transferring accounts, device and storage medium based on block chain
CN111414374A (en) * 2020-03-20 2020-07-14 深圳市网心科技有限公司 Block chain transaction concurrent processing method, device and equipment
CN111552709A (en) * 2020-04-24 2020-08-18 潘小胜 Execution method based on concurrent model hanging list

Similar Documents

Publication Publication Date Title
CN102223281B (en) Method for remapping resource demand dynamic change based on virtual network
CN110120940A (en) A kind of file system resource partition method towards Docker container
CN107168782A (en) A kind of concurrent computational system based on Spark and GPU
CN103765381B (en) Parallel work-flow to B+ tree
CN112598525B (en) Intelligent contract clustering parallel block chain implementation method and device
CN102014159A (en) Layered resource reservation system under cloud computing environment
CN107085605B (en) Method and device for data packaging and electronic equipment
CN102946413B (en) Method and system for resource preprocessing in dispatching and deployment performing process of virtual machine
CN103186404A (en) System firmware update method and server system applying same
CN111160873A (en) Batch processing device and method based on distributed architecture
CN112799817A (en) Micro-service resource scheduling system and method
CN111552709A (en) Execution method based on concurrent model hanging list
CN113672391A (en) Parallel computing task scheduling method and system based on Kubernetes
US6549931B1 (en) Distributing workload between resources used to access data
US20200133728A1 (en) Data based scheduling for horizontally scalable clusters
CN104077266B (en) Many kernel operating system implementation methods and realize apparatus and system
CN111427608A (en) Gray scale publishing method for bank core system
CN106385330A (en) Network function virtualization composer realization method and device
CN103188335A (en) Node deployment method and server system using by same
CN102243655B (en) Method and device for managing database connections
CN102243653B (en) Method and device for managing database connections
CN102081757A (en) Report making method and system
CN113222748A (en) Execution method of block chain based on concurrency model
CN112559174A (en) Block chain parallel transaction processing method and device
CN109446641B (en) Multi-stage reliability modeling analysis method of cloud computing service system

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 200120 building C3, No. 101 Eshan Road, China (Shanghai) pilot Free Trade Zone, Pudong New Area, Shanghai

Applicant after: Shanghai Lingshuzhonghe Information Technology Co.,Ltd.

Address before: C3, 101 Eshan Road, Pudong New Area, Shanghai, 200120

Applicant before: NENG LIAN TECH. LTD.