CN110445843A - Parallel chain block method for pushing, equipment and storage medium - Google Patents

Parallel chain block method for pushing, equipment and storage medium Download PDF

Info

Publication number
CN110445843A
CN110445843A CN201910633151.3A CN201910633151A CN110445843A CN 110445843 A CN110445843 A CN 110445843A CN 201910633151 A CN201910633151 A CN 201910633151A CN 110445843 A CN110445843 A CN 110445843A
Authority
CN
China
Prior art keywords
parallel chain
chain node
block
parallel
information
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
CN201910633151.3A
Other languages
Chinese (zh)
Other versions
CN110445843B (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.)
Hangzhou Fuzamei Technology Co Ltd
Original Assignee
Hangzhou Fuzamei Technology 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 Hangzhou Fuzamei Technology Co Ltd filed Critical Hangzhou Fuzamei Technology Co Ltd
Priority to CN201910633151.3A priority Critical patent/CN110445843B/en
Publication of CN110445843A publication Critical patent/CN110445843A/en
Application granted granted Critical
Publication of CN110445843B publication Critical patent/CN110445843B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/12Applying verification of the received information
    • H04L63/123Applying verification of the received information received data contents, e.g. message integrity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/55Push-based network services

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present invention provides a kind of parallel chain block method for pushing, equipment and storage medium, this method comprises: the second parallel chain node sends the first registration information of parallel chain data push service to the first parallel chain node, after receiving the first registration information for the first parallel chain node, the push address of the second parallel chain node is stored;Second parallel chain node receives the first blocks operation information of the first parallel chain node push;Wherein, the first blocks operation information includes the block information of several parallel chain blocks;Second parallel chain node is according to the data of the first blocks operation information update local.The present invention saves parallel chain node and synchronizes the bandwidth of existing parallel chain block, and reduces the time-consuming duration that parallel chain node synchronizes existing parallel chain block.

Description

Parallel chain block method for pushing, equipment and storage medium
Technical field
This application involves block chain technical fields, and in particular to a kind of parallel chain block method for pushing, equipment and storage are situated between Matter.
Background technique
In current main chain-parallel chain mechanism, parallel chain node needs to own by traversing each main chain block and obtaining The parallel chain transaction of this parallel chain is to generate parallel chain block;It and is not actually that be owned by this flat for each main chain block The problem of parallel chain of row chain is traded, and above-mentioned mechanism will cause waste bandwidth, time-consuming.
Summary of the invention
In view of drawbacks described above in the prior art or deficiency, it is intended to provide a kind of saving parallel chain synchronous parallel chain block band Parallel chain block method for pushing, equipment and the storage medium of time-consuming duration that is wide, reducing parallel chain node synchronous parallel chain block.
In a first aspect, the present invention provides a kind of parallel chain block method for pushing suitable for parallel chain node, comprising:
Second parallel chain node sends the first registration request letter of parallel chain data push service to the first parallel chain node Breath after receiving the first registration information for the first parallel chain node, stores the push address of the second parallel chain node;
Second parallel chain node receives the first blocks operation information of the first parallel chain node push;Wherein, the first block Operation information includes the block information of several parallel chain blocks;
Second parallel chain node is according to the data of the first blocks operation information update local.
Second aspect, the present invention also provides a kind of equipment, including one or more processors and memory, wherein memory Comprising can by instruction that the one or more processors execute so that the one or more processors execute it is each according to the present invention Parallel chain block method for pushing, equipment and the storage medium that embodiment provides.
The third aspect, the present invention also provides a kind of storage medium for being stored with computer program, which makes to count Calculation machine executes parallel chain block method for pushing, equipment and the storage medium that each embodiment provides according to the present invention.
Parallel chain block method for pushing, equipment and the storage medium that many embodiments of the present invention provide pass through the second parallel chain Node sends the first registration information of parallel chain data push service to the first parallel chain node, for the first parallel chain link After point receives the first registration information, the push address of the second parallel chain node is stored;Second parallel chain node receives first First blocks operation information of parallel chain node push;Wherein, the first blocks operation information includes the area of several parallel chain blocks Block message;Second parallel chain node is according to the methods of the data of the first blocks operation information update local, so that block is less Parallel chain node first receives several parallel chain blocks from the more parallel chain node of i.e. block of normal operation, further according to current Main chain-parallel chain mechanism generate parallel chain block, save parallel chain node and synchronize the bandwidth of existing parallel chain block, and reduce Parallel chain node synchronizes the time-consuming duration of existing parallel chain block.
Parallel chain block method for pushing, equipment and the storage medium that some embodiments of the invention provide are further by being the The method of one blocks operation information configuration action type, so that the second parallel chain node updates locally according to specific action type Data, improve the convenience of the second parallel chain node updates data, further save parallel chain node synchronize it is existing parallel The bandwidth of chain block, and reduce the time-consuming duration that parallel chain node synchronizes existing parallel chain block.
Parallel chain block method for pushing, equipment and the storage medium that some embodiments of the invention provide are further by being the The method that one blocks operation information configuration first operates serial number, so that the second parallel chain node is according to the first operation serial number to reception To parallel chain block operated, thus improve the second parallel chain node receive parallel chain block efficiency, further save Parallel chain node synchronizes the bandwidth of existing parallel chain block, and reduces the time-consuming that parallel chain node synchronizes existing parallel chain block Duration.
Parallel chain block method for pushing, equipment and the storage medium that some embodiments of the invention provide are further by being the One blocks operation information configuration the second parallel chain node has synchronized block height, and configures the first parallel chain node and synchronizing Block height is less than the method for generating when current block height and pushing the first blocks operation information, improves the second parallel chain node The efficiency of parallel chain block is received, parallel chain node is further saved and synchronizes the bandwidth of existing parallel chain block, and reduce flat Row chain node synchronizes the time-consuming duration of existing parallel chain block.
Parallel chain block method for pushing, equipment and the storage medium that some embodiments of the invention provide further pass through response Terminate in push, the second parallel chain node sends the first checking solicited message to the first main chain node, for the first main chain node The whether correct method of parallel chain block for verifying the push of the first parallel chain node provides a kind of verification machine of parallel chain block System.
Parallel chain block method for pushing, equipment and the storage medium that some embodiments of the invention provide further pass through second Parallel chain node sends the second checking solicited message to the first main chain node, so that the first main chain node generates the first main chain of verifying On the second main chain node whether corresponding with the first parallel chain node of first block of the second block height specified by node with The identical verification result information of the second block of the identical block height of second block height simultaneously returns;Second parallel chain node connects Verification result information is received, judges whether verification result is identical: being, then the second parallel chain node is sent to the first parallel chain node First registration information of parallel chain data push service;No, then the second parallel chain node reassigns the first parallel chain link Point, and the method that the second parallel chain node sends the first checking solicited message step to the first main chain node is returned, so that second The received parallel chain block of parallel chain node institute is required received parallel chain block, and it is synchronous further to save parallel chain node There is the bandwidth of parallel chain block, and reduces the time-consuming duration that parallel chain node synchronizes existing parallel chain block.
Detailed description of the invention
By reading a detailed description of non-restrictive embodiments in the light of the attached drawings below, the application's is other Feature, objects and advantages will become more apparent upon:
Fig. 1 is a kind of flow chart for parallel chain block method for pushing that one embodiment of the invention provides.
Fig. 2 is a kind of flow chart of preferred embodiment of method shown in Fig. 1.
Fig. 3 is the flow chart of another preferred embodiment of method shown in Fig. 1.
Fig. 4 is a kind of flow chart of preferred embodiment of method shown in Fig. 3.
Fig. 5 is a kind of flow chart of preferred embodiment of method shown in Fig. 4.
Fig. 6 is the flow chart of step S12 in a kind of preferred embodiment of method shown in Fig. 1.
Fig. 7 is the flow chart of another preferred embodiment of method shown in Fig. 1.
Fig. 8 is a kind of structural schematic diagram for equipment that one embodiment of the invention provides.
Specific embodiment
The application is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining related invention, rather than the restriction to the invention.It also should be noted that in order to Convenient for description, part relevant to invention is illustrated only in attached drawing.
It should be noted that in the absence of conflict, the features in the embodiments and the embodiments of the present application can phase Mutually combination.The application is described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
Fig. 1 is a kind of flow chart for parallel chain block method for pushing that one embodiment of the invention provides.As shown in Figure 1, In In the present embodiment, the present invention provides a kind of parallel chain block method for pushing, comprising:
S12: the second parallel chain node is asked to the first registration that the first parallel chain node sends parallel chain data push service Information is sought, after receiving the first registration information for the first parallel chain node, stores the push address of the second parallel chain node;
S13: the second parallel chain node receives the first blocks operation information of the first parallel chain node push;Wherein, first Blocks operation information includes the block information of several parallel chain blocks;
S14: the second parallel chain node is according to the data of the first blocks operation information update local.
Specifically, it is assumed that the second parallel chain node is b, and the first parallel chain node is a, by the block of several parallel chain blocks Information configuration is the block information of a parallel chain block, and the first blocks operation information is block1;
In step s 12, b sends the first registration information of parallel chain data push service to a, and a receives the first note After volume solicited message, the push address of b is stored;
In step s 13, b receives the first blocks operation information block1 of a push;
In step S14, b updates local data according to block1.
After b receives the parallel chain block of several a push, b generates parallel sequence using current main chain-parallel chain mechanism Block, i.e. the b synchronous parallel chain relevant to this parallel chain from the main chain block of corresponding main chain node B are traded to generate parallel chain Block.
In more embodiments, parallel chain block method for pushing provided by the invention is not exemplified as limiting with above-mentioned, can be with According to actual needs the block information of several blocks is configured to the block information of different numerical value, for example, being configurable to 2 The block information of block, the block information of 5 blocks, it might even be possible to if being configured to be configured to different number every some cycles The block information of dry block, for example, the block information of 5 blocks is configured to for preceding 100 blocks, for preceding 100 blocks All blocks afterwards are each configured to the block information of 1 block, it can be achieved that identical technical effect.
In current main chain-parallel chain mechanism, the node of parallel chain needs to obtain institute by traversing each main chain block There is the parallel chain of this parallel chain to trade;And it is not actually the parallel chain friendship that each main chain block is owned by this parallel chain Easily;Method through the foregoing embodiment, the less parallel chain node of block is first from the more parallel chain of i.e. block of normal operation Several parallel chain blocks are received at node, then parallel chain block is generated using current main chain-parallel chain mechanism, save parallel chain Node synchronizes the bandwidth of existing parallel chain block, and reduces the time-consuming duration that parallel chain node synchronizes existing parallel chain block.
In a preferred embodiment, the first blocks operation information further includes action type, action type be addition block or Rollback block.
Specifically, the first blocks operation information includes the block information of several blocks, action type, it is assumed that the first block behaviour Making information is (block1:add;block2:add;block2:delete;block2':add);
B receives the first blocks operation information of a push;
B judges whether the action type of each parallel chain block in the first blocks operation information is addition block:
For block1:add: since action type is addition block, then generating the data of block1 and store to local Database;
For block2:add: since action type is addition block, then generating the data of block2 and store to local Database;
For block2:delete: since action type is to delete block, then generating the data of block2, and from local The data of block2 are deleted in database;
For block2':add: since action type is addition block, then generating the data of block2' and store to this Ground database;
Block on final b are as follows: block1 and block2'.
In more embodiments, the first blocks operation information can not include action type, it is assumed that a certain block chain is matched Be set to one can not rollback block chain, for can not rollback block chain, the first blocks operation information pushed can not Action type (i.e. action type is only to add block) is configured, it can be achieved that identical technical effect.
Fig. 2 is a kind of flow chart of preferred embodiment of method shown in Fig. 1.As shown in Fig. 2, in a preferred embodiment In, the first blocks operation information further includes the first operation serial number of the second parallel chain node, and the second parallel chain node is according to first After the data of blocks operation information update local further include:
S15: the second parallel chain node returns to the first confirmation message of the first blocks operation information to the first parallel chain node, After receiving the first confirmation message for the first parallel chain node, the first operation serial number is updated according to the first confirmation message.
Specifically, it is assumed that the first blocks operation information includes the block information, action type and the first operation of several blocks Serial number (block1:add:1;block2:add:2;block2:delete:3;block2':add:4);
In step S131, b receives the first blocks operation information (block1:add:1 of a node push;block2: add:2;block2:delete:3;block2':add:4);
In step S14, b is according to (block1:add:1;block2:add:2;block2:delete:3;block2': Add:4 the data of local relevant database) are updated;The implementation principle of step S14 can be found in above-described embodiment, herein no longer It repeats;
In step S15, b returns to the first confirmation message of the first blocks operation information to a;
For (block1:add:1), after a receives the first confirmation message that b is returned, update b's according to the first confirmation message First operation serial number (updating from 0 to 1);
For (block2:add:2), after a receives the first confirmation message that b is returned, update b's according to the first confirmation message First operation serial number (updating from 1 to 2);
For (block2:delete:3), after a receives the first confirmation message that b is returned, updated according to the first confirmation message The first operation serial number (updating from 2 to 3) of b;
For (block2':add:4), after a receives the first confirmation message that b is returned, b is updated according to the first confirmation message The first operation serial number (updating from 3 to 4).
In more embodiments, the first blocks operation information can not include action type, it is assumed that a certain block chain is matched Be set to one can not rollback block chain, for can not rollback block chain, the first blocks operation information pushed can not Configure action type, i.e., action type be only add block, the first blocks operation information include several blocks block information and First operation serial number, for example, the first blocks operation information is (block5:5;Block6:6), it can be achieved that identical technical effect.
Above-described embodiment carries out the second parallel chain node to the parallel chain block received according to the first operation serial number Operation, to improve the efficiency that the second parallel chain node receives parallel chain block, further saving parallel chain node is synchronized existing The bandwidth of parallel chain block, and reduce the time-consuming duration that parallel chain node synchronizes existing parallel chain block.
Fig. 3 is the flow chart of another preferred embodiment of method shown in Fig. 1.As shown in figure 3, in a preferred embodiment In, the first blocks operation information further includes that the second parallel chain node has synchronized block height, and the second parallel chain node is according to After the data of one blocks operation information update local further include:
S16: the second parallel chain node returns to the second confirmation message of the first blocks operation information to the first parallel chain node, After receiving the second confirmation message for the first parallel chain node, block height has been synchronized according to the update of the second confirmation message.
Specifically, it is assumed that block information that the first blocks operation information includes several blocks and the second parallel chain node are Synchronous block height, current block height are 50, and the block height that synchronized of centralization database server is 49;
What a judged the second parallel chain node has synchronized whether block height is less than current block height, due to synchronization zone Block height is 49, and being less than current block height is 50, then generates the first blocks operation information (block50:49) and push.
In step S132, b receives the first blocks operation information (block50:49) of a push;
In step S14, b updates local data according to (block50:49);
In step s 16, b returns to second confirmation message of (block50:49) to a.
After a receives the second confirmation message, according to the second confirmation message update b synchronize block height (from 49 updates to 50)。
In more embodiments, the first blocks operation information is also configured as removing the block information of several blocks, go back Including at least one of following or multinomial: action type, First ray number have synchronized block height, it can be achieved that identical technology is imitated Fruit.
Above-described embodiment provides that the first parallel chain node has synchronized block height less than this section in the second parallel chain node When point current block height, the parallel chain block that the second parallel chain node was not pushed is pushed to the second parallel chain node, the After two parallel chain nodes receive the parallel chain block of the first parallel chain node push, without whether being had received to local search The block, improve the second parallel chain node receive parallel chain block efficiency, further save parallel chain node synchronize have it is flat The bandwidth of row chain block, and reduce the time-consuming duration that parallel chain node synchronizes existing parallel chain block.
Fig. 4 is a kind of flow chart of preferred embodiment of method shown in Fig. 3.As shown in figure 4, in a preferred embodiment In, the first parallel chain node stores the first block height at that time when receiving the first registration information, and the above method also wraps It includes:
S17: the second parallel chain node receives the push that the first parallel chain node returns and completes information;Wherein, push is completed Information is generated by the first parallel chain node when having synchronized block height equal to the first block height.
Specifically, it is assumed that the first parallel chain node a stores the first block at that time when receiving the first registration information After height is 500, and current second parallel chain node b receives the second confirmation message of the first parallel chain node a transmission, according to the Two confirmation messages update b's has synchronized block height (updating from 499 to 500);
In step S17, since a the first block height that block height is 500, a that synchronized for having updated b is 500, Synchronous block height is equal to the first block height, and a generates push and completes information and return to b;B receives the push that a is returned and completes Information.
Fig. 5 is a kind of flow chart of preferred embodiment of method shown in Fig. 4.As shown in figure 4, in a preferred embodiment In, the above method further include:
S18: terminating in response to push, and the second parallel chain node sends the first checking solicited message to the first main chain node, So that whether the parallel chain block of first main chain node verification the first parallel chain node push is correct;Wherein, checking solicited message Block Hash including the newest parallel chain block that the first parallel chain node is pushed.
Specifically, the corresponding first main chain node of the second parallel chain node b is B, it is assumed that newest parallel chain block is Block500, checking solicited message include the block Hash hash (500) of block500;
In step S18, terminate in response to push, b sends the first checking solicited message, the first checking solicited message to B Including hash (500), whether the parallel chain block that B verifies a push is correct.
It include the block Hash of parallel chain block, main chain in the common recognition transaction that parallel chain authorization node chain linked to owner node is sent The block Hash of parallel chain block is recorded in main chain block after executing common recognition transaction for node, therefore there is record in main chain node hash(500)'。
After B receives hash (500), search it is local whether have with hash (500) identical hash (500) ', have, then test Card passes through;Nothing is then verified and is not passed through, and verification result is returned to b;
When being verified, b uses current main chain-parallel chain mechanism, there is that hash's (500) ' is next from the record of B Main chain block starts, and generates parallel chain block by the parallel chain transaction in synchronous main chain block;
Obstructed out-of-date when verifying, b sends the first checking solicited message to B, and the first checking solicited message includes hash (499), whether correct B verifies the parallel chain block that a is pushed, if verifying does not still pass through, b sends the first checking request to B Information, the first checking solicited message include (498) hash, recycle above-mentioned steps, until being verified;
Assuming that b sends the first checking solicited message to B, the first checking solicited message is verified when including (490) hash, Then b uses current main chain-parallel chain mechanism, since the record of B has next main chain block of hash (490) ', by same The parallel chain transaction walked in main chain block generates parallel chain block.
In more embodiments, checking solicited message be also configured as include the first parallel chain node pushed it is newest The parameters such as the Mei Keergen of parallel chain block can be real as long as the parameter can be used for identifying the newest parallel chain block pushed Existing identical technical effect.
In more institute's embodiment, checking solicited message is also configured as any one that the first parallel chain node is pushed The block Hash of parallel chain block is, it can be achieved that identical technical effect.
Above mentioned embodiment provide a kind of authentication mechanisms of parallel chain block.
Fig. 6 is the flow chart of step S12 in a kind of preferred embodiment of method shown in Fig. 1.As shown in fig. 6, excellent one It selects in embodiment, step S12 includes:
S122: the second parallel chain node sends the second checking solicited message to the first main chain node, for the first master link Whether the first block that point generates the second block height specified by the first main chain node of verifying is corresponding with the first parallel chain node The second main chain node on the identical verification result information of the second block of the identical block height of the second block height and return It returns;
S123: verification result information is received, judges whether verification result is identical:
It is to then follow the steps the S124: the second parallel chain node to send parallel chain data-pushing clothes to the first parallel chain node First registration information of business;
It is no, it thens follow the steps the S125: the second parallel chain node and reassigns the first parallel chain node, and it is parallel to return to second Chain node sends the first checking solicited message step to the first main chain node.
The corresponding first main chain node of second parallel chain node b is B, corresponding second master link of the first parallel chain node a Point is A;
Assuming that there is following application scenarios: B and A is two main chain nodes of bifurcated, main chain of the b from corresponding main chain node B When synchronous parallel chain transaction relevant to this parallel chain is in block to generate parallel chain block, several parallel sequences of rollback are first had to Block, until it is identical to roll back to the block Hash recorded in the block Hash and B of some parallel chain block, then b could be from right Synchronous parallel chain transaction relevant to this parallel chain is in the main chain block of the main chain node B answered to generate parallel chain block;It is above-mentioned Mechanism wastes the bandwidth that b synchronizes existing parallel chain block;The above problem can be overcome using method provided in this embodiment;
Specifically, it is assumed that the second block height is 450, the firstth area of the second block height specified by the first main chain node Block is block450_B, and block identical with the second block height is high on the second main chain node corresponding with the first parallel chain node Second block of degree is block450_A;
In step S122, b to B send the second checking solicited message, B generate verifying block450_B whether on A Verification result information identical with the second block block450_A of block height 450 simultaneously returns;
In step S123, b receives verification result information, judges whether verification result is identical:
It is the first registration information for thening follow the steps S124:b and sending parallel chain data push service to a;
It is no, it thens follow the steps S125:b and reassigns the first parallel chain node (such as specified parallel chain node c is first flat Row chain node), and return to S121 step.
After b has received the parallel chain block of a push, since bifurcated, b can be from the masters of corresponding main chain node B with A by B Synchronous parallel chain transaction relevant to this parallel chain is in chain block to generate parallel chain block.
It, can also be according to actual needs by the first block arrangement of the second specified block height in more embodiments It is received newest parallel chain block, it can be achieved that identical technical effect.
Above-described embodiment makes the second received parallel chain block of parallel chain node institute be required received parallel chain block, It further saves parallel chain node and synchronizes the bandwidth of existing parallel chain block, and reduce parallel chain node and synchronize existing parallel chain The time-consuming duration of block.
Fig. 7 is the flow chart of another preferred embodiment of method shown in Fig. 1.As shown in fig. 7, in a preferred embodiment In, after data of the second parallel chain node according to the first blocks operation information update local further include:
S19: the second parallel chain node sends the second note for stopping parallel chain data push service to the first parallel chain node Volume solicited message after receiving the second registration information for the first parallel chain node, deletes the push of the second parallel chain node Address.
Fig. 8 is a kind of structural schematic diagram for equipment that one embodiment of the invention provides.
As shown in figure 8, present invention also provides a kind of equipment 800, including one or more centres as on the other hand Unit (CPU) 801 is managed, can be added according to the program being stored in read-only memory (ROM) 802 or from storage section 808 The program that is downloaded in random access storage device (RAM) 803 and execute various movements appropriate and processing.In RAM803, also deposit It contains equipment 800 and operates required various programs and data.CPU801, ROM802 and RAM803 pass through the phase each other of bus 804 Even.Input/output (I/O) interface 805 is also connected to bus 804.
I/O interface 805 is connected to lower component: the importation 806 including keyboard, mouse etc.;It is penetrated including such as cathode The output par, c 807 of spool (CRT), liquid crystal display (LCD) etc. and loudspeaker etc.;Storage section 808 including hard disk etc.; And the communications portion 809 of the network interface card including LAN card, modem etc..Communications portion 809 via such as because The network of spy's net executes communication process.Driver 810 is also connected to I/O interface 805 as needed.Detachable media 811, such as Disk, CD, magneto-optic disk, semiconductor memory etc. are mounted on as needed on driver 810, in order to read from thereon Computer program be mounted into storage section 808 as needed.
Particularly, in accordance with an embodiment of the present disclosure, the parallel chain block method for pushing of any of the above-described embodiment description can be with It is implemented as computer software programs.For example, embodiment of the disclosure includes a kind of computer program product comprising visibly Comprising computer program on a machine-readable medium, the computer program includes for executing parallel chain block method for pushing Program code.In such embodiments, which can be downloaded and be pacified from network by communications portion 809 Dress, and/or be mounted from detachable media 811.
As another aspect, present invention also provides a kind of computer readable storage medium, the computer-readable storage mediums Matter can be computer readable storage medium included in the device of above-described embodiment;It is also possible to individualism, it is unassembled Enter the computer readable storage medium in equipment.Computer-readable recording medium storage has one or more than one program, should Program is used to execute the parallel chain block method for pushing for being described in the application by one or more than one processor.
Flow chart and block diagram in attached drawing are illustrated according to the system of various embodiments of the invention, method and computer journey The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation A part of one module, program segment or code of table, a part of the module, program segment or code include one or more use The executable instruction of the logic function as defined in realizing.It should also be noted that in some implementations as replacements, being marked in box The function of note can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are actually It can be basically executed in parallel, they can also be executed in the opposite order sometimes, this is depending on related function.Also it wants It is noted that the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart, Ke Yitong The dedicated hardware based system of functions or operations as defined in executing is crossed to realize, or by specialized hardware and can be calculated The combination of machine instruction is realized.
Being described in the embodiment of the present application involved unit or module can be realized by way of software, can also be with It is realized by way of hardware.Described unit or module also can be set in the processor, for example, each unit can To be the software program being arranged in computer or intelligent movable equipment, it is also possible to the hardware device being separately configured.Wherein, this The title of a little units or module does not constitute the restriction to the unit or module itself under certain conditions.
Above description is only the preferred embodiment of the application and the explanation to institute's application technology principle.Those skilled in the art Member is it should be appreciated that invention scope involved in the application, however it is not limited to technology made of the specific combination of above-mentioned technical characteristic Scheme, while should also cover in the case where not departing from the application design, appointed by above-mentioned technical characteristic or its equivalent feature Other technical solutions of meaning combination and formation.Such as features described above and (but being not limited to) disclosed herein have similar functions Technical characteristic replaced mutually and the technical solution that is formed.

Claims (10)

1. a kind of parallel chain block method for pushing, which is characterized in that be suitable for parallel chain node, which comprises
Second parallel chain node sends the first registration information of parallel chain data push service to the first parallel chain node, with After receiving first registration information for the first parallel chain node, with storing the push of the second parallel chain node Location;
The second parallel chain node receives the first blocks operation information of the first parallel chain node push;Wherein, described First blocks operation information includes the block information of several parallel chain blocks;
The second parallel chain node is according to the data of the first blocks operation information update local.
2. the method according to claim 1, wherein the first blocks operation information further includes action type, The action type is addition block or rollback block.
3. the method according to claim 1, wherein the first blocks operation information further includes described second flat First operation serial number of row chain node, the second parallel chain node is according to the number of the first blocks operation information update local According to rear further include:
The second parallel chain node returns to the first confirmation of the first blocks operation information to the first parallel chain node Information after receiving first confirmation message for the first parallel chain node, updates institute according to first confirmation message State the first operation serial number.
4. the method according to claim 1, wherein the first blocks operation information includes described second parallel Chain node has synchronized block height, and the first blocks operation information is by the first parallel chain node in the synchronization zone Block height is generated and is pushed when being less than current block height, the data according to the first blocks operation information update local Afterwards further include:
The second parallel chain node returns to the second confirmation of the first blocks operation information to the first parallel chain node Information after receiving second confirmation message for the first parallel chain node, updates institute according to second confirmation message It states and has synchronized block height.
5. according to the method described in claim 4, it is characterized in that, the first parallel chain node is receiving first registration The the first block height of storage at that time when solicited message, the method also includes:
The second parallel chain node receives the push that the first parallel chain node returns and completes information;Wherein, the push It completes information and is generated by the first parallel chain node in described synchronized when block height is equal to the first block height.
6. according to the method described in claim 5, it is characterized by further comprising:
Terminating in response to push, the second parallel chain node sends the first checking solicited message to the first main chain node, for Whether the parallel chain block of the push of the first parallel chain node described in the first main chain node verification is correct;Wherein, the verifying Solicited message includes the block Hash for the newest parallel chain block that the first parallel chain node is pushed.
7. method according to claim 1-6, which is characterized in that the second parallel chain node is parallel to first Chain node send parallel chain data push service the first registration information include:
The second parallel chain node sends the second checking solicited message to the first main chain node, for the first main chain node Generate the first block chain link whether parallel with described first for verifying the second block height specified by the first main chain node The identical verifying of the second block of identical block height is tied with the second block height on the corresponding second main chain node of point Fruit information simultaneously returns;
The second parallel chain node receives the verification result information, judges whether verification result is identical:
It is that then the second parallel chain node is asked to the first registration that the first parallel chain node sends parallel chain data push service Seek information;
No, then the second parallel chain node reassigns the first parallel chain node, and return the second parallel chain node to First main chain node sends the first checking solicited message step.
8. method according to claim 1-6, which is characterized in that the second parallel chain node is according to described After the data of one blocks operation information update local further include:
The second parallel chain node sends the second note for stopping parallel chain data push service to the first parallel chain node After receiving second registration information for the first parallel chain node, it is parallel to delete described second for volume solicited message The push address of chain node.
9. a kind of equipment, which is characterized in that the equipment includes:
One or more processors;
Memory, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processors Execute such as method of any of claims 1-8.
10. a kind of storage medium for being stored with computer program, which is characterized in that realize when the program is executed by processor as weighed Benefit requires method described in any one of 1-8.
CN201910633151.3A 2019-07-15 2019-07-15 Parallel chain block pushing method, device and storage medium Active CN110445843B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910633151.3A CN110445843B (en) 2019-07-15 2019-07-15 Parallel chain block pushing method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910633151.3A CN110445843B (en) 2019-07-15 2019-07-15 Parallel chain block pushing method, device and storage medium

Publications (2)

Publication Number Publication Date
CN110445843A true CN110445843A (en) 2019-11-12
CN110445843B CN110445843B (en) 2021-11-02

Family

ID=68430402

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910633151.3A Active CN110445843B (en) 2019-07-15 2019-07-15 Parallel chain block pushing method, device and storage medium

Country Status (1)

Country Link
CN (1) CN110445843B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111008249A (en) * 2019-12-04 2020-04-14 杭州复杂美科技有限公司 Parallel chain block synchronization method, device and storage medium
CN111275437A (en) * 2020-01-12 2020-06-12 杭州复杂美科技有限公司 Parallel chain consensus method, device and storage medium
CN111324489A (en) * 2020-02-18 2020-06-23 杭州复杂美科技有限公司 Main chain game result display method, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180240114A1 (en) * 2017-02-22 2018-08-23 Alibaba Group Holding Limited Transaction verification in a consensus network
CN108848184A (en) * 2018-06-29 2018-11-20 北京金山安全软件有限公司 Block link point synchronization method and device based on trust mechanism
CN109034807A (en) * 2018-08-15 2018-12-18 杭州复杂美科技有限公司 A kind of block chain method of data synchronization
CN109271446A (en) * 2018-08-30 2019-01-25 杭州复杂美科技有限公司 A kind of parallel chain method of data synchronization, equipment and storage medium
CN109584072A (en) * 2018-11-28 2019-04-05 杭州复杂美科技有限公司 A kind of transaction sending method, equipment and the storage medium of parallel chain common recognition

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180240114A1 (en) * 2017-02-22 2018-08-23 Alibaba Group Holding Limited Transaction verification in a consensus network
CN108848184A (en) * 2018-06-29 2018-11-20 北京金山安全软件有限公司 Block link point synchronization method and device based on trust mechanism
CN109034807A (en) * 2018-08-15 2018-12-18 杭州复杂美科技有限公司 A kind of block chain method of data synchronization
CN109271446A (en) * 2018-08-30 2019-01-25 杭州复杂美科技有限公司 A kind of parallel chain method of data synchronization, equipment and storage medium
CN109584072A (en) * 2018-11-28 2019-04-05 杭州复杂美科技有限公司 A kind of transaction sending method, equipment and the storage medium of parallel chain common recognition

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111008249A (en) * 2019-12-04 2020-04-14 杭州复杂美科技有限公司 Parallel chain block synchronization method, device and storage medium
CN111008249B (en) * 2019-12-04 2023-04-07 杭州复杂美科技有限公司 Parallel chain block synchronization method, device and storage medium
CN111275437A (en) * 2020-01-12 2020-06-12 杭州复杂美科技有限公司 Parallel chain consensus method, device and storage medium
CN111275437B (en) * 2020-01-12 2023-05-30 杭州复杂美科技有限公司 Parallel chain consensus method, apparatus and storage medium
CN111324489A (en) * 2020-02-18 2020-06-23 杭州复杂美科技有限公司 Main chain game result display method, equipment and storage medium

Also Published As

Publication number Publication date
CN110445843B (en) 2021-11-02

Similar Documents

Publication Publication Date Title
CN109271446A (en) A kind of parallel chain method of data synchronization, equipment and storage medium
CN106776894B (en) Log database system and synchronous method
CN110445843A (en) Parallel chain block method for pushing, equipment and storage medium
US7734585B2 (en) Updateable fan-out replication with reconfigurable master association
US7383289B2 (en) Updating and maintaining data in a multi-system network using asynchronous message transfer
US9165333B2 (en) Systems and methods for supply chain event visualization
CN109933592A (en) Date storage method, data rewind method, equipment and storage medium
CN109325762A (en) Across the chain method of commerce of parallel chain, equipment and storage medium
CN109587271A (en) Main chain parallel chain architecture system and block synchronous method, equipment and storage medium
CN110392121A (en) Parallel chain block generation method, equipment and storage medium
JP2023546249A (en) Transaction processing methods, devices, computer equipment and computer programs
CN108475271A (en) The application container of container database
EP1788493A1 (en) Detecting changes in data
CN108965355A (en) Method, apparatus and computer readable storage medium for data transmission
CN109558454A (en) Parallel chain digs mine common recognition method, equipment and storage medium
CN110287170A (en) Database upgrade method, status data call method, equipment and storage medium
CN110430066A (en) For reducing method, equipment and the storage medium of block chain transaction repeated broadcast
CN109450659A (en) Block delayed broadcast method, equipment and storage medium
CN110083745A (en) Data query method, equipment and storage medium
CN113157980A (en) Data synchronization method, device, equipment and storage medium
CN110535933A (en) Parallel chain common recognition method, equipment and storage medium
CN110210972A (en) Common recognition transaction sending method, equipment and storage medium
CN110309163A (en) Block chain relation type database maintenance method and data query method
CN110516006A (en) Parallel chain block generation method, equipment and storage medium
CN109614411A (en) Date storage method, equipment and storage medium

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
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20191112

Assignee: Hangzhou Kulian Technology Co.,Ltd.

Assignor: HANGZHOU FUZAMEI TECHNOLOGY Co.,Ltd.

Contract record no.: X2022330000091

Denomination of invention: Parallel chain block push method, device and storage medium

Granted publication date: 20211102

License type: Common License

Record date: 20220516

Application publication date: 20191112

Assignee: Hangzhou left chain Technology Co.,Ltd.

Assignor: HANGZHOU FUZAMEI TECHNOLOGY Co.,Ltd.

Contract record no.: X2022330000092

Denomination of invention: Parallel chain block push method, device and storage medium

Granted publication date: 20211102

License type: Common License

Record date: 20220516

Application publication date: 20191112

Assignee: Hangzhou DUOLIAN Technology Co.,Ltd.

Assignor: HANGZHOU FUZAMEI TECHNOLOGY Co.,Ltd.

Contract record no.: X2022330000090

Denomination of invention: Parallel chain block push method, device and storage medium

Granted publication date: 20211102

License type: Common License

Record date: 20220516

EE01 Entry into force of recordation of patent licensing contract