CN112783976B - Consensus system for flexible packaging of alliance blockchain - Google Patents
Consensus system for flexible packaging of alliance blockchain Download PDFInfo
- Publication number
- CN112783976B CN112783976B CN202110009090.0A CN202110009090A CN112783976B CN 112783976 B CN112783976 B CN 112783976B CN 202110009090 A CN202110009090 A CN 202110009090A CN 112783976 B CN112783976 B CN 112783976B
- Authority
- CN
- China
- Prior art keywords
- information
- unit
- block
- flexible
- expansion
- 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.)
- Active
Links
- 238000009459 flexible packaging Methods 0.000 title claims description 13
- 238000012795 verification Methods 0.000 claims abstract description 66
- 238000012545 processing Methods 0.000 claims abstract description 28
- 238000012856 packing Methods 0.000 claims abstract description 16
- 230000008602 contraction Effects 0.000 claims description 40
- 238000004806 packaging method and process Methods 0.000 claims description 24
- 238000007599 discharging Methods 0.000 claims description 9
- 230000000977 initiatory effect Effects 0.000 claims description 7
- 238000000034 method Methods 0.000 claims description 6
- 238000004364 calculation method Methods 0.000 claims description 4
- 238000012163 sequencing technique Methods 0.000 claims description 3
- 230000006872 improvement Effects 0.000 description 11
- 238000010586 diagram Methods 0.000 description 3
- 238000009825 accumulation Methods 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 2
- 230000006978 adaptation Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000002035 prolonged effect Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/27—Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Computing Systems (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention relates to the technical field of blockchains and discloses a consensus system for flexibly packing out blocks of a alliance blockchain, which is characterized by comprising a plurality of alliance blockchain verification nodes, wherein each alliance blockchain verification node is provided with a parameter synchronization module, a block verification module, a data packing module and a flexible processing module.
Description
Technical Field
The invention relates to the technical field of blockchains, in particular to a consensus system for flexibly packaging out blocks by a alliance blockchain.
Background
In the blockchain network, the alliance chain has the advantage of high efficiency compared with the quantitatively packed blockchain, in order to improve the response efficiency, the alliance chain adopts the timing packing and the single block does not limit the side rate of the storage space, but the alliance chain can generate a large number of empty blocks under the condition of low transaction frequency, no transaction exists in each empty block, the state of an account is not changed, but a certain storage space is still needed, the daily accumulation and the monthly accumulation occupy a large amount of useless account book space, and in addition, the situations of low transaction amount and concentrated transaction time exist at the beginning of the deployment of the alliance blockchain. Therefore, most of the space of the ledger is useless empty blocks.
Disclosure of Invention
In view of the shortcomings of the prior art, the present invention is directed to a system for consensus of flexible packaging out blocks of a federated blockchain that overcomes the aforementioned shortcomings of the prior art.
In order to achieve the above purpose, the present invention provides the following technical solutions: the consensus system for flexibly packaging the alliance blockchain out of the blocks comprises a plurality of alliance blockchain verification nodes, wherein the alliance blockchain verification nodes are provided with a parameter synchronization module, a block verification module, a data packaging module and a flexible processing module;
the parameter synchronization module is configured with flexible configuration parameters, the flexible configuration parameters are provided with a flexible reference threshold, a flexible level, an expansion proportion and a contraction proportion, flexible configuration parameter proposals sent by all the alliance block chain verification nodes are obtained, the parameter synchronization module receives the flexible configuration parameter proposals initiated by all the alliance block chain verification nodes to conduct voting consensus, if the voting consensus result is achieved, the agreed flexible configuration parameters are sent to the data packaging module and the block verification module, and if the consensus is not achieved, the original flexible configuration parameters are sent to the data packaging module and the block verification module;
the block verification module is used for receiving transaction information sent by each alliance block chain verification node under the flexible configuration parameter and sequencing the transaction information when receiving closing information sent by the flexible processing module, and then carrying out voting consensus to obtain preliminary information, wherein the preliminary information generates reserved information if the preliminary information is transaction information, the reserved information is sent to the data packaging module, and the starting information is sent to the flexible processing module if the preliminary information is transaction information-free;
the flexible processing module comprises a start-stop unit, a configuration unit, an expansion unit, a contraction unit and a comparison unit;
the start-stop unit is used for transmitting the start-up information to the configuration unit if receiving the start-up information which is generated by the block verification module and enters the flexible processing stage, generating closing information which leaves the flexible processing stage if acquiring the comparison information transmitted by the comparison unit, and transmitting the closing information to the configuration unit and the block verification module;
the configuration unit starts the configuration unit if receiving the starting information;
at this time, if the next block-out time information sent by the preset unit is received, transaction information sent by each alliance blockchain verification node is obtained, if the transaction information is not obtained in the next block-out time information, extension information is generated and sent to the extension unit, and if the transaction information is obtained in the next block-out time information, contraction information is generated and sent to the contraction unit;
the configuration unit is closed if receiving the closing information sent by the flexible processing module, and the transaction information sent by each alliance blockchain verification node is stopped being acquired;
the expansion unit is used for calculating the expansion level of the lower stage through an expansion algorithm if receiving the expansion information sent by the configuration unit, and sending the expansion level information of the lower stage to the expansion unit, the contraction unit and the data packaging module; if the telescopic level information of the lower stage is received, replacing the telescopic level of the upper stage;
the contraction unit is used for calculating a lower-stage expansion level through a contraction algorithm if receiving the contraction information sent by the configuration unit, and sending the lower-stage expansion level to the expansion unit, the contraction unit, the data packaging module and the comparison unit; if the telescopic level information of the lower stage is received, replacing the telescopic level of the original upper stage;
the comparison unit is used for obtaining the expansion level in the parameter synchronization module and receiving the expansion level in the lower stage sent by the contraction unit to compare to obtain comparison information, if the expansion level in the lower stage in the comparison information is equal to the expansion level, the comparison information is sent to the start-stop unit, and if the expansion level in the lower stage in the comparison information is greater than the expansion level in the flexible configuration parameter, the comparison information is destroyed;
the data packaging module comprises a threshold setting unit, a preset unit and a block discharging unit;
the threshold setting unit is used for sending the flexible configuration parameters to the preset unit if the flexible configuration parameters sent by the block verification module are received and replacing the original flexible configuration parameters configured in the threshold setting unit, and sending the original flexible configuration parameters to the preset unit and the block outlet unit if the flexible configuration parameters reserved sent by the block verification module are received;
the presetting unit is used for receiving the flexible configuration parameters sent by the threshold setting unit, receiving the reserved information sent by the block verification module, the expansion unit and the expansion level information of the lower stage sent by the contraction unit, converting the reserved information into the expansion level information of the lower stage in the preset flexible configuration parameters, calculating the expansion level information of the lower stage or the expansion level information of the upper stage through a first time algorithm, converting the received expansion level information of the lower stage into the time information of the next block outlet, and sending the time information to the flexible processing module and the block outlet unit;
the block-out unit acquires the flexible configuration parameters in the threshold setting unit, receives transaction information sent by the alliance block chain verification node and next block-out time information sent by the preset unit, if the transaction information is received, calculates the next block-out time by adopting a second time algorithm to immediately pack the block and realize consensus of the whole network broadcast voting, and if the transaction information is not received, carries out empty block packing and realizes consensus of the whole network broadcast voting according to the next block-out time information.
As a further improvement of the present invention, the telescoping reference threshold defaults to 10s; the telescoping level defaults to 1; the expansion ratio is greater than or equal to 1, and defaults to 2; the shrinkage ratio is smaller than or equal to 1 and is larger than 0, and defaulting to 0.5.
As a further improvement of the invention, the alliance blockchain verification node is also provided with a transaction initiating module, and the user carries out transaction through the transaction initiating module and sends the transaction information in a whole network.
As a further improvement of the invention, the alliance blockchain verification node comprises a voting module which is configured with a consensus value, receives transaction information and the flexible configuration parameter, and if the consensus percentage of the transaction information and the flexible configuration parameter is larger than the consensus value, the voting module votes through, sends the transaction information and the flexible configuration parameter in a whole network, and if the consensus percentage of the transaction information and the flexible configuration parameter is larger than the consensus value, the voting module does not pass, and deletes the transaction information and the flexible configuration parameter.
As a further improvement of the present invention, the consensus value is eighty percent.
As a further improvement of the present invention, the expansion unit includes an automatic stop subunit configured with an upper limit value, and if the expansion level of the lower stage is less than or equal to the upper limit value, which is calculated by an expansion algorithm, the expansion level of the lower stage is sent to the data packing module, and if the expansion level of the lower stage is greater than the upper limit value, which is calculated by an expansion algorithm, the expansion level of the lower stage is deleted, and the expansion level equal to the upper limit value is sent to the data packing module.
As a further improvement of the invention, the automatic stop subunit upper limit value is seven hundred twenty.
As a further improvement of the present invention, the expansion algorithm includes:
wherein the method comprises the steps ofFor the following stage of the telescoping level, +.>For the level of scalability in the above stage, flex_growth is the expansion ratio.
As a further improvement of the present invention, the contraction algorithm includes:
wherein the method comprises the steps ofFor the following stage of the telescoping level, +.>For the level of scalability in the above stage, flex_shrnk is the scale of shrinkage.
As a further improvement of the invention, the first time algorithm calculates:
where t_next is the next block out time information, t_now is the last block pack out time,for the level of scalability described in the next stage, flex_basic is the scalability reference threshold.
As a further improvement of the invention, the second time algorithm calculates:
where T next is next out-block time information,for transaction information time, flex_basic is the flexible reference threshold.
The invention has the beneficial effects that: according to the invention, under the condition that no transaction exists in one day, the number of the packed empty blocks of the alliance block chain can be greatly reduced, the number of the generated empty blocks is less than two thousandths of the original number, the newly added space of the account book is reduced by about ninety-nine percent, meanwhile, the computing resources and network transmission data of each alliance block chain verification node of the alliance block chain are also greatly reduced, and each expansion or contraction is multiplied, so that the increased or reduced value is changed into positive distribution along with time, when the transaction exists, the second algorithm is adopted to immediately carry out block discharging, the accuracy of block discharging of the transaction is improved, and the problem of repeated transaction in the same time is prevented.
Drawings
FIG. 1 is a schematic diagram of a consensus system for flexible packaging out of blocks of a federated blockchain in accordance with the present invention;
FIG. 2 is a schematic diagram of a chunking time flexible expansion phase;
fig. 3 is a schematic diagram of a block time flexible contraction phase.
Reference numerals: 1. federated blockchain verification nodes; 2. a parameter synchronization module; 3. a block verification module; 4. a data packaging module; 41. a threshold setting unit; 42. a preset unit; 43. a block discharging unit; 5. a voting module; 6. a flexible processing module; 61. a start-stop unit; 62. a configuration unit; 63. an expansion unit; 631. a self-stopping subunit; 64. a shrinking unit; 65. an alignment unit; 7. and a transaction initiation module.
Detailed Description
The invention will now be described in further detail with reference to the drawings and examples. Wherein like parts are designated by like reference numerals. It should be noted that the words "front", "back", "left", "right", "upper" and "lower" used in the following description refer to directions in the drawings, and the words "bottom" and "top", "inner" and "outer" refer to directions toward or away from, respectively, the geometric center of a particular component.
Specific example 1:
1-3, the consensus system for flexibly packing out blocks of a alliance blockchain in the embodiment comprises a plurality of alliance blockchain verification nodes 1, wherein the alliance blockchain verification nodes 1 are provided with a parameter synchronization module 2, a block verification module 3, a data packing module 4 and a flexible processing module 6;
the parameter synchronization module 2 is configured with flexible configuration parameters, the flexible configuration parameters are provided with a flexible reference threshold, a flexible level, an expansion proportion and a contraction proportion, flexible configuration parameter proposals sent by all the alliance block chain verification nodes 1 are obtained, the parameter synchronization module 2 receives the flexible configuration parameter proposals sent by all the alliance block chain verification nodes 1 to conduct voting consensus, if the voting consensus result is achieved, the flexible configuration parameters achieving consensus are sent to the data packaging module 4 and the block verification module 3, and if the consensus is not achieved, the original flexible configuration parameters are sent to the data packaging module 4 and the block verification module 3; the flexible configuration parameters can be proposed by the parameter synchronization module 2 in each alliance blockchain verification node 1 to carry out full-network consensus, and the flexible parameters which are most suitable for the current time period can be determined through the structure of big data.
The block verification module 3 receives the closing information sent by the flexible processing module 6, and then obtains transaction information sent by each alliance block chain verification node 1 under a flexible reference threshold value in a flexible configuration parameter, performs voting consensus after sequencing to obtain preliminary information, if the preliminary information is transaction information, generates reserved information, sends the reserved information to the data packaging module 4, and if the preliminary information is transaction information, generates starting information, and sends the starting information to the flexible processing module 6; the block verification module 3 can determine whether to enter a flexible processing stage for flexible processing or directly enter a packing stage for packing the blocks.
The flexible processing module 6 comprises a start-stop unit 61, a configuration unit 62, an expansion unit 63, a contraction unit 64 and an alignment unit 65;
the start-stop unit 61 is configured to, when receiving the start-up information for entering the flexible processing stage generated by the block verification module 3, transmit the start-up information to the configuration unit 62, and when obtaining the comparison information transmitted by the comparison unit 65, generate the shutdown information for leaving the flexible processing stage, and transmit the shutdown information to the configuration unit 62 and the block verification module 3;
a configuration unit 62, if the start-up information is received, the configuration unit 62 is started up;
the configuration unit 62 is used for closing the configuration unit 62 to stop acquiring the transaction information sent by each alliance blockchain verification node 1 if the closing information sent by the flexible processing module 6 is received;
at this time, if the next block-out time information sent by the preset unit 42 is received, and transaction information sent by each alliance blockchain verification node 1 is obtained, if no transaction information is obtained in the next block-out time information, extension information is generated and sent to the extension unit 63, and if transaction information is obtained in the next block-out time information, contraction information is generated and sent to the contraction unit 64;
the expansion unit 63 is used for calculating the expansion level of the lower stage through an expansion algorithm if receiving the expansion information sent by the configuration unit 62, and sending the expansion level information of the lower stage to the expansion unit 63, the contraction unit 64 and the data packaging module 4; if the lower-stage telescopic level information is received to replace the upper-stage telescopic level, the next block discharging time can be prolonged through the expanded lower-stage telescopic level;
the contraction unit 64, if receiving the contraction information sent by the configuration unit 62, calculates the lower-stage expansion level through a contraction algorithm, and sends the lower-stage expansion level to the expansion unit 63, the contraction unit 64, the data packing module 4 and the comparison unit 65; if the information of the expansion level of the lower stage is received to replace the expansion level of the original upper stage, the next block discharging time can be shortened through the contracted expansion level;
the comparison unit 65 obtains comparison information by comparing the expansion level of the parameter synchronization module 2 clock with the expansion level of the lower stage sent by the receiving contraction unit 64, if the expansion level of the lower stage in the comparison information is equal to the expansion level, the comparison information is sent to the start-stop unit 61, and if the expansion level of the lower stage in the comparison information is greater than the expansion level in the flexible configuration parameter, the comparison information is destroyed;
the data packaging module 4 includes a threshold setting unit 41, a preset unit 42, and a block out unit 43;
the threshold value setting unit 41 is configured to send the flexible configuration parameters to the preset unit 42 if the flexible configuration parameters sent by the block verification module 3 are received and replace the original flexible configuration parameters configured in the threshold value setting unit 41, and to send the original flexible configuration parameters to the preset unit 42 and the block outlet unit 43 if the reserved flexible configuration parameters sent by the block verification module 3 are received;
a preset unit 42 for receiving the flexible configuration parameters sent by the threshold setting unit 41, receiving the reservation information sent by the block verification module 3, the lower-stage expansion level information sent by the expansion unit 63 and the contraction unit 64, converting the reservation information into lower-stage expansion level information in the preset flexible configuration parameters, calculating the received lower-stage expansion level information or upper-stage expansion level information through a first time algorithm, converting the received lower-stage expansion level information or upper-stage expansion level information into next block-out time information, and sending the next block-out time information to the flexible processing module 6 and the block-out unit 43;
the block-out unit 43 obtains the flexible configuration parameters in the threshold setting unit 41, receives the transaction information sent by the alliance blockchain verification node 1 and the next block-out time information sent by the preset unit 42, if the transaction information is received, calculates the next block-out time by adopting a second time algorithm to immediately pack the blocks and realize consensus of the whole network broadcast voting, and if the transaction information is not received, packs the empty blocks and realizes consensus of the whole network broadcast voting according to the next block-out time information.
The telescoping reference threshold defaults to 10s; the telescoping level defaults to 1; the expansion ratio is greater than or equal to 1, and defaults to 2; the shrinkage ratio is smaller than or equal to 1 and is larger than 0, and defaulting to 0.5.
In this way, under the condition that no transaction exists in one day, the number of the packed empty blocks of the alliance block chain can be greatly reduced, the number of generated empty blocks is less than two thousandths of the original number, the newly added space of the account book is reduced by about ninety-nine percent, meanwhile, the computing resource and network transmission data of each alliance block chain verification node 1 of the alliance block chain are also greatly reduced, and each expansion or contraction is multiplied, so that the change of the added or reduced value along with time is distributed, when a transaction exists, the second algorithm is adopted to immediately carry out block discharging, the accuracy of block discharging of the transaction is improved, and the problem of repeated transaction in the same time is prevented.
Embodiment two:
unlike the first embodiment, referring to fig. 1, the federation blockchain verification node 1 is further configured with a transaction initiation module, through which a user performs a transaction, and sends transaction information over the internet, and through which the initiation of the transaction can be completed.
As a further improvement of the present invention, the alliance blockchain verification node 1 includes a voting module 5 configured with a consensus value, receives the transaction information and the flexible configuration parameter, if the consensus percentage of the transaction information and the flexible configuration parameter is greater than the consensus value, votes pass, transmits the transaction information and the flexible configuration parameter through the whole network, if the consensus percentage of the transaction information and the flexible configuration parameter is greater than the consensus value, votes do not pass, and deletes the transaction information and the flexible configuration parameter, and the consensus value of the transaction information and the flexible configuration parameter is deleted to eighty percent.
Through the voting module 5, not only flexible configuration parameters which are most suitable for users can be obtained, but also whether transaction information is effective can be ensured.
Embodiment III:
in a different manner from the embodiment, referring to fig. 1, the expansion unit 63 includes a self-stopping subunit 631, the self-stopping subunit 631 is configured with an upper limit value, if the lower-stage expansion level is less than or equal to the upper limit value through calculation of the expansion algorithm, the expansion time interval is sent to the data packing module 4, if the lower-stage expansion level is greater than the upper limit value through calculation of the expansion algorithm, the calculated lower-stage expansion level is deleted, and the expansion level equal to the upper limit value is sent to the data packing module 4, and the upper limit value of the self-stopping subunit 631 is 720.
Through setting up the automatic stop subunit 631, prevented the unlimited expansion of flexible level problem, in practice, the user often can be through packing number of times come subjective judgement blockchain transaction whether active, if not pack for a long time, can cause the problem that user crowd descends.
Embodiment four:
in a first difference from the embodiment, the expansion algorithm includes:
wherein the method comprises the steps ofFor the lower stage telescoping level, +.>For the upper stage telescoping level, flex_growth is the scale of extension.
Referring to fig. 1, the contraction algorithm includes:
wherein the method comprises the steps ofFor the lower stage telescoping level, +.>For the upper stage telescoping level, flex_shrnk is the telescoping ratio.
Referring to fig. 1, a first time algorithm calculates:
where t_next is the next block out time information, t_now is the last block pack out time,for the next stage telescoping level, flex_basic is the telescoping reference threshold.
Referring to fig. 1, a second time algorithm is calculated:
where T next is next out-block time information,for transaction information time, flex_basic is the flexible reference threshold.
The packing of the blocks and the expansion or contraction of the expansion level can be completed through the above formula.
The above is only a preferred embodiment of the present invention, and the protection scope of the present invention is not limited to the above examples, and all technical solutions belonging to the concept of the present invention belong to the protection scope of the present invention. It should be noted that modifications and adaptations to the present invention may occur to one skilled in the art without departing from the principles of the present invention and are intended to be within the scope of the present invention.
Claims (10)
1. The utility model provides a flexible consensus system who packs out piece of alliance blockchain, includes a plurality of alliance blockchain verification nodes, its characterized in that: the alliance block chain verification node is provided with a parameter synchronization module, a block verification module, a data packaging module and a flexible processing module;
the parameter synchronization module is configured with flexible configuration parameters, the flexible configuration parameters are provided with a flexible reference threshold, a flexible level, an expansion proportion and a contraction proportion, flexible configuration parameter proposals sent by all the alliance block chain verification nodes are obtained, the parameter synchronization module receives the flexible configuration parameter proposals initiated by all the alliance block chain verification nodes to conduct voting consensus, if the voting consensus result is achieved, the agreed flexible configuration parameters are sent to the data packaging module and the block verification module, and if the consensus is not achieved, the original flexible configuration parameters are sent to the data packaging module and the block verification module;
the block verification module is used for receiving transaction information sent by each alliance block chain verification node under the flexible configuration parameter and sequencing the transaction information when receiving closing information sent by the flexible processing module, and then carrying out voting consensus to obtain preliminary information, wherein the preliminary information generates reserved information if the preliminary information is transaction information, the reserved information is sent to the data packaging module, and the starting information is sent to the flexible processing module if the preliminary information is transaction information-free;
the flexible processing module comprises a start-stop unit, a configuration unit, an expansion unit, a contraction unit and a comparison unit;
the start-stop unit is used for transmitting the start-up information to the configuration unit if receiving the start-up information which is generated by the block verification module and enters the flexible processing stage, generating closing information which leaves the flexible processing stage if acquiring the comparison information transmitted by the comparison unit, and transmitting the closing information to the configuration unit and the block verification module;
the configuration unit starts the configuration unit if receiving the starting information;
at this time, if the next block-out time information sent by the preset unit is received, transaction information sent by each alliance blockchain verification node is obtained, if the transaction information is not obtained in the next block-out time information, extension information is generated and sent to the extension unit, and if the transaction information is obtained in the next block-out time information, contraction information is generated and sent to the contraction unit;
the configuration unit is closed if receiving the closing information sent by the flexible processing module, and the transaction information sent by each alliance blockchain verification node is stopped being acquired;
the expansion unit is used for calculating the expansion level of the lower stage through an expansion algorithm if receiving the expansion information sent by the configuration unit, and sending the expansion level information of the lower stage to the expansion unit, the contraction unit and the data packaging module; if the telescopic level information of the lower stage is received, replacing the telescopic level of the upper stage;
the contraction unit is used for calculating a lower-stage expansion level through a contraction algorithm if receiving the contraction information sent by the configuration unit, and sending the lower-stage expansion level to the expansion unit, the contraction unit, the data packaging module and the comparison unit; if the telescopic level information of the lower stage is received, replacing the telescopic level of the original upper stage;
the comparison unit is used for obtaining the expansion level in the parameter synchronization module and receiving the expansion level in the lower stage sent by the contraction unit to compare to obtain comparison information, if the expansion level in the lower stage in the comparison information is equal to the expansion level, the comparison information is sent to the start-stop unit, and if the expansion level in the lower stage in the comparison information is greater than the expansion level in the flexible configuration parameter, the comparison information is destroyed;
the data packaging module comprises a threshold setting unit, a preset unit and a block discharging unit;
the threshold setting unit is used for sending the flexible configuration parameters to the preset unit if the flexible configuration parameters sent by the block verification module are received and replacing the original flexible configuration parameters configured in the threshold setting unit, and sending the original flexible configuration parameters to the preset unit and the block outlet unit if the flexible configuration parameters reserved sent by the block verification module are received;
the presetting unit is used for receiving the flexible configuration parameters sent by the threshold setting unit, receiving the reserved information sent by the block verification module, the expansion unit and the expansion level information of the lower stage sent by the contraction unit, converting the reserved information into the expansion level information of the lower stage in the preset flexible configuration parameters, calculating the expansion level information of the lower stage or the expansion level information of the upper stage through a first time algorithm, converting the received expansion level information of the lower stage into the time information of the next block outlet, and sending the time information to the flexible processing module and the block outlet unit;
the block-out unit acquires the flexible configuration parameters in the threshold setting unit, receives transaction information sent by the alliance block chain verification node and next block-out time information sent by the preset unit, if the transaction information is received, calculates the next block-out time by adopting a second time algorithm to immediately pack the block and realize consensus of the whole network broadcast voting, and if the transaction information is not received, carries out empty block packing and realizes consensus of the whole network broadcast voting according to the next block-out time information.
2. The federated blockchain flexible packaging out-of-block consensus system as in claim 1, wherein: the telescoping reference threshold defaults to 10s; the telescoping level defaults to 1; the expansion ratio is greater than or equal to 1, and defaults to 2; the shrinkage ratio is smaller than or equal to 1 and is larger than 0, and defaulting to 0.5.
3. The federated blockchain flexible packaging out-of-block consensus system as in claim 1, wherein: the alliance blockchain verification node is also provided with a transaction initiating module, and a user carries out transaction through the transaction initiating module and sends transaction information in a whole network.
4. The federated blockchain flexible packaging out-of-block consensus system as in claim 1, wherein: the alliance blockchain verification node comprises a voting module, is configured with a consensus value, receives transaction information and the flexible configuration parameter, and if the consensus percentage of the transaction information and the flexible configuration parameter is larger than the consensus value, the voting module votes through the whole network, sends the transaction information and the flexible configuration parameter, and if the consensus percentage of the transaction information and the flexible configuration parameter is larger than the consensus value, the voting module votes not through, and deletes the transaction information and the flexible configuration parameter, wherein the consensus value is eighty percent.
5. The federated blockchain flexible packaging out-of-block consensus system as in claim 1, wherein: the expansion unit comprises an automatic stopping subunit, wherein the automatic stopping subunit is configured with an upper limit value, if the expansion level of the lower stage is smaller than or equal to the upper limit value through calculation of an expansion algorithm, the expansion level of the lower stage is sent to the data packaging module, if the expansion level of the lower stage is larger than the upper limit value through calculation of the expansion algorithm, the expansion level of the lower stage is deleted, and the expansion level equal to the upper limit value is sent to the data packaging module.
6. The federated blockchain flexible packaging out-of-block consensus system as in claim 5, wherein: the upper limit value of the automatic stop subunit is seven hundred twenty.
7. The federated blockchain flexible packaging out-of-block consensus system as in claim 1, wherein: the expansion algorithm comprises the following steps:
wherein the method comprises the steps ofFor the following stage of the telescoping level, +.>For the level of scalability in the above stage, flex_growth is the expansion ratio.
8. The federated blockchain flexible packaging out-of-block consensus system as in claim 1, wherein: the contraction algorithm includes:
wherein the method comprises the steps ofFor the following stage of the telescoping level, +.>For the level of scalability in the above stage, flex_shrnk is the scale of shrinkage.
9. The federated blockchain flexible packaging out-of-block consensus system as in claim 1, wherein: the first time algorithm calculates:
where t_next is the next block out time information, t_now is the last block pack out time,for the level of scalability described in the next stage, flex_basic is the scalability reference threshold.
10. The federated blockchain flexible packaging out-of-block consensus system as in claim 1, wherein: the second time algorithm calculates:
where T next is next out-block time information,for transaction information time, flex_basic is the flexible reference threshold.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110009090.0A CN112783976B (en) | 2021-01-05 | 2021-01-05 | Consensus system for flexible packaging of alliance blockchain |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110009090.0A CN112783976B (en) | 2021-01-05 | 2021-01-05 | Consensus system for flexible packaging of alliance blockchain |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112783976A CN112783976A (en) | 2021-05-11 |
CN112783976B true CN112783976B (en) | 2024-01-26 |
Family
ID=75755468
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110009090.0A Active CN112783976B (en) | 2021-01-05 | 2021-01-05 | Consensus system for flexible packaging of alliance blockchain |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112783976B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113420017B (en) * | 2021-06-21 | 2023-10-13 | 上海特高信息技术有限公司 | Block chain application method for acquiring training data set of robot navigation algorithm |
CN114385647B (en) * | 2021-12-15 | 2023-04-07 | 达闼科技(北京)有限公司 | Alliance link-out block method, alliance link-out block device, electronic equipment and medium |
CN115186035B (en) * | 2022-09-13 | 2022-11-22 | 腾讯科技(深圳)有限公司 | Block processing method, related system, storage medium and server |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108921535A (en) * | 2018-07-16 | 2018-11-30 | 夸克链科技(深圳)有限公司 | A kind of block of block chain seals mechanism up for safekeeping |
CN108984744A (en) * | 2018-07-16 | 2018-12-11 | 夸克链科技(深圳)有限公司 | A kind of non-master chain block self-propagation method |
CN109165324A (en) * | 2018-08-20 | 2019-01-08 | 深圳市元征科技股份有限公司 | A kind of transaction data packaging method and relevant apparatus |
CN109964242A (en) * | 2018-05-25 | 2019-07-02 | 北京大学深圳研究生院 | A kind of block chain common recognition method based on trusting relationship |
CN111177258A (en) * | 2019-12-13 | 2020-05-19 | 浙商银行股份有限公司 | Adaptive configuration transaction packaging method based on block chain platform |
CN111507717A (en) * | 2020-04-20 | 2020-08-07 | 腾讯科技(深圳)有限公司 | Data processing method, device, block node and computer readable storage medium |
CN111612472A (en) * | 2020-06-10 | 2020-09-01 | 上海黔链科技有限公司 | Block chain authoritative node authorization consensus algorithm |
CN111695123A (en) * | 2020-04-27 | 2020-09-22 | 华东师范大学 | Block chain-oriented optimistic concurrency order-preserving coding method for reducing conflict |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10691648B2 (en) * | 2018-07-03 | 2020-06-23 | International Business Machines Corporation | Controlling volatility via blockchain |
-
2021
- 2021-01-05 CN CN202110009090.0A patent/CN112783976B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109964242A (en) * | 2018-05-25 | 2019-07-02 | 北京大学深圳研究生院 | A kind of block chain common recognition method based on trusting relationship |
CN108921535A (en) * | 2018-07-16 | 2018-11-30 | 夸克链科技(深圳)有限公司 | A kind of block of block chain seals mechanism up for safekeeping |
CN108984744A (en) * | 2018-07-16 | 2018-12-11 | 夸克链科技(深圳)有限公司 | A kind of non-master chain block self-propagation method |
CN109165324A (en) * | 2018-08-20 | 2019-01-08 | 深圳市元征科技股份有限公司 | A kind of transaction data packaging method and relevant apparatus |
CN111177258A (en) * | 2019-12-13 | 2020-05-19 | 浙商银行股份有限公司 | Adaptive configuration transaction packaging method based on block chain platform |
CN111507717A (en) * | 2020-04-20 | 2020-08-07 | 腾讯科技(深圳)有限公司 | Data processing method, device, block node and computer readable storage medium |
CN111695123A (en) * | 2020-04-27 | 2020-09-22 | 华东师范大学 | Block chain-oriented optimistic concurrency order-preserving coding method for reducing conflict |
CN111612472A (en) * | 2020-06-10 | 2020-09-01 | 上海黔链科技有限公司 | Block chain authoritative node authorization consensus algorithm |
Non-Patent Citations (2)
Title |
---|
On Sharding Open Blockchains with Smart Contracts;Y. Tao 等;2020 IEEE 36th International Conference on Data Engineering (ICDE);1357-1368 * |
基于区块链的分布式可信系统技术研究及应用;程华峥;中国优秀硕士学位论文全文数据库 信息科技辑(第07期);I138-706 * |
Also Published As
Publication number | Publication date |
---|---|
CN112783976A (en) | 2021-05-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112783976B (en) | Consensus system for flexible packaging of alliance blockchain | |
CN109558065B (en) | Data deleting method and distributed storage system | |
CN109218348B (en) | Method for determining blocks in block chain and node equipment | |
CN107016611A (en) | A kind of transaction manufacture timeout control method based on block chain | |
CN109947551B (en) | Multi-turn task allocation method, edge computing system and storage medium thereof | |
CN103118084A (en) | Host node election method and node | |
CN109408521A (en) | A kind of method and device thereof for more new block chain global data state | |
CN108600161A (en) | A kind of fair efficient block chain common recognition method | |
CN106354865B (en) | Method, device and system for synchronizing master database and slave database | |
CN104579761A (en) | Automatic nosql cluster configuration system and method based on cloud computing | |
CN107017958B (en) | A kind of method for synchronizing time and corresponding system based on NTP | |
CN111670564B (en) | Information processing method and block link point | |
CN107615838A (en) | A kind of information notice method, user terminal, first base station and the second base station | |
CN109976942A (en) | A kind of data backup and resume method, backup server and source server | |
CN111368005A (en) | Data processing method, device and equipment based on block chain and readable storage medium | |
CN110442591B (en) | Global clock system and method of alliance chain | |
Abraham et al. | Brief announcement: Byzantine agreement, broadcast and state machine replication with optimal good-case latency | |
US20210096962A1 (en) | Data backup method, device and system | |
CN110505084B (en) | Block chain packing node consensus electing method | |
CN103607731A (en) | Method and device for processing measurement reports | |
CN102137091A (en) | Overload control method, device and system as well as client-side | |
CN106455042A (en) | Inter-node time synchronization method, wireless sensor network and node thereof | |
TW201924418A (en) | Synchronization method and apparatus | |
CN111414421B (en) | Sectional type block chain storage method and storage device | |
CN111491020B (en) | Data processing method, data processing device, computer 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 |