CN110046166A - Timed task dispatching method and device based on block chain - Google Patents

Timed task dispatching method and device based on block chain Download PDF

Info

Publication number
CN110046166A
CN110046166A CN201910322758.XA CN201910322758A CN110046166A CN 110046166 A CN110046166 A CN 110046166A CN 201910322758 A CN201910322758 A CN 201910322758A CN 110046166 A CN110046166 A CN 110046166A
Authority
CN
China
Prior art keywords
main chain
timed task
task
chain
transaction
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
CN201910322758.XA
Other languages
Chinese (zh)
Other versions
CN110046166B (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.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network 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 Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN201910322758.XA priority Critical patent/CN110046166B/en
Priority to CN202110327969.XA priority patent/CN112988751A/en
Publication of CN110046166A publication Critical patent/CN110046166A/en
Application granted granted Critical
Publication of CN110046166B publication Critical patent/CN110046166B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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/22Indexing; Data structures therefor; Storage structures
    • G06F16/2228Indexing structures
    • G06F16/2255Hash tables
    • 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/24Querying
    • G06F16/245Query processing
    • G06F16/2458Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
    • G06F16/2471Distributed queries
    • 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
    • G06F16/275Synchronous replication
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Business, Economics & Management (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Software Systems (AREA)
  • Economics (AREA)
  • General Business, Economics & Management (AREA)
  • Computing Systems (AREA)
  • Technology Law (AREA)
  • Strategic Management (AREA)
  • Marketing (AREA)
  • Fuzzy Systems (AREA)
  • Mathematical Physics (AREA)
  • Probability & Statistics with Applications (AREA)
  • Development Economics (AREA)
  • Computational Linguistics (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

Embodiments of the present invention are related to field of computer technology, more specifically, embodiments of the present invention are related to timed task dispatching method and device based on block chain, storage medium and electronic equipment.The described method includes: being instructed in response to the task schedule to main chain, to start to carry out SM service monitoring to the main chain;Timed task is being listened to after the main chain cochain, is carrying out original user state synchronized with the main chain, and execute the timed task after synchronously completing with the main chain;In response to a task halt instruction, the User Status after execution timed task is synchronized to the main chain;After listening to the User Status after the execution timed task and being synchronized to the main chain, terminate the timed task.The timed task of main chain can be automatically transferred to specified side chain and executed by the disclosure, the low problem of effective solution main chain timed task execution efficiency.

Description

Timed task dispatching method and device based on block chain
Technical field
Embodiments of the present invention are related to field of computer technology, more specifically, embodiments of the present invention are related to being based on The timed task dispatching method and device of block chain, storage medium and electronic equipment.
Background technique
This part intends to provides background or context for the embodiments of the present invention stated in claim, retouching herein It states and recognizes it is the prior art not because not being included in this section.
Block chain should be the database of a decentralization as a kind of emerging distributed basis framework, essence, It has been widely used in the various fields such as securities trading, e-commerce, social communication and file storage now.
Summary of the invention
But in some technologies, on the one hand, since existing block platform chain transaction performance are relatively low, at transaction It is slower to manage speed, is unable to satisfy user and frequently trades and trade the demand of timeliness;On the other hand, it will use between each block chain Different traffic contracts can not execute a large amount of high-frequency transaction on a block platform chain.
Therefore, in the prior art, how the timed task of main chain is transferred to side chain to execute, still lacks corresponding system System, standard data processing method.
Thus, it is also very desirable to a kind of improved timed task dispatching method and device based on block chain, storage medium and Electronic equipment, to realize efficient scheduling of the timed task between main chain and side chain.
In the present context, embodiments of the present invention are intended to provide a kind of timed task dispatching method based on block chain With device, storage medium and electronic equipment.
According to one aspect of the disclosure, a kind of timed task dispatching method based on block chain is provided, comprising:
In response to the task schedule instruction to main chain, to start to carry out SM service monitoring to the main chain;
Timed task is being listened to after the main chain cochain, with the main chain carry out original user state synchronized, and The timed task is executed after synchronously completing with the main chain;
In response to a task halt instruction, the User Status after execution timed task is synchronized to the main chain;
After listening to the User Status after the execution timed task and being synchronized to the main chain, terminates the timing and appoint Business.
It is described to include: to main chain progress SM service monitoring in a kind of exemplary embodiment of the disclosure
The transaction of the submission timed task of the specified address of the main chain is monitored by connection-bridge to obtain its Hash of trading;
Block where obtaining the transaction for submitting timed task in the main chain according to the transaction Hash, and according to The block head of the block inquires corresponding cryptographic Hash;
Merkel tree cryptographic Hash is calculated according to the cryptographic Hash, and by institute in the Merkel tree cryptographic Hash and the main chain The original Merkel tree cryptographic Hash in block head is stated to be compared to judge the transaction for submitting timed task whether described Cochain in main chain.
It is described to listen to timed task after the main chain cochain in a kind of exemplary embodiment of the disclosure, with The main chain carries out original user state synchronized
The timed task is being listened to after the main chain cochain, is initiating to determine the timed task in the main chain The transaction of state and cochain;
The timed task is being determined after the state of the main chain, is carrying out original user state synchronized with the main chain;
After the completion of simultaneously operating, initiate to complete synchronous transaction and cochain.
It is described to determine the timed task in the state of the main chain in a kind of exemplary embodiment of the disclosure Afterwards, original user state synchronous with the main chain includes:
Main chain synchronous regime interface is called by connection-bridge, to initiate the friendship of original user state synchronous with the main chain Easily, and by synchronized result the main chain is returned.
In a kind of exemplary embodiment of the disclosure, the method also includes:
The transaction of original user state synchronous with the main chain is monitored, by connection-bridge to determine synchronous original user state Operation whether complete.
In a kind of exemplary embodiment of the disclosure, the execution timed task includes:
It calls contract to execute the timed task according to the clocking discipline in the timed task, and task result is known together Cochain.
In a kind of exemplary embodiment of the disclosure, the clocking discipline according in the timed task calls contract The timed task is executed, and includes: by task result common recognition cochain
Timing contract actuator by going out block node initiates timing according to timing contract and trades, and will hand over comprising the timing Easy block to be confirmed is sent to each ballot node;
The timing contract actuator of the ballot node executes the timing transaction, the execution knot traded according to the timing Fruit generates block voting results and is back to the block node out;
The block node out goes out block voting results according to each ballot node return and judges whether to described fixed When task result go out block cochain.
In a kind of exemplary embodiment of the disclosure, the generation of the task halt instruction includes:
Task halt instruction is generated according to the clocking discipline in the timed task;Or
The transaction for stopping timed task being listened in the main chain cochain, is initiating the transaction for stopping timed task To generate task halt instruction.
In a kind of exemplary embodiment of the disclosure, the User Status after the timed task by execution is synchronized to described Main chain includes:
The synchronous regime interface of the main chain is called by connection-bridge to initiate to return the implementing result of the timed task It is back to the isochronous transaction of the main chain, the User Status after execution timed task is synchronized to the main chain.
In a kind of exemplary embodiment of the disclosure, the User Status after listening to the execution timed task After being synchronized to the main chain, terminating the timed task includes:
After the synchronizing of User Status after listening to the main chain and completing the execution timed task, main chain state is initiated The transaction synchronously completed and cochain;
The transaction of the stop timing task for the main chain is initiated, so that the main chain executes the friendship of stop timing task Easily.
In a kind of exemplary embodiment of the disclosure, in the transaction for listening to the main chain execution stop timing task Afterwards, the method also includes:
The transaction of confirmation stop timing task is initiated, to terminate the timed task.
According to one aspect of the disclosure, a kind of timed task dispatching method based on block chain is provided, comprising:
Based on the task schedule instruction to main chain, side chain is configured for the main chain so that the side chain is opened to the master The SM service monitoring of chain;
The side chain is listening to timed task after the main chain cochain, and it is same to execute original user state with the main chain Step, and the timed task is executed in the side chain;
The side chain is synchronized to the main chain in response to a task halt instruction, by the User Status after execution timed task To update the main chain;
The side chain listen to the main chain by execute timed task after User Status synchronously complete after, in the master Chain and the side chain terminate the timed task.
In a kind of exemplary embodiment of the disclosure, the side chain unlatching includes: to the SM service monitoring of the main chain
The side chain by connection-bridge monitor the main chain specify address submission timed task transaction to obtain its friendship Easy Hash;
Place block of the transaction for submitting timed task in the main chain, and root are obtained according to the transaction Hash Corresponding cryptographic Hash is inquired according to the block head of the block;
Merkel tree cryptographic Hash is calculated according to the cryptographic Hash, and by institute in the Merkel tree cryptographic Hash and the main chain The original Merkel tree cryptographic Hash in block head is stated to be compared to judge the transaction for submitting timed task whether described Cochain in main chain.
In a kind of exemplary embodiment of the disclosure, described when the main chain submits timed task, the method is also Include:
In the main chain lock management user.
In a kind of exemplary embodiment of the disclosure, the side chain listens to the timed task submitted in the main chain Afterwards, executing original user state synchronized with the main chain includes:
The side chain is listening to the timed task after the main chain cochain, and it is described fixed to initiate determination in the side chain When task the state of the main chain transaction and cochain;
The side chain initiates the transaction of synchronous main chain original user state after the timed task for confirming the main chain, with For original user state synchronous with the main chain;
After the side chain, which confirms, completes original user state synchronized, initiate what side chain state synchronized was completed in the side chain Transaction and cochain.
In a kind of exemplary embodiment of the disclosure, the side chain initiate the transaction of synchronous main chain original user state with Include: for original user state synchronous with the main chain
The side chain calls the main chain synchronous regime interface by connection-bridge, to initiate synchronous main chain original user state Transaction, and synchronized result is back to the main chain.
In a kind of exemplary embodiment of the disclosure, the method packet of original user state synchronized is completed in the side chain confirmation It includes:
The side chain by connection-bridge monitor the main chain synchronization original user state transaction with the determination synchronization Whether the operation of original user state is completed.
In a kind of exemplary embodiment of the disclosure, the execution timed task described in the side chain includes:
The side chain node calls contract to execute the timed task according to the clocking discipline in the timed task, and will Task result common recognition cochain.
In a kind of exemplary embodiment of the disclosure, the side chain node is according to the clocking discipline in the timed task It calls contract to execute the timed task, and includes: by task result common recognition cochain
The timing contract actuator for going out block node of the side chain calls timing contract to initiate timing and trades, and will include institute The block to be confirmed for stating timing transaction is sent to each ballot node;
The timing contract actuator of the ballot node calls timing contract to execute the timing transaction, according to the timing The implementing result of transaction generates block voting results, and the block voting results out are back to the block node out;
The block node out judges whether according to the block voting results that go out that the ballot node returns to the timed task As a result go out block cochain.
In a kind of exemplary embodiment of the disclosure, the side chain includes: in response to a task halt instruction
The side chain generates task halt instruction according to the clocking discipline in the timed task;Or
The side chain is being listened in the transaction for the stop timing task that the main chain is initiated, and initiates to tie in the side chain The transaction of beam timed task and cochain.
In a kind of exemplary embodiment of the disclosure, the User Status synchronous with the main chain is to update the main chain Include:
The side chain calls the main chain synchronous regime interface by connection-bridge to initiate the implementing result of timed task It is back to the isochronous transaction of the main chain, the timed task implementing result of the side chain is returned into the main chain, with realization pair The update of the main chain User Status.
It is described to listen to the main chain for execution timing times in the side chain in a kind of exemplary embodiment of the disclosure After User Status after business synchronously completes, terminating the timed task in the main chain and side chain includes:
The side chain initiates the transaction of completion main chain state synchronized simultaneously after the completion of listening to the simultaneously operating of the main chain Cochain;
The side chain initiates the transaction of the stop timing task for the main chain, so that the main chain executes the end The transaction of timed task, and after the completion of confirming simultaneously operating by the transaction of the stop timing task the main chain cochain with Terminate the timed task.
In a kind of exemplary embodiment of the disclosure, the side chain is in the stop timing task for listening to the main chain It trades after the main chain cochain, the method also includes:
The side chain initiates the transaction of side chain confirmation stop timing task and cochain, with described for terminating in the side chain Timed task.
In a kind of exemplary embodiment of the disclosure, the method also includes:
The main chain is unlocked management user.
According to one aspect of the disclosure, a kind of timed task dispatching device based on block chain is provided, comprising:
SM service monitoring module, for being instructed in response to the task schedule to main chain, to start to carry out industry to the main chain Business is monitored;
First task execution module is carried out for listening to timed task after the main chain cochain with the main chain Original user state synchronized, and the timed task is executed after synchronously completing with the main chain;
First task stopping modular is used in response to a task halt instruction, by the User Status after execution timed task It is synchronized to the main chain;
Task ending module, it is synchronous with the main chain complete for the User Status after listening to the execution timed task Cheng Hou terminates the timed task.
In a kind of exemplary embodiment of the disclosure, the SM service monitoring module includes:
Hash of trading obtains module, for monitoring the friendship that the main chain specifies the submission timed task of address by connection-bridge Easily to obtain its Hash of trading;
Block head enquiry module, for obtaining the transaction for submitting timed task in the master according to the transaction Hash Block where in chain, and corresponding cryptographic Hash is inquired according to the block head of the block;
Cryptographic Hash comparison module, for calculating Merkel tree cryptographic Hash according to the cryptographic Hash, and by the Merkel tree Cryptographic Hash is compared to judge the submission timing with the original Merkel tree cryptographic Hash in block head described in the main chain The transaction of task whether in the main chain cochain.
In a kind of exemplary embodiment of the disclosure, the first task execution module includes:
Timed task confirmation module is initiated to determine institute for listening to the timed task after the main chain cochain State transaction and cochain of the timed task in the state of the main chain;
User Status synchronization module, for determining the timed task after the state of the main chain, with the main chain Carry out original user state synchronized;
Module is synchronously completed, completes synchronous transaction and cochain for initiating after the completion of simultaneously operating.
In a kind of exemplary embodiment of the disclosure, the User Status synchronization module includes:
Main chain synchronous regime interface calling module, for by connection-bridge call main chain synchronous regime interface, with initiate and The transaction of the synchronous original user state of the main chain, and synchronized result is returned into the main chain.
In a kind of exemplary embodiment of the disclosure, described device further include:
Synchronized result confirmation module, for monitoring the transaction of original user state synchronous with the main chain by connection-bridge, To determine whether the operation of synchronous original user state is completed.
In a kind of exemplary embodiment of the disclosure, the first task execution module includes:
Timed task execution module, for calling contract to execute the timing according to the clocking discipline in the timed task Task, and task result is known together cochain.
In a kind of exemplary embodiment of the disclosure, the timed task execution module includes:
Transaction initiation module initiates timing according to timing contract for the timing contract actuator by going out block node and trades, And the block to be confirmed traded comprising the timing is sent to each ballot node;
Block voting results generation module out, the timing contract actuator for the ballot node execute the timing and hand over Easily, block voting results are generated according to the implementing result that the timing is traded and is back to the block node out;
Timed task goes out block module, goes out block ballot according to each ballot node return for the block node out As a result judge whether to go out block cochain to the timed task result.
In a kind of exemplary embodiment of the disclosure, the first task stopping modular includes:
Halt instruction generation module, for generating task halt instruction according to the clocking discipline in the timed task;With/ Or
Module is monitored in halt instruction, for listening to the transaction for stopping timed task in the main chain cochain, is initiated The transaction for stopping timed task is to generate task halt instruction.
In a kind of exemplary embodiment of the disclosure, the first task stopping modular further include:
Task result return module, for calling the synchronous regime interface of the main chain by connection-bridge with initiate will be described The implementing result of timed task is back to the isochronous transaction of the main chain, and the User Status after execution timed task is synchronized to The main chain.
In a kind of exemplary embodiment of the disclosure, the task ending module includes:
User Status monitors module, for the User Status after listening to the main chain and completing the execution timed task Synchronize after, initiate main chain state synchronized complete transaction and cochain;
Main chain timed task ending module, for initiating the transaction of the stop timing task for the main chain, so that institute State the transaction that main chain executes stop timing task.
In a kind of exemplary embodiment of the disclosure, described device further include:
Timed task ending module, for initiating the transaction of confirmation stop timing task, to terminate the timed task.
According to one aspect of the disclosure, a kind of timed task dispatching device based on block chain is provided, comprising:
Side chain distribution module, for configuring side chain so that institute for the main chain based on the task schedule instruction to main chain State SM service monitoring of the side chain unlatching to the main chain;
Second task execution module is listening to timed task after the main chain cochain for the side chain, and described Main chain executes User Status and synchronizes, for executing the timed task in the side chain;
Second task stopping modular, for the side chain in response to a task halt instruction, after executing timed task User Status is synchronized to the main chain to update the main chain;
Task finishes module, for listening to the main chain in the side chain that the User Status after executing timed task is same After the completion of step, terminate the timed task in the main chain and the side chain.
In a kind of exemplary embodiment of the disclosure, described device further include:
Hash of trading obtains module, monitors the submission timing that the main chain specifies address by connection-bridge for the side chain The transaction of task is to obtain its Hash of trading;
Block head enquiry module, for obtaining the transaction for submitting timed task in the master according to the transaction Hash Place block in chain, and corresponding cryptographic Hash is inquired according to the block head of the block;
Cryptographic Hash comparison module, for calculating Merkel tree cryptographic Hash according to the cryptographic Hash, and by the Merkel tree Cryptographic Hash is compared to judge the submission timing with the original Merkel tree cryptographic Hash in block head described in the main chain The transaction of task whether in the main chain cochain.
In a kind of exemplary embodiment of the disclosure, described device further include:
User Status locking module is used for when the main chain submits timed task, in the main chain lock management user.
In a kind of exemplary embodiment of the disclosure, second task execution module includes:
Timed task side chain determining module is listening to the timed task in the main chain cochain for the side chain Afterwards, the transaction of state of the determining timed task in the main chain and cochain are initiated in the side chain;
Original user state synchronized module is initiated to synchronize for the side chain after the timed task for confirming the main chain The transaction of main chain original user state, to be used for original user state synchronous with the main chain;
Original user state side chain confirmation module is used for after the side chain confirms completion original user state synchronized, The side chain initiates the transaction that side chain state synchronized is completed and cochain.
In a kind of exemplary embodiment of the disclosure, the original user state synchronized module includes:
Main chain synchronous regime interface calling module calls the main chain synchronous regime to connect for the side chain by connection-bridge Mouthful, to initiate the transaction of synchronous main chain original user state, and synchronized result is back to the main chain.
In a kind of exemplary embodiment of the disclosure, the original user state side chain confirmation module includes:
Main chain isochronous transaction monitors module, monitors the synchronization original user of the main chain by connection-bridge for the side chain Whether the transaction of state is completed with the operation of the determination synchronous original user state.
In a kind of exemplary embodiment of the disclosure, second task execution module includes:
Timed task side chain execution module is called for the side chain node according to the clocking discipline in the timed task Contract executes the timed task, and task result is known together cochain.
In a kind of exemplary embodiment of the disclosure, the timed task side chain execution module includes:
Block node execution module out, the timing contract actuator for going out block node for the side chain call timing contract hair It plays timing to trade, and the block to be confirmed traded comprising the timing is sent to each ballot node;
Ballot node execution module, the timing contract actuator for the ballot node call described in the execution of timing contract Timing is traded, and generates block voting results according to the implementing result that the timing is traded, and go out block voting results by described in and return To the block node out;
Task result goes out block module, is sentenced for the block node out according to the block voting results that go out that the ballot node returns It is disconnected whether block cochain to be gone out to the timed task result.
In a kind of exemplary embodiment of the disclosure, the second task stopping modular includes:
Halt instruction side chain generation module generates task according to the clocking discipline in the timed task for the side chain Halt instruction;And/or
Halt instruction side chain monitors module, is listening to the stop timing task initiated in the main chain for the side chain Transaction when, the side chain initiate stop timing task transaction and cochain.
In a kind of exemplary embodiment of the disclosure, the second task stopping modular further include:
Task result return module calls the main chain synchronous regime interface to initiate for the side chain by connection-bridge The implementing result of timed task is back to the isochronous transaction of the main chain, the timed task implementing result of the side chain is returned The main chain is returned, to realize the update to the main chain User Status.
In a kind of exemplary embodiment of the disclosure, the task module that finishes includes:
Main chain synchronously completes module, for the side chain after the completion of listening to the simultaneously operating of the main chain, has initiated Transaction and cochain at main chain state synchronized;
Timed task main chain ending module initiates the friendship of the stop timing task for the main chain for the side chain Easily, so that the main chain executes the transaction of the stop timing task, and terminate to determine by described after the completion of confirming simultaneously operating When task transaction in the main chain cochain to terminate the timed task.
In a kind of exemplary embodiment of the disclosure, the task finishes module further include:
Timed task side chain ending module, for the side chain initiate side chain confirmation stop timing task transaction and Chain, for terminating the timed task in the side chain.
In a kind of exemplary embodiment of the disclosure, described device further include:
User's unlocked state is unlocked management user for the main chain.
According to one aspect of the disclosure, a kind of storage medium is provided, computer program, the computer are stored thereon with Any of the above-described timed task dispatching method as described in the examples based on block chain is realized when program is executed by processor.
According to one aspect of the disclosure, a kind of electronic equipment is provided, comprising:
Processor;And
Memory, for storing the executable instruction of the processor;
Wherein, the processor is configured to execute base described in above-mentioned any one via the executable instruction is executed In the timed task dispatching method of block chain.
The timed task dispatching method of embodiment according to the present invention is made by being in advance that main chain distributes corresponding side chain Side chain can monitor the transaction submitted in main chain in real time;And after listening to main chain and submitting timed task, by the original use of main chain Family state synchronized allows side chain to execute corresponding timed task, to realize the timed task of main chain is automatic to side chain It is transferred to specified side chain to execute, the low problem of effective solution main chain timed task execution efficiency.And in side chain stop timing The User Status after execution timed task is synchronized to main chain after task, and then reduces the transaction total amount of main chain, reduces main chain Transactional overhead.
Detailed description of the invention
The following detailed description is read with reference to the accompanying drawings, above-mentioned and other mesh of exemplary embodiment of the invention , feature and advantage will become prone to understand.In the accompanying drawings, if showing by way of example rather than limitation of the invention Dry embodiment, in which:
Fig. 1 schematically shows a kind of timed task dispatching method based on block chain of embodiment according to the present invention Flow chart;
Fig. 2 schematically shows the side chains of embodiment according to the present invention to the method flow of main chain progress SM service monitoring Figure;
The side chain Yu main chain that Fig. 3 schematically shows embodiment according to the present invention carry out original user state synchronized Method flow diagram;
Fig. 4 schematically shows the side chains of embodiment according to the present invention by timed task implementing result common recognition cochain Method flow diagram;
Fig. 5 schematically shows the method flow diagram of the stop timing task of embodiment according to the present invention;
Fig. 6 schematically shows another timed task dispatching party based on block chain of embodiment according to the present invention The flow chart of method;
Fig. 7 schematically shows a kind of timed task dispatching device based on block chain of embodiment according to the present invention Block diagram;
Fig. 8 schematically shows another timed task scheduling dress based on block chain of embodiment according to the present invention The block diagram set;
Fig. 9 shows the schematic diagram of the storage medium of embodiment according to the present invention;And
Figure 10 diagrammatically illustrates the block diagram of the electronic equipment according to invention embodiment.
In the accompanying drawings, identical or corresponding label indicates identical or corresponding part.
Specific embodiment
The principle and spirit of the invention are described below with reference to several illustrative embodiments.It should be appreciated that providing this A little embodiments are used for the purpose of making those skilled in the art can better understand that realizing the present invention in turn, and be not with any Mode limits the scope of the invention.On the contrary, these embodiments are provided so that this disclosure will be more thorough and complete, and energy It is enough that the scope of the present disclosure is completely communicated to those skilled in the art.
One skilled in the art will appreciate that embodiments of the present invention can be implemented as a kind of system, device, equipment, method Or computer program product.Therefore, the present disclosure may be embodied in the following forms, it may be assumed that complete hardware, complete software The form that (including firmware, resident software, microcode etc.) or hardware and software combine.
Embodiment according to the present invention provides a kind of timed task dispatching method based on block chain, based on block chain Timed task dispatching device, storage medium and electronic equipment.
Herein, any number of elements in attached drawing is used to example rather than limitation and any name are only used for It distinguishes, without any restrictions meaning.
Below with reference to several representative embodiments of the invention, the principle and spirit of the invention are elaborated.
Summary of the invention
The inventors discovered that in the prior art, existing block platform chain is executed by transaction single machine, single machine stores, single The reasons such as the common recognition efficiency of block chain are unable to satisfy user and frequently hand under causing the transaction performance of block platform chain all relatively low Easy demand.Also, in existing technical solution, different traffic contracts is used between each block platform chain, so that each block Timing transaction task in chain is also only capable of executing in the block platform chain where respective, leads to not in a block platform chain High-frequency execution timing transaction task.
In view of above content, basic thought of the invention is: by being in advance that main chain distributes corresponding side chain, a side Face can be such that side chain is monitored in real time in main chain submission and the transaction of cochain;It, will and after listening to main chain and submitting timed task The original user state synchronized of main chain allows side chain to execute corresponding timed task, to realize main chain to side chain Timed task is automatically transferred to specified side chain and executes, the low problem of effective solution main chain timed task execution efficiency.It is another Fermentation is further subtracted by the way that the User Status after execution timed task is synchronized to main chain after side chain stop timing task The transaction total amount of few main chain, reduces the transactional overhead of main chain, and promote transactions velocity.
After introduced the basic principles of the present invention, lower mask body introduces various non-limiting embodiment party of the invention Formula.
Illustrative methods
The timed task dispatching party based on block chain of illustrative embodiments according to the present invention is described below with reference to Fig. 1 Method.
With reference to Fig. 1, the timed task dispatching method based on block chain be may comprise steps of:
S11, it is instructed in response to the task schedule to main chain, to start to carry out SM service monitoring to the main chain;
S12, timed task is being listened to after the main chain cochain, carry out original user state synchronized with the main chain, And the timed task is executed after synchronously completing with the main chain;
S13, in response to a task halt instruction, the User Status after timed task will be executed and be synchronized to the main chain;
S14, listen to it is described execution timed task after User Status be synchronized to the main chain after, terminate the timing Task.
In the timed task dispatching method based on block chain of embodiment of the present invention, by being in advance main chain distribution pair The side chain answered allows side chain to monitor the transaction submitted in main chain in real time;And after listening to main chain and submitting timed task, it will lead The original user state synchronized of chain allows side chain to execute corresponding timed task, determines main chain to realize to side chain When task be automatically transferred to specified side chain and execute, the low problem of effective solution main chain timed task execution efficiency.And in side The User Status after execution timed task is synchronized to main chain after end of chain (EOC) timed task, and then reduces the transaction total amount of main chain, Reduce the transactional overhead of main chain.
In step s 11, it is instructed in response to the task schedule to main chain, to start to carry out business prison to the main chain It listens.
In the illustrative embodiments of the disclosure, for side chain, user can distribute corresponding side chain for main chain, To make side chain monitor submission on main chain and the transaction of cochain.Wherein, side chain can be by POS (Proof of Stake, equity prove), the block chain based on the common recognition such as BFT (Byzantine Fault Tolerance, Byzantine failure tolerance). Specifically, side chain may include connection-bridge, side chain contract and side chain timing contract actuator.Wherein, connection-bridge is as side A part of chain monitors each node of side chain to main chain block and transaction by connection-bridge.Side chain contract is then pair It should be in the contract of main chain traffic contract.Side chain timing contract actuator can be used for according to timing contract, and repeating query simultaneously executes timing Transaction.
Wherein, connection-bridge can have inquiry User Status function (quey status), execute isochronous transaction function (execute status status) and execution finish timer function (execute finish timing).It is specific next It says, above-mentioned inquiry User Status function is export status method (the export Status called in main chain contract Result).After side chain calls main chain deriving method, the user of all association user addresses (relate Address) can be exported State, and carry out the initialization of side chain contract User Status.Above-mentioned execution isochronous transaction function, i.e., it is main in calling main chain contract Chain synchronous regime (sync Status Status) method initiates isochronous transaction, the implementing result of side chain timer, i.e. side chain User Status result after executing timed task returns to the process of main chain.Meanwhile connection-bridge can also constantly monitor the same of main chain Step transaction, to determine whether synchronization succeeds.Above-mentioned execution finishes timer function, can call the timing that finishes in main chain contract Task (finish Timing) method, after the completion of the state synchronized of all users of side chain, it is fixed to finishing for main chain that side chain is initiated When task trade, to be properly completed the timed task of main chain.
Above-mentioned side chain contract corresponds to the contract of main chain traffic contract, may include that timed task is submitted in confirmation (sure Sumit Timing).On the submission timed task (sumit Timing) that connection-bridge listens to main chain is traded and is determined After chain, side chain initiates to execute the transaction for determining submission timed task by going out block node, and takes the parameter of the timed task of main chain (time Params), is submitted to side chain.
It is that can also configure the main chain contract for needing to monitor after main chain distributes corresponding side chain for side chain in block chain member Address and need block chain account to be used.In addition, a main chain can correspond to one or more side chain, i.e. the timing of main chain is appointed Business, which can be assigned at least one side chain, to be executed.Due to may include multiple contracts in main chain, then main chain contract and side chain be then It can be the relationship of multi-to-multi, wherein a contract in main chain can correspond to the side chain for executing its timed task.It Afterwards, which can be by connection-bridge, with side chain/trunking scheme to the transaction (watch_eth) of main chain and block (watch_ Block it) is monitored in real time.
Specifically, refering to what is shown in Fig. 2, side chain may comprise steps of main chain progress SM service monitoring:
Step S111 monitors the transaction of the submission timed task of the specified address of the main chain by connection-bridge to obtain its friendship Easy Hash;
Step S112 obtains the transaction for submitting timed task location in the main chain according to the transaction Hash Block, and corresponding cryptographic Hash is inquired according to the block head of the block;
Step S113 calculates Merkel tree cryptographic Hash according to the cryptographic Hash, and by the Merkel tree cryptographic Hash and institute The original Merkel tree cryptographic Hash in block head described in main chain is stated to be compared to judge the transaction for submitting timed task Whether in the main chain cochain.
In the illustrative embodiments of the disclosure, side chain can pass through monitoring main chain transaction (watch_eth) and block (watch_block) come determine main chain timer transaction generation and whether cochain.For example, side chain can pass through monitoring Main chain corresponds to the All Activity under traffic contract, to judge whether timed task transaction occurs.Also, side chain can also pass through prison The block head of all cochains of main chain is listened, and those blocks are added in side chain, proves (Simplified to be SPV Payment Verification, simple pay warrant).Specifically, side chain is determined what specified address was initiated listening to main chain When task transaction after, obtain the transaction Hash of the transaction;And existed by the transaction hash query main chain with obtaining the exchange Block.And side chain is inquired by the block head of monitoring main chain and obtains building Merkel tree (merkle in main chain block Tree the cryptographic Hash needed for), and Merkel tree Hash (merkle root hash) is calculated according to the cryptographic Hash;And by the calculating Merkel tree Hash compared with the original Merkel tree Hash in main chain block head, judge whether equal.Judging phase Whens equal, then prove that timed task transaction is existing in main chain, and cochain.If unequal, prove the transaction in master It is not present in chain or side chain data from the block head that main chain is downloaded has situations such as mistake.
In step S12, timed task is being listened to after the main chain cochain, carries out original user state with the main chain It is synchronous, and the timed task is executed after synchronously completing with the main chain.
It, can when side chain is listening to timed task after main chain cochain in the illustrative embodiments of the disclosure Corresponding timed task is executed in side chain by the original user state synchronized of main chain to side chain, and then after synchronously completing.
Specifically, refering to what is shown in Fig. 3, above-mentioned listening to timed task after the main chain cochain, with the master Chain carries out original user state synchronized
Step S1201 is listening to the timed task after the main chain cochain, initiates to determine that the timed task exists The transaction of the state of the main chain and cochain;
Step S1202 is determining the timed task after the state of the main chain, is carrying out original user with the main chain State synchronized;
Step S1203 initiates to complete synchronous transaction and cochain after the completion of simultaneously operating.
In the illustrative embodiments of the disclosure, side chain is in the submission timed task for listening to main chain by connection-bridge The transaction of (sumit Timing), and the transaction is determined after main chain cochain, it initiates to determine the timed task in institute in side chain State the transaction of the state of main chain and cochain.It is original can to execute synchronous main chain after determining the timed task of main chain for side chain The transaction of User Status, by the state synchronized of all association user addresses of main chain to side chain.Specifically, side chain passes through connection-bridge Export state (export Status Status) method of main chain is called, is initiated to management station address (relate Address state synchronized).Side chain node carries out the synchronous cochain situation of each pen state, until the shape of all original users State change all cochain successes.
Side chain can initiate to complete side chain state synchronized (finish Sync after determining that all User Status synchronously complete User Status) transaction and cochain.Side chain can also monitor original user state synchronous with the main chain by connection-bridge Transaction, to determine whether the operation of synchronous original user state is completed.
In addition, method can also be executed comprising specified timed task in contract, by timed task (execute Timing the timing contract actuator of each node of side chain is given) to manage timed task.Timing contract actuator is side chain Primary module, in the case where meeting contract clocking discipline, poll initiate to contract specify timed task execute method transaction.Example Such as, it may include that timed task executes according to the time, executes transaction according to the sequence of block out in timed task execution method, hold every time The number of row transaction.
After the original user state synchronized to side chain by main chain, side chain can be according to main chain by timing contract actuator Clocking discipline in middle timed task, continual calling contract execute timed task, and task result is known together cochain.
Specifically, refering to what is shown in Fig. 4, may comprise steps of:
Step S1211, the timing contract actuator by going out block node initiates timing according to timing contract and trades, and will include The block to be confirmed of the timing transaction is sent to each ballot node;
Step S1212, the timing contract actuator of the ballot node execute the timing transaction, are handed over according to the timing Easy implementing result generates block voting results and is back to the block node out;
Step S1213, the block node out, which goes out the judgement of block voting results according to each ballot node return, is It is no that block cochain is gone out to the timed task result.
In the illustrative embodiments of the disclosure, after side chain, which takes turns to some node, goes out block, determining for block node by this Shi Heyue actuator executes method according to corresponding timed task on timing strategies calling contract and trades to execute timing.Block section out Point is packaged timing and trades, and block to be confirmed is sent to ballot node.Node vote also by the timing contract actuator of oneself Timing is executed to trade.Timing contract actuator can first determine whether timing trades whether meet clocking discipline, meet rule in judgement When then, timing is executed further according to the timing method in contract and is traded.Node timing contract actuator of voting executes timed task knot The corresponding cryptographic Hash of implementing result is added in sign test parameter by Shu Hou, returns to out block node as block voting results out.So that Block node collects the voting results of ballot node out, can after the ballot node for executing timed task is greater than certain proportion Timed task is gone out into block cochain, and then completes a wheel timed task.In next round timed task, other go out block node also according to Successively poll executes timed task and cochain to this mode.
In step s 13, in response to a task halt instruction, the User Status after execution timed task is synchronized to described Main chain.
In the illustrative embodiments of the disclosure, above-mentioned task halt instruction be can be according in the timed task Clocking discipline generate task halt instruction;For example, according to clocking discipline in preset time point stop timing task, thus Task halt instruction is generated when reaching the preset time point;Alternatively, stop timing is appointed after timed task executes pre-determined number It is engaged in and generates task halt instruction.For example, the preset number for executing timed task is 500 times, then gone in timed task When up to 500 times, task halt instruction is generated.Alternatively, being also possible to listening to the transaction for stopping timed task in main chain cochain When, the transaction for initiating to stop timed task is to generate task halt instruction.
After obtaining task halt instruction, the synchronous regime interface of main chain can be called to initiate to determine by connection-bridge When task implementing result be back to the isochronous transaction of main chain, to be synchronized to master for the User Status after timed task is executed Chain.
In step S14, after listening to the User Status after the execution timed task and being synchronized to the main chain, terminate The timed task.
In the illustrative embodiments of the disclosure, refering to what is shown in Fig. 5, above-mentioned step S14 may include:
Step S141, after the synchronizing of User Status after listening to the main chain and completing the execution timed task, hair Play the transaction that main chain state synchronized is completed and cochain;
Step S142 initiates the transaction of the stop timing task for the main chain, so that the main chain, which executes, to be terminated to determine When task transaction.
Step S143 initiates the transaction of confirmation stop timing task, to terminate the timed task.
In some exemplary embodiments of the disclosure, after side chain timed task stops, side chain passes through connection-bridge initiation pair The User Status isochronous transaction of main chain executed after timed task synchronizes the state of all management users, to change main chain All User Status, be arranged to the consistent token quantity of side chain, and complete synchronous user to each and be marked.Side chain By the transaction of monitoring main chain and block, after the completion of determining that all User Status of main chain change, side chain initiates main chain state synchronized The transaction for completing (finish Sync Status), to make main chain stop timing task.
Further, for side chain after completing the transaction that main chain state synchronized is completed, side chain initiates needle again by connection-bridge Transaction to the stop timing task of main chain makes main chain execute simultaneously thoroughly stop timing task.Side chain terminates monitoring main chain After timed task, side chain initiates to confirm the transaction for timed task (the sure Finish Timing) that finish.After cochain success, in side End of chain (EOC) timed task, so that timed task be made thoroughly to terminate.Wherein, above-mentioned transaction cochain in main chain or side chain refer to by Transaction data is saved into corresponding block chain, and forms new block.
In other exemplary embodiment party's examples of the disclosure, for main chain and side chain, refering to what is shown in Fig. 6, above-mentioned Timed task dispatching method based on block chain may comprise steps of:
Step S21 configures side chain based on the task schedule instruction to main chain for the main chain so that the side chain is opened SM service monitoring to the main chain;
Step S22, the side chain are listening to timed task after the main chain cochain, execute original use with the main chain Family state synchronized, and the timed task is executed in the side chain;
User Status after execution timed task is synchronized to by step S23, the side chain in response to a task halt instruction The main chain is to update the main chain;
Step S24, the side chain listen to the main chain by execute timed task after User Status synchronously complete after, Terminate the timed task in the main chain and the side chain.
Below with reference to drawings and examples to the timed task tune based on block chain of exemplary embodiment of the invention Interaction in degree method between main chain and side chain is described in more detail.
In the step s 21, based on the task schedule instruction to main chain, side chain is configured so that the side chain for the main chain Open the SM service monitoring to the main chain.
In the illustrative embodiments of the disclosure, user or block chain member can generate previously according to actual demand and appoint It is engaged in dispatch command, may include the specified side distributed for main chain (main block chain) and migrate and execute timed task in the instruction Chain, and make side chain start to carry out transaction monitoring to the main chain after distributing side chain.And it is possible to for main chain distribution one or more Side chain, i.e. main chain and side chain can be one-to-many relationship.Above-mentioned main chain may include multiple traffic contracts, i.e. main chain contract It can be the relationship of multi-to-multi with side chain, wherein a contract corresponding one in main chain executes its corresponding timed task Side chain.
For example, the method that the traffic contract of above-mentioned main chain may include execution and synchronization timing task.For example, industry It may include in business contract and submit timed task, stop timed task, export state, synchronous regime and the timed task that finishes Method.Wherein, the method for submitting timed task may include one or more parameters below:
1) the contract address (send Address) of timed task is initiated, which must be the specified block chain of contract Location, it is ensured that timed task is initiated by the address, to prevent other accounts from abusing.
2) method (execute Method) that timed task executes, the execution method of the timed task must be in contract Existing method is called method when executing timed task for side chain.Timing method is determined by customer service Method;Such as value timing exchange method, data timing triggering method etc..
3) parameter (method Param) of timing method is executed, part timing method exists needed for executing timed task Configuration parameter is passed to side chain when executing timed task for side chain by configuration parameter, executes side chain according to the configuration parameter Timed task.
4) address (relate Address) of timed task association user, since timed task is related between address mutually Value exchange, different addresses must be related to;Therefore the address of specified associations user is needed, convenient for locking the specified pass It is combined the address at family, i.e., the specified address is not allowed to trade in main chain.If the not address of specified associations user can lock this All addresses of contract, i.e., all addresses cannot trade in main chain.These addresses can be prevented simultaneously in side by locked transaction Chain and main chain change, the address of locking cannot change in main chain, allow to change in side chain.
5) timed task mark (time Id), can be used for the ID of timed task of uniquely tagged.Subsequent timed task Other treatment processes can also using this ID as mark.
6) timed task type (type), for example, timer-type includes being incremented by poll, or temporally poll by block Block etc..
7) timed task strategy (type Info), for example, executed if being incremented by by block, several blocks are set and are held The timing of row pre-determined number is traded, block it is incremental, be the incremental change according to side chain, for example every increase a block and initiate Ten transactions.If temporally poll, the timing transaction of pre-determined number is executed after setting scheduled duration, for example initiate for every 10 seconds Ten transactions.
8) timed task stop condition (stop Require), i.e. side chain execute the stop condition of timed task, for example, can Stop timed task to be arranged after the executing pre-determined number altogether of the task, or stops periodically appointing after executing the task of predetermined total duration Business etc..If being not provided with stop condition, side chain timer can be stopped by the subsequent transaction for initiating stopping timed task.
Specifically, above-mentioned side chain may include: to main chain progress SM service monitoring
Step S211, the side chain by connection-bridge monitor the main chain specify address submission timed task transaction with Obtain its Hash of trading;
Step S212 obtains place of the transaction for submitting timed task in the main chain according to the transaction Hash Block, and corresponding cryptographic Hash is inquired according to the block head of the block;
Step S213 calculates Merkel tree cryptographic Hash according to the cryptographic Hash, and by the Merkel tree cryptographic Hash and institute The original Merkel tree cryptographic Hash in block head described in main chain is stated to be compared to judge the transaction for submitting timed task Whether in the main chain cochain.
Side chain confirms master by transaction (watch eth) to main chain and block (watch block) snoop results jointly Whether the transaction of chain timed task occurs and cochain.Specifically, side chain is monitored main chain by connection-bridge and is corresponded under traffic contract All Activity, to judge whether timed task relationship trading occurs;The area that side chain passes through all cochains of monitoring main chain Build, and be added in the block chain of side chain oneself, (Simplified Payment is proved to carry out SPV Verification, simple payment verification).
In step S22, the side chain is listening to timed task after the main chain cochain, executes original with the main chain Beginning User Status is synchronous, and executes the timed task in the side chain.
In the illustrative embodiments of the disclosure, user can submit timed task in main chain, which can be with The clocking discipline of specified main chain contract.Also, when main chain submits timed task, management user can also be locked in main chain It is fixed, it prevents from doing data change in main chain.
Specifically, above-mentioned side chain listens to after the timed task that the main chain is submitted, and executes original with the main chain Beginning User Status is synchronous, can specifically include:
Step S2211, the side chain are listening to the timed task after the main chain cochain, initiate in the side chain Determine transaction and cochain of the timed task in the state of the main chain;
Step S2212, the side chain initiate synchronous main chain original user state after the timed task for confirming the main chain Transaction, be used for original user state synchronous with the main chain;
Step S2213 initiates side chain state in the side chain after side chain, which confirms, completes original user state synchronized The transaction synchronously completed and cochain.
Side chain is listening to after the timed task cochain that main chain is submitted, and side chain can also initiate to determine the timed task Transaction and cochain in the state of the main chain, so that the timing transaction to main chain confirms.Side chain is determining determining for main chain When task after, can execute synchronous main chain original user state transaction and cochain, thus by the original user state of main chain It is synchronized to side chain.
Specifically, side chain can call main chain synchronous regime interface by connection-bridge, to call the export in main chain contract Status method, to initiate the transaction of synchronous main chain original user state, to export the original use of all association user addresses of main chain Family state, and carry out the initialization of side chain.
At the same time it can also which synchronized result is returned to main chain, main chain is made to terminate the simultaneously operating of original user state.Side chain is also The transaction of the synchronization original user state of main chain can be monitored, by connection-bridge with side chain to determine the behaviour of synchronous original user state Whether complete.
For side chain after completing the synchronizing of original user state, side chain node can be according to the clocking discipline in timed task It calls contract to execute timed task, and task result is known together cochain.Specifically, may include:
Step S2221, the timing contract actuator for going out block node of the side chain call timing contract to initiate timing and trade, And the block to be confirmed traded comprising the timing is sent to each ballot node;
Step S2222, the timing contract actuator of the ballot node call timing contract to execute the timing transaction, root Block voting results are generated according to the implementing result that the timing is traded, and the block voting results out are back to the block section out Point;
Step S2223, the block node out judge whether according to the block voting results that go out that the ballot node returns to institute It states timed task result and goes out block cochain.
In the illustrative embodiments of the disclosure, the timing contract actuator of side chain node is according to timing strategies in contract Initiate corresponding timing transaction, Lai Zhihang timed task.Status Change in contract must be above-mentioned specified association user, If the Status Change for the user being related to other than the address range of association user in contract implementation procedure, executes failure.
In step S23, the side chain is same by the User Status after execution timed task in response to a task halt instruction Step is to the main chain to update the main chain.
In the illustrative embodiments of the disclosure, above-mentioned task halt instruction can be side chain according in timed task Clocking discipline generate task halt instruction, i.e., according to the method for the timed task that finishes in main chain contract generate task stop Only instruct.Alternatively, in contract when the not set method for stopping timed task, it can also be by submitting stop timing to appoint in main chain The transaction of business stops timed task.When side chain is being listened in the transaction for the stop timing task that the main chain is initiated, just Can the side chain initiate stop timing task transaction and cochain, thus stop timing task.
Specifically, after side chain stops timed task, side chain can call the synchronous shape of the main chain by connection-bridge State interface is appointed the timing of the side chain with initiating the isochronous transaction that the implementing result by timed task is back to the main chain Implementing result of being engaged in returns to the main chain, to realize the update to the main chain User Status.It is led that is, side chain is called by connection-bridge Chain synchronous regime method initiates isochronous transaction, by the implementing result of side chain timed task, i.e. user's shape after execution timed task State result is back to main chain, and main chain is made to change all User Status, be arranged to the consistent token quantity of side chain, and to each The user synchronously completed is marked.
The called side of above-mentioned main chain synchronous regime interface must be the block chain account address of side chain management, to prevent side chain Timed task implementing result move to other main chains or main chain account.Incoming parameter can also include address, token quantity Deng.For example, user original 10 token in main chain, and after side chain executes timed task, it is 20 token, then in main chain User is set as 20 token.After user token is arranged successfully simultaneously, it can also mark and be arranged successfully.Also, connection-bridge is also The isochronous transaction of main chain can be monitored, constantly to determine whether synchronization succeeds.
In step s 24, the main chain is listened in the side chain to have synchronized the User Status after executing timed task Cheng Hou terminates the timed task in the main chain and the side chain.
In the illustrative embodiments of the disclosure, above-mentioned step S24 may include:
It is same to initiate completion main chain state after the completion of listening to the simultaneously operating of the main chain for step S241, the side chain The transaction of step and cochain;
Step S242, the side chain initiates the transaction of the stop timing task for the main chain, so that the main chain is held The transaction of the row stop timing task, and after the completion of confirming simultaneously operating by the transaction of the stop timing task described Main chain cochain is to terminate the timed task.
Step S243, the side chain initiates the transaction of side chain confirmation stop timing task and cochain, in the side Timed task described in end of chain (EOC).
Transaction and block of the side chain by monitoring main chain, confirmation are synchronous with main chain by the User Status after executing timed task After the completion, the transaction of completion main chain state synchronized and cochain are initiated.At the same time it can also release the locking shape of each user in main chain State.
Side chain can also call main chain finish timed task method by connection-bridge, initiate the stop timing task to main chain Transaction, thoroughly terminate the timed task of main chain.Side chain monitors timed task after main chain is thorough, and side chain initiates confirmation The transaction of stop timing task, after the success of side chain cochain, timed task thoroughly terminates in side chain.To complete in main chain and side chain At the submission of a timed task, synchronization, execution, stopping, resynchronisation, the process that finishes.
In conclusion by distributing corresponding one or more side chains in advance for main chain, so that the timing of different contracts is appointed Timed task can be transferred to specified side chain and executed by business when being submitted to main chain.By executing main chain using side chain cooperation Timed task, solve the problems, such as that single block chain timing trading volume excessive, efficiency and performance are too low;Reduce main chain simultaneously The transactional overhead for the total amount and main chain of trading;Side chain can provide the Transaction Inquiries of specific timed task task simultaneously.
Exemplary means
After describing the timed task dispatching method based on block chain of exemplary embodiment of the invention, connect down Come, is described with reference to timed task dispatching device based on block chain of the Fig. 7 to exemplary embodiment of the invention.
Refering to what is shown in Fig. 7, a kind of timed task dispatching device 10 based on block chain of exemplary embodiment of the invention It may include: that SM service monitoring module 101, first task execution module 102, first task stopping modular 103 and task terminate Module 104.Wherein:
The SM service monitoring module 101 can be used in response to the task schedule instruction to main chain, to start to described Main chain carries out SM service monitoring.
The first task execution module 102 can be used for listening to timed task after the main chain cochain, with institute It states main chain and carries out original user state synchronized, and execute the timed task after synchronously completing with the main chain.
The first task stopping modular 103 can be used in response to a task halt instruction, after executing timed task User Status be synchronized to the main chain.
The task ending module 104 can be used for listen to it is described execution timed task after User Status with it is described After main chain synchronously completes, terminate the timed task.
According to an exemplary embodiment of the present disclosure, the SM service monitoring module 101 may include: that transaction Hash obtains mould Block, block head enquiry module and cryptographic Hash comparison module (not shown).Wherein,
The transaction Hash, which obtains module, can be used for monitoring the submission timing that the main chain specifies address by connection-bridge The transaction of task is to obtain its Hash of trading.
The block head enquiry module can be used for obtaining the transaction for submitting timed task according to the transaction Hash Block where in the main chain, and corresponding cryptographic Hash is inquired according to the block head of the block.
The cryptographic Hash comparison module can be used for calculating Merkel tree cryptographic Hash according to the cryptographic Hash, and will be described silent Ke Er tree cryptographic Hash is compared to mention described in judgement with the original Merkel tree cryptographic Hash in block head described in the main chain Hand over timed task transaction whether in the main chain cochain.
According to an exemplary embodiment of the present disclosure, the first task execution module 102 may include: timed task confirmation Module, User Status synchronization module and synchronously complete module (not shown).Wherein,
The timed task confirmation module can be used for listening to the timed task after the main chain cochain, initiate Determine transaction and cochain of the timed task in the state of the main chain.
The User Status synchronization module can be used for determining the timed task after the state of the main chain, with institute It states main chain and carries out original user state synchronized.
The module that synchronously completes can be used for after the completion of simultaneously operating, initiate to complete synchronous transaction and cochain.
According to an exemplary embodiment of the present disclosure, the User Status synchronization module may include: that main chain synchronous regime connects Mouth calling module (not shown).
The main chain synchronous regime interface calling module can be used for calling main chain synchronous regime interface by connection-bridge, with The transaction of original user state synchronous with the main chain is initiated, and synchronized result is returned into the main chain.
According to an exemplary embodiment of the present disclosure, described device further include: synchronized result confirmation module (not shown).
The synchronized result confirmation module can be used for monitoring original user state synchronous with the main chain by connection-bridge Transaction, to determine whether the operation of synchronous original user state is completed.
According to an exemplary embodiment of the present disclosure, the first task execution module may include: that timed task executes mould Block (not shown).
The timed task execution module can be used for calling contract to execute according to the clocking discipline in the timed task The timed task, and task result is known together cochain.
According to an exemplary embodiment of the present disclosure, the timed task execution module may include: transaction initiation module, go out Block voting results generation module and timed task go out block module (not shown).Wherein,
The transaction initiation module can be used for the timing contract actuator by going out block node initiates to determine according to timing contract When trade, and the block to be confirmed traded comprising the timing is sent to each ballot node.
Described in the timing contract actuator that the block voting results generation module out can be used for the ballot node executes Timing is traded, and is generated block voting results according to the implementing result that the timing is traded and is back to the block node out.
The timed task, which goes out block module, can be used for the block node out according to each ballot node return Block voting results judge whether to go out block cochain to the timed task result out.
According to an exemplary embodiment of the present disclosure, the first task stopping modular 103 may include: that halt instruction generates Module is living and/or module (not shown) is monitored in halt instruction.Wherein,
The halt instruction generation module, which can be used for generating task according to the clocking discipline in the timed task, to be stopped Instruction.
Module is monitored in the halt instruction can be used for listening to the transaction for stopping timed task in the main chain cochain When, the transaction for stopping timed task being initiated to generate task halt instruction.
According to an exemplary embodiment of the present disclosure, the first task stopping modular further include: task result return module (not shown).
The task result return module can be used for calling the synchronous regime interface of the main chain to send out by connection-bridge Play the isochronous transaction that the implementing result of the timed task is back to the main chain, user's shape after timed task will be executed State is synchronized to the main chain.
According to an exemplary embodiment of the present disclosure, the task ending module includes: that monitor module, main chain fixed for User Status When task ending module (not shown).Wherein,
The User Status, which monitors module, can be used for after listening to the main chain and completing the execution timed task After the synchronizing of User Status, the transaction that main chain state synchronized is completed and cochain are initiated.
The main chain timed task ending module can be used for initiating the transaction of the stop timing task for the main chain, So that the main chain executes the transaction of stop timing task.
According to an exemplary embodiment of the present disclosure, described device further include: timed task ending module (not shown).
The timed task ending module can be used for initiating confirming the transaction of stop timing task, to terminate the timing Task.
Refering to what is shown in Fig. 8, another timed task dispatching device based on block chain of exemplary embodiment of the invention 20 may include: that side chain distribution module 201, the second task execution module 202, the second task stopping modular 203 and task finish Module 204.Wherein,
The side chain distribution module 201 can be used for configuring based on the task schedule instruction to main chain for the main chain Side chain is so that the side chain opens the SM service monitoring to the main chain.
Second task execution module 202 can be used for the side chain and listen to timed task in the main chain cochain Afterwards, it is synchronous that User Status is executed with the main chain, for executing the timed task in the side chain.
The second task stopping modular 203 can be used for the side chain in response to a task halt instruction, determine executing When task after User Status be synchronized to the main chain to update the main chain.
The task finish module 204 can be used for the side chain listen to the main chain will execute timed task after After User Status synchronously completes, terminate the timed task in the main chain and the side chain.
According to an exemplary embodiment of the present disclosure, described device further include: transaction Hash obtains module, block head inquires mould Block and cryptographic Hash comparison module (not shown).Wherein,
The transaction Hash acquisition module can be used for the side chain and monitor the specified address of the main chain by connection-bridge The transaction of timed task is submitted to obtain its Hash of trading.
The block head enquiry module can be used for obtaining the transaction for submitting timed task according to the transaction Hash Place block in the main chain, and corresponding cryptographic Hash is inquired according to the block head of the block.
The cryptographic Hash comparison module can be used for calculating Merkel tree cryptographic Hash according to the cryptographic Hash, and will be described silent Ke Er tree cryptographic Hash is compared to mention described in judgement with the original Merkel tree cryptographic Hash in block head described in the main chain Hand over timed task transaction whether in the main chain cochain.
According to an exemplary embodiment of the present disclosure, described device further include: User Status locking module (not shown).
The User Status locking module can be used for locking and managing in the main chain when the main chain submits timed task Manage user.
According to an exemplary embodiment of the present disclosure, second task execution module includes: that timed task side chain determines mould Block, original user state synchronized module and original user state side chain confirmation module (not shown).Wherein,
The timed task side chain determining module can be used for the side chain and listen to the timed task in the master After chain cochain, the transaction and the cochain that determine state of the timed task in the main chain are initiated in the side chain.
The original user state synchronized module can be used for the side chain after the timed task for confirming the main chain, hair The transaction of synchronous main chain original user state is played, to be used for original user state synchronous with the main chain.
The original user state side chain confirmation module can be used for when side chain confirmation completion original user state is same After step, the transaction that side chain state synchronized is completed and cochain are initiated in the side chain.
According to an exemplary embodiment of the present disclosure, the original user state synchronized module includes: that main chain synchronous regime connects Mouth calling module (not shown).
The main chain synchronous regime interface calling module can be used for the side chain and call the main chain same by connection-bridge State interface is walked, to initiate the transaction of synchronous main chain original user state, and synchronized result is back to the main chain.
According to an exemplary embodiment of the present disclosure, the original user state side chain confirmation module includes: main chain timed delivery Easily monitor module (not shown).
The main chain isochronous transaction, which monitors module, can be used for the synchronization that the side chain monitors the main chain by connection-bridge Whether the transaction of original user state is completed with the operation of the determination synchronous original user state.
According to an exemplary embodiment of the present disclosure, second task execution module includes: that timed task side chain executes mould Block (not shown).
The timed task side chain execution module can be used for the side chain node according to the timing in the timed task Rule invocation contract executes the timed task, and task result is known together cochain.
According to an exemplary embodiment of the present disclosure, the timed task side chain execution module may include: out block node hold Row module, ballot node execution module and task result go out block module (not shown).Wherein,
It is fixed that the timing contract actuator for going out block node that the block node execution module out can be used for the side chain calls Shi Heyue initiates timing and trades, and the block to be confirmed traded comprising the timing is sent to each ballot node.
The timing contract actuator that the ballot node execution module can be used for the ballot node calls timing contract The timing transaction is executed, block voting results are generated according to the implementing result that the timing is traded, and will the block ballot out As a result it is back to the block node out.
The task result, which goes out block module, can be used for the block throwing out that the block node out is returned according to the ballot node Ticket result judges whether to go out block cochain to the timed task result.
According to an exemplary embodiment of the present disclosure, the second task stopping modular includes: that halt instruction side chain generates mould Block and/or halt instruction side chain generation module (not shown).Wherein,
The halt instruction side chain generation module can be used for the side chain according to the clocking discipline in the timed task Generation task halt instruction.
The halt instruction side chain monitoring module can be used for the side chain and listen to the end initiated in the main chain When the transaction of timed task, the transaction of stop timing task and cochain are initiated in the side chain.
According to an exemplary embodiment of the present disclosure, the second task stopping modular further include: task result return module (not shown).
The task result return module can be used for the side chain and call the main chain synchronous regime to connect by connection-bridge Mouth is held the timed task of the side chain with initiating the isochronous transaction that the implementing result by timed task is back to the main chain Row result returns to the main chain, to realize the update to the main chain User Status.
According to an exemplary embodiment of the present disclosure, the task module that finishes includes: that main chain synchronously completes module and timing Task main chain ending module (not shown).Wherein,
The main chain, which synchronously completes module, can be used for the side chain after the completion of listening to the simultaneously operating of the main chain, Initiate the transaction of completion main chain state synchronized and cochain.
The timed task main chain ending module can be used for the side chain and initiate to appoint for the stop timing of the main chain The transaction of business, so that the main chain executes the transaction of the stop timing task, and will be described after the completion of confirming simultaneously operating The transaction of stop timing task is in the main chain cochain to terminate the timed task.
According to an exemplary embodiment of the present disclosure, the task finishes module further include: timed task side chain ending module (not shown).
The timed task side chain ending module can be used for the friendship that the side chain initiates side chain confirmation stop timing task Easy and cochain, for terminating the timed task in the side chain.
According to an exemplary embodiment of the present disclosure, described device further include: user's unlocked state (not shown).
User's unlocked state can be used for the main chain and be unlocked to management user.
Due to embodiment of the present invention the timed task dispatching device device based on block chain each functional module with It is identical in the above-mentioned timed task dispatching device method invention embodiment based on block chain, therefore details are not described herein.
Exemplary storage medium
The audio frequency playing method and device, audio sharing method and device for describing exemplary embodiment of the invention it Afterwards, next, being illustrated with reference to storage medium of the Fig. 9 to exemplary embodiment of the invention.
Refering to what is shown in Fig. 9, describing the program product for realizing the above method of embodiment according to the present invention 700, can using portable compact disc read only memory (CD-ROM) and including program code, and can in equipment, such as It is run on PC.However, program product of the invention is without being limited thereto, in this document, readable storage medium storing program for executing, which can be, appoints What include or the tangible medium of storage program that the program can be commanded execution system, device or device use or and its It is used in combination.
Described program product can be using any combination of one or more readable mediums.Readable medium can be readable letter Number medium or readable storage medium storing program for executing.Readable storage medium storing program for executing for example can be but be not limited to electricity, magnetic, optical, electromagnetic, infrared ray or System, device or the device of semiconductor, or any above combination.The more specific example of readable storage medium storing program for executing is (non exhaustive List) include: electrical connection with one or more conducting wires, portable disc, hard disk, random access memory (RAM), read-only Memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read only memory (CD-ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.
Computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal, In carry readable program code.The data-signal of this propagation can take various forms, including but not limited to electromagnetic signal, Optical signal or above-mentioned any appropriate combination.Readable signal medium can also be any readable Jie other than readable storage medium storing program for executing Matter, the readable medium can send, propagate or transmit for by instruction execution system, device or device use or and its The program of combined use.
The program code for including on readable medium can transmit with any suitable medium, including but not limited to wirelessly, have Line, optical cable, RF etc. or above-mentioned any appropriate combination.
The program for executing operation of the present invention can be write with any combination of one or more programming languages Code, described program design language include object oriented program language-Java, C++ etc., further include conventional mistake Formula programming language-such as " C " language or similar programming language.Program code can be calculated fully in user It is executed in equipment, part executes on a remote computing or sets completely in remote computation on the user computing device for part It is executed on standby or server.In the situation for being related to remote computing device, remote computing device can pass through the net of any kind Network, including local area network (LAN) or wide area network (WAN), are connected to user calculating equipment, or, it may be connected to outside calculates and sets Standby (such as being connected using ISP by internet).
Example electronic device
After describing the storage medium of exemplary embodiment of the invention, next, showing with reference to Figure 10 the present invention The electronic equipment of example property embodiment is illustrated.
The electronic equipment 800 that Figure 10 is shown is only an example, function to the embodiment of the present invention and should not use model Shroud carrys out any restrictions.
As shown in Figure 10, electronic equipment 800 is showed in the form of universal computing device.The component of electronic equipment 800 can be with Including but not limited to: at least one above-mentioned processing unit 810, at least one above-mentioned storage unit 820, the different system components of connection The bus 830 of (including storage unit 820 and processing unit 810), display unit 840.
Wherein, the storage unit is stored with program code, and said program code can be held by the processing unit 810 Row, so that various according to the present invention described in the execution of the processing unit 810 above-mentioned " illustrative methods " part of this specification The step of illustrative embodiments.For example, the processing unit 810 can execute step S11 as shown in fig. 1 to step S14 or the processing unit 810 can execute step S21 to step S24 as shown in Figure 6.
Storage unit 820 may include volatile memory cell, for example, Random Access Storage Unit (RAM) 8201 and/or Cache memory unit 8202 can further include read-only memory unit (ROM) 8203.
Storage unit 820 can also include program/utility with one group of (at least one) program module 8205 8204, such program module 8205 includes but is not limited to: operating system, one or more application program, other program moulds It may include the realization of network environment in block and program data, each of these examples or certain combination.
Bus 830 may include data/address bus, address bus and control bus.
Electronic equipment 800 can also be with one or more external equipments 900 (such as keyboard, sensing equipment, bluetooth equipment Deng) communicate, this communication can be carried out by input/output (I/O) interface 850.Electronic equipment 800 further includes display unit 840, it is connected to input/output (I/O) interface 850, for being shown.Also, electronic equipment 800 can also pass through network Adapter 860 and one or more network (such as local area network (LAN), wide area network (WAN) and/or public network, such as because of spy Net) communication.As shown, network adapter 860 is communicated by bus 830 with other modules of electronic equipment 800.It should be bright It is white, although not shown in the drawings, other hardware and/or software module can be used in conjunction with electronic equipment 800, including but not limited to: Microcode, device driver, redundant processing unit, external disk drive array, RAID system, tape drive and data are standby Part storage system etc..
It should be noted that although being referred to several moulds of audio playing apparatus and audio sharing apparatus in the above detailed description Block or submodule, but it is this division be only exemplary it is not enforceable.In fact, embodiment party according to the present invention The feature and function of formula, two or more above-described units/modules can embody in a units/modules.Conversely, The feature and function of an above-described units/modules can be to be embodied by multiple units/modules with further division.
In addition, although describing the operation of the method for the present invention in the accompanying drawings with particular order, this do not require that or Hint must execute these operations in this particular order, or have to carry out shown in whole operation be just able to achieve it is desired As a result.Additionally or alternatively, it is convenient to omit multiple steps are merged into a step and executed by certain steps, and/or by one Step is decomposed into execution of multiple steps.
Although detailed description of the preferred embodimentsthe spirit and principles of the present invention are described by reference to several, it should be appreciated that, this It is not limited to the specific embodiments disclosed for invention, does not also mean that the feature in these aspects cannot to the division of various aspects Combination is benefited to carry out, this to divide the convenience merely to statement.The present invention is directed to cover appended claims spirit and Included various modifications and equivalent arrangements in range.

Claims (10)

1. a kind of timed task dispatching method based on block chain characterized by comprising
In response to the task schedule instruction to main chain, to start to carry out SM service monitoring to the main chain;
Timed task is being listened to after the main chain cochain, with the main chain carry out original user state synchronized, and with institute It states and executes the timed task after main chain synchronously completes;
In response to a task halt instruction, the User Status after execution timed task is synchronized to the main chain;
After listening to the User Status after the execution timed task and being synchronized to the main chain, terminate the timed task.
2. the method according to claim 1, wherein described include: to main chain progress SM service monitoring
The transaction of the submission timed task of the specified address of the main chain is monitored by connection-bridge to obtain its Hash of trading;
Block where obtaining the transaction for submitting timed task in the main chain according to the transaction Hash, and according to described The block head of block inquires corresponding cryptographic Hash;
Merkel tree cryptographic Hash is calculated according to the cryptographic Hash, and by area described in the Merkel tree cryptographic Hash and the main chain Whether the original Merkel tree cryptographic Hash in build is compared to judge the transaction for submitting timed task in the main chain Middle cochain.
3. the method according to claim 1, wherein described listening to timed task in the main chain cochain Afterwards, carrying out original user state synchronized with the main chain includes:
The timed task is being listened to after the main chain cochain, is initiating to determine the timed task in the state of the main chain Transaction and cochain;
The timed task is being determined after the state of the main chain, is carrying out original user state synchronized with the main chain;
After the completion of simultaneously operating, initiate to complete synchronous transaction and cochain.
4. according to the method described in claim 3, it is characterized in that, described determining the timed task in the shape of the main chain After state, original user state synchronous with the main chain includes:
Main chain synchronous regime interface is called by connection-bridge, to initiate the transaction of original user state synchronous with the main chain, and Synchronized result is returned into the main chain.
5. according to the method described in claim 4, it is characterized in that, the method also includes:
The transaction of original user state synchronous with the main chain is monitored, by connection-bridge to determine the behaviour of synchronous original user state Whether complete.
6. a kind of timed task dispatching method based on block chain characterized by comprising
Based on the task schedule instruction to main chain, side chain is configured for the main chain so that the side chain is opened to the main chain SM service monitoring;
The side chain is listening to timed task after the main chain cochain, executes original user state synchronized with the main chain, And the timed task is executed in the side chain;
The side chain is synchronized to the main chain in response to a task halt instruction, by the User Status after execution timed task with more The new main chain;
Listened to after the main chain synchronously completes the User Status after executing timed task in the side chain, in the main chain and The side chain terminates the timed task.
7. a kind of timed task dispatching device based on block chain characterized by comprising
SM service monitoring module, for being instructed in response to the task schedule to main chain, to start to carry out business prison to the main chain It listens;
First task execution module carries out original for listening to timed task after the main chain cochain with the main chain User Status is synchronous, and the timed task is executed after synchronously completing with the main chain;
First task stopping modular, in response to a task halt instruction, the User Status after execution timed task to be synchronized To the main chain;
Task ending module is synchronously completed for the User Status after listening to the execution timed task with the main chain Afterwards, terminate the timed task.
8. a kind of timed task dispatching device based on block chain characterized by comprising
Side chain distribution module, for configuring side chain so that the side for the main chain based on the task schedule instruction to main chain Chain opens the SM service monitoring to the main chain;
Second task execution module is listening to timed task after the main chain cochain for the side chain, with the main chain It is synchronous to execute User Status, for executing the timed task in the side chain;
Second task stopping modular, for the side chain in response to a task halt instruction, by the user after execution timed task State synchronized updates the main chain to the main chain;
Task finishes module, has synchronized the User Status after executing timed task for listening to the main chain in the side chain Cheng Hou terminates the timed task in the main chain and the side chain.
9. a kind of storage medium, is stored thereon with computer program, which is characterized in that the computer program is executed by processor Based on the timed task dispatching method of block chain described in any one of Shi Shixian Claims 1 to 5 or 6.
10. a kind of electronic equipment characterized by comprising
Processor;And
Memory, for storing the executable instruction of the processor;
Wherein, the processor is configured to carry out any one of perform claim requirement 1~5 or 6 via the execution executable instruction The timed task dispatching method based on block chain.
CN201910322758.XA 2019-04-22 2019-04-22 Timing task scheduling method and device based on block chain Active CN110046166B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910322758.XA CN110046166B (en) 2019-04-22 2019-04-22 Timing task scheduling method and device based on block chain
CN202110327969.XA CN112988751A (en) 2019-04-22 2019-04-22 Timing task scheduling method and device based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910322758.XA CN110046166B (en) 2019-04-22 2019-04-22 Timing task scheduling method and device based on block chain

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN202110327969.XA Division CN112988751A (en) 2019-04-22 2019-04-22 Timing task scheduling method and device based on block chain

Publications (2)

Publication Number Publication Date
CN110046166A true CN110046166A (en) 2019-07-23
CN110046166B CN110046166B (en) 2021-06-18

Family

ID=67278277

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202110327969.XA Pending CN112988751A (en) 2019-04-22 2019-04-22 Timing task scheduling method and device based on block chain
CN201910322758.XA Active CN110046166B (en) 2019-04-22 2019-04-22 Timing task scheduling method and device based on block chain

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN202110327969.XA Pending CN112988751A (en) 2019-04-22 2019-04-22 Timing task scheduling method and device based on block chain

Country Status (1)

Country Link
CN (2) CN112988751A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111143053A (en) * 2019-11-15 2020-05-12 杭州涂鸦信息技术有限公司 Scheduling method of timing task, server and storage device
CN111369144A (en) * 2020-03-04 2020-07-03 浙江大学 Intelligent energy scheduling system and method based on fog calculation and block chain
CN112801795A (en) * 2021-03-08 2021-05-14 中国工商银行股份有限公司 Block chain multi-chain management method and device, electronic equipment and readable storage medium
CN113672358A (en) * 2020-05-15 2021-11-19 北京沃东天骏信息技术有限公司 Timing task processing method, device and system, electronic equipment and storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101701131B1 (en) * 2016-04-28 2017-02-13 주식회사 라피 Data recording and validation methods and systems using the connecting of blockchain between different type
CN106528775A (en) * 2016-10-28 2017-03-22 山东明和软件有限公司 Private block chain operation support system that supports logical multi-chain, and working method thereof
CN106874087A (en) * 2017-01-25 2017-06-20 上海钜真金融信息服务有限公司 A kind of block chain intelligence contract timed task dispatching method
CN107767267A (en) * 2017-10-20 2018-03-06 上海策赢网络科技有限公司 The transfer method and device of a kind of virtual resource
CN107886388A (en) * 2017-09-22 2018-04-06 杭州云象网络技术有限公司 The traffic trip credit and safety service platform and its operation method of multicenter are realized based on alliance's chain
CN108139964A (en) * 2017-12-06 2018-06-08 深圳达闼科技控股有限公司 Cloud service configuration method and device, storage medium and cloud service system
US20180227131A1 (en) * 2017-02-06 2018-08-09 ShoCard, Inc. Electronic identification verification methods and systems with storage of certification records to a side chain
CN109189751A (en) * 2018-09-18 2019-01-11 平安科技(深圳)有限公司 Method of data synchronization and terminal device based on block chain
CN109271245A (en) * 2018-09-13 2019-01-25 腾讯科技(深圳)有限公司 A kind of control method and device of block processes task
US20190109707A1 (en) * 2017-10-10 2019-04-11 Chromata Corporation System and method for a blockchain network with heterogeneous privacy

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109154885B (en) * 2016-03-21 2023-05-12 澳大利亚国家Ict有限公司 Business process execution on a blockchain platform
KR102303427B1 (en) * 2017-04-05 2021-09-23 삼성에스디에스 주식회사 Method for calculating confirmation reliability for blockchain based transaction and Blockchain network monitoring system for performing the method
GB201709188D0 (en) * 2017-06-09 2017-07-26 Nchain Holdings Ltd Computer-Implemented system and method
CN109558411A (en) * 2017-09-26 2019-04-02 浙江华信区块链科技服务有限公司 A kind of lower chain synchronous method and device based on block chain data
CN108074081A (en) * 2017-12-08 2018-05-25 上海策赢网络科技有限公司 The transfer method and device of a kind of virtual resource
CN109361661B (en) * 2018-10-08 2020-07-10 莆田市烛火信息技术有限公司 Block chain consensus device depending on related chain computing power
CN109513207A (en) * 2018-11-12 2019-03-26 网易(杭州)网络有限公司 Processing method, device, storage medium, processor and the server of game asset

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101701131B1 (en) * 2016-04-28 2017-02-13 주식회사 라피 Data recording and validation methods and systems using the connecting of blockchain between different type
CN106528775A (en) * 2016-10-28 2017-03-22 山东明和软件有限公司 Private block chain operation support system that supports logical multi-chain, and working method thereof
CN106874087A (en) * 2017-01-25 2017-06-20 上海钜真金融信息服务有限公司 A kind of block chain intelligence contract timed task dispatching method
US20180227131A1 (en) * 2017-02-06 2018-08-09 ShoCard, Inc. Electronic identification verification methods and systems with storage of certification records to a side chain
CN107886388A (en) * 2017-09-22 2018-04-06 杭州云象网络技术有限公司 The traffic trip credit and safety service platform and its operation method of multicenter are realized based on alliance's chain
US20190109707A1 (en) * 2017-10-10 2019-04-11 Chromata Corporation System and method for a blockchain network with heterogeneous privacy
CN107767267A (en) * 2017-10-20 2018-03-06 上海策赢网络科技有限公司 The transfer method and device of a kind of virtual resource
CN108139964A (en) * 2017-12-06 2018-06-08 深圳达闼科技控股有限公司 Cloud service configuration method and device, storage medium and cloud service system
CN109271245A (en) * 2018-09-13 2019-01-25 腾讯科技(深圳)有限公司 A kind of control method and device of block processes task
CN109189751A (en) * 2018-09-18 2019-01-11 平安科技(深圳)有限公司 Method of data synchronization and terminal device based on block chain

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
ALBERTO GAROFFOLO等: "Sidechains: Decoupled Consensus Between Chains", 《HTTPS://ARXIV.ORG/ABS/1812.05441》 *
LIPING DENG等: "Research on Cross-Chain Technology Based on Sidechain and Hash-Locking", 《INTERNATIONAL CONFERENCE ON EDGE COMPUTING》 *
白杰等: "发布区块链标准应用模型及应用部署技术研究", 《信息技术与网络安全》 *
赵小峰的思想迭代器: "以太坊上的侧链技术Loom(一)", 《HTTPS://WWW.JIANSHU.COM/P/35039DC96BBB?UTM_CAMPAIGN=MALESKINE&UTM_CONTENT=NOTE&UTM_MEDIUM=SEO_NOTES&UTM_SOURCE=RECOMMENDATION》 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111143053A (en) * 2019-11-15 2020-05-12 杭州涂鸦信息技术有限公司 Scheduling method of timing task, server and storage device
CN111369144A (en) * 2020-03-04 2020-07-03 浙江大学 Intelligent energy scheduling system and method based on fog calculation and block chain
CN111369144B (en) * 2020-03-04 2022-02-18 浙江大学 Intelligent energy scheduling system and method based on fog calculation and block chain
CN113672358A (en) * 2020-05-15 2021-11-19 北京沃东天骏信息技术有限公司 Timing task processing method, device and system, electronic equipment and storage medium
CN112801795A (en) * 2021-03-08 2021-05-14 中国工商银行股份有限公司 Block chain multi-chain management method and device, electronic equipment and readable storage medium
CN112801795B (en) * 2021-03-08 2024-04-02 中国工商银行股份有限公司 Block chain multi-chain management method, device, electronic equipment and readable storage medium

Also Published As

Publication number Publication date
CN112988751A (en) 2021-06-18
CN110046166B (en) 2021-06-18

Similar Documents

Publication Publication Date Title
CN110046166A (en) Timed task dispatching method and device based on block chain
CN109034659A (en) A kind of grid dispatching management system
CN110717832B (en) Clean energy trading method, system, device and storage medium based on block chain
CN109325855A (en) Block chain network, dispositions method and storage medium
CN110602125B (en) Data processing method, device, terminal and storage medium
CN111027936A (en) Workflow realization method, equipment and medium based on intelligent contract in alliance network
CN110673938B (en) Task processing method, system, server and storage medium
CN109753026A (en) Procreative collaboration method and system, storage medium, cloud manufacturing platform and production management system
CN109493072A (en) A method of the privacy contract protection based on alliance's block chain
US20100293549A1 (en) System to Improve Cluster Machine Processing and Associated Methods
CN106276457A (en) The method of elevator data management
CN113194141B (en) Chain-crossing network bridge construction method based on heterogeneous block chain
CN112132684B (en) Accounting method and system based on predictive engine lock set
CN110503323A (en) The monitoring method and device and equipment of a kind of pull type SC task
CN111680916A (en) Electric power distribution virtual dispatcher device and method
CN107169862A (en) A kind of bad customer deposit automatic tracking system of bank
CN106294611A (en) Core banking system and the old and new's core system data exchange method
CN112231755A (en) Data authorization method, device and system based on block chain
CN113031968B (en) Block chain flow execution system driven by layout chart and using method thereof
CN109118151B (en) Work order transaction processing method and work order transaction processing system
CN110543784B (en) Big data resource open multi-party access control method based on block chain
CN116596672A (en) Intelligent contract task distribution platform, method, system and medium based on block chain
CN113595737B (en) Agile control system based on block chain
CN115701078B (en) Cross-chain transaction processing method, device, electronic equipment and storage medium
CN115423473A (en) Decentralized zero-work economic service platform and operation method thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant