CN110473088B - Block chain-based band type data processing method and system - Google Patents

Block chain-based band type data processing method and system Download PDF

Info

Publication number
CN110473088B
CN110473088B CN201810434817.8A CN201810434817A CN110473088B CN 110473088 B CN110473088 B CN 110473088B CN 201810434817 A CN201810434817 A CN 201810434817A CN 110473088 B CN110473088 B CN 110473088B
Authority
CN
China
Prior art keywords
block
transaction
preset time
processing
node
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
Application number
CN201810434817.8A
Other languages
Chinese (zh)
Other versions
CN110473088A (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.)
Benchainless Technology Shenzhen Co ltd
Original Assignee
Benchainless Technology Shenzhen 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 Benchainless Technology Shenzhen Co ltd filed Critical Benchainless Technology Shenzhen Co ltd
Priority to CN201810434817.8A priority Critical patent/CN110473088B/en
Publication of CN110473088A publication Critical patent/CN110473088A/en
Application granted granted Critical
Publication of CN110473088B publication Critical patent/CN110473088B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3825Use of electronic signatures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/40Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
    • G06Q20/405Establishing or using transaction specific rules
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Abstract

The invention discloses a band type data processing method and a band type data processing system based on a block chain.A block generation time is preset, and a user updates local account information; when the node receives the previous block, storing the previous block into a local disk, immediately checking the legality of the information contained in the previous block and processing the information; creating a new block which is empty currently at the node, and processing the transaction which is not completed due to the timeout of the previous block and the new transaction received by the node within the preset time; when the preset time consumption is completed, the block is signed, the block is sent to a block chain network, and under the condition that the current block generation rule is not changed, a blank block is created in advance, so that the timing of block transaction processing is adjusted, the problem of transaction processing stagnation is solved, and the user experience performance is improved.

Description

Block chain-based band type data processing method and system
Technical Field
The present invention relates to the field of block chain technology, and in particular, to a method and system for band type data processing based on a block chain.
Background
The blockchain is a brand new distributed infrastructure and computing mode that uses blockchain data structures to verify and store data, uses distributed node consensus algorithms to generate and update data, uses cryptographic methods to secure data transmission and access, and uses intelligent contracts composed of automated script codes to program and manipulate data.
In the normal block generation, taking 128 seconds as an example of generating a block in a preset time, a node generates a block until the 128 th second, and the block is sent after the block generation is completed, but the node may already receive the previous block and complete the processing in the 10 th second, so that the node is empty and wastes 118 seconds, and in addition, the number of people who send the 129 th second sending transaction after the 128 th second sending transaction is completed is 127 seconds more and can obtain the processing, and the performance and the experience are reduced.
Therefore, how to solve the problem of transaction processing stagnation and improve the user experience performance becomes a great research direction in the field of block chains.
Disclosure of Invention
The invention aims to provide a band type data processing method and system based on a block chain, which adjust the block transaction processing opportunity by creating a blank block in advance under the condition of not changing the current block generation rule, solve the problem of transaction processing stagnation and improve the user experience performance.
A block chain based wave band type data processing method is applied to any node on a block chain network, and comprises the following steps:
s1, presetting block generation time, and updating local account information by a user;
s2, when the node receives the previous block, storing the previous block into a local disk, immediately checking the validity of the information contained in the previous block and processing the information;
s3, creating a new block which is empty currently at the node, and processing the transaction which is not completed due to the timeout of the previous block and the new transaction received by the node within the preset time;
and S4, when the preset time is consumed, the node signs the block and sends the signed block to a block chain network.
Further, the preset time includes:
the first half of the preset time: and the first half preset time is the time for pre-processing the block in advance, and in the first half preset time, the node receives the previous block, checks the legality of the information contained in the previous block and processes the information.
Further, the preset time includes:
the second half of the preset time: and the latter half period of preset time is transaction advanced processing time, and the node receives and verifies and processes the new transaction within the latter half period of preset time.
Further, the processing the transaction completed after the timeout of the previous block and the new transaction received by the node within the preset time includes:
in a preset time, the node cannot process all transactions contained in the last block, so that the node processes the transactions for more than a whole block time, and thus misses the block-out time of the node, and the block is considered invalid and discarded after the block signature is sent, so that the transaction processing in the time period is invalid, and the performance of the time period is lost, and at this time, the transaction which is not completed due to timeout needs to be processed in the preset time.
Further, the processing the transaction completed after the timeout of the previous block and the new transaction received by the node within the preset time further includes:
and when the node receives a new transaction, the new transaction and the overtime unfinished transaction of the previous block are processed according to the sequence.
A block chain based banded data processing system, the system comprising:
a user terminal module: the user terminal module comprises an account updating unit and a block generating unit, and when block generating time is preset, local account information is updated, and a new currently empty block is created;
A data processing module: the data processing module comprises a receiving unit, a data reading unit, a checking unit and a processing subunit, and is used for processing the new transaction received at the user terminal module and the overtime unfinished transaction of the previous block according to the sequence;
and the signature sending module comprises a node signature unit and a block sending unit, and when the preset time consumption is completed, the signature sending module collects the transaction processed by the data processing module into the new block, signs the transaction and sends the block to a block chain network.
Further, the updating the local account information by the account updating unit includes:
and when the user logs in the terminal server, the data processing system automatically updates account information corresponding to the user account and starts a terminal operation mode.
Further, the processing the new transaction and the overtime unfinished transaction of the previous block according to the sequence includes:
when the node receiving unit receives the previous block, the data reading unit stores the previous block into a local disk, the checking unit immediately checks the legality of the information contained in the previous block, and the processing subunit processes the information.
Further, the processing the new transaction and the overtime unfinished transaction of the previous block according to the sequence further comprises:
if the processing of the unprocessed transaction is finished, waiting for the arrival of a new transaction if the generation time of the preset block is not used up; and the node receives the new transaction, checks and processes the new transaction, plugs the processed transaction into a new block, and circularly waits for processing the new transaction.
Further, the signing the new block includes:
when the preset time consumption is completed, the node signing unit performs block signing on the transaction processed and completed in the preset time;
the block comprises node information, transaction information and data signature information.
Compared with the prior art, the invention has the following beneficial effects:
under the condition that the existing block generation rule is not changed, the blank block is created in advance, the transaction processing time of the block is adjusted, the information contained in the new transaction and the information contained in the last block are gathered, the transaction processing stagnation problem is solved according to the sequential processing mode, and the user experience and performance are improved.
Drawings
FIG. 1 is a schematic flow chart of a data processing method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a data processing system according to an aspect of the present invention;
FIG. 3 is a flow diagram of the modules of the data processing system in accordance with aspects of the present invention.
Detailed Description
The invention is described in further detail below with reference to the figures and specific examples. It should be noted that the technical features involved in the embodiments of the present invention described below may be combined with each other as long as they do not conflict with each other.
As shown in fig. 1, a block chain-based band-type data processing method is applied to any node on a block chain network, and the band-type data processing method includes:
firstly, a user updates local account information; presetting block generation time 256s, wherein the first 128 seconds are advanced preprocessing time, and the last 128 seconds are transaction advanced processing time;
secondly, within the advanced preprocessing time of 128s, the node receives the previous block, stores the previous block in the local disk, and immediately checks the validity of the information contained in the previous block and processes the information.
Within the 128s transaction advance processing time, the node receives and verifies that a new transaction is processed.
Preferably, within 128s, the node cannot process all transactions contained in the previous block, so that the node processes the transactions for more than 128s of the whole block, thereby missing the block-out time of the node, causing the block to be discarded after the block signature is sent out and being considered invalid, thereby causing the transaction processing in the current time period to be invalid, and losing the performance of the 128s, at this time, the transaction processing opportunity needs to be adjusted, the next block is processed immediately after the previous block is received, regardless of whether the time of the next block is up, and the block can be immediately output only when the time is up during the processing, at this time, because the block is the time up to immediately output block, for the next block, it can process the transactions for 2 128s, namely 256s, as long as the block can be generated within 256s, it does not waste a little time for the node to process the transactions, and no interruption exists in the midway, so that the time utilization efficiency is greatly improved.
Then, processing the current unprocessed transaction; collecting the processed transaction information in a new block; after the processing of the unprocessed transaction is completed, if the preset time 256s is not used up, the new transaction is waited for.
When a new transaction is received, the new transaction is verified and processed, and the processed transaction is collected in a new block; circularly waiting and processing a new transaction according to the same operation steps;
and finally, when the preset time 256s is consumed, signing the block, and sending the block to the block chain network.
As shown in fig. 2 and fig. 3, a band data processing system using blockchain includes:
a user terminal module: the user terminal module comprises an account updating unit and a block generating unit, and when block generating time is preset, local account information is updated, and a new currently empty block is created;
a data processing module: the data processing module comprises a receiving unit, a data reading unit, a checking unit and a processing subunit, and is used for processing the new transaction received at the user terminal module and the overtime unfinished transaction of the previous block according to the sequence;
And the signature sending module comprises a node signature unit and a block sending unit, and when the preset time consumption is completed, the signature sending module collects the transaction processed by the data processing module into the new block, signs the transaction and sends the block to a block chain network.
An operation process for applying a blockchain-based band data processing system specifically includes:
firstly, a user logs in a terminal server, a data processing system automatically updates account information corresponding to a user account, and a terminal operation mode is started;
secondly, when the node receiving unit receives the previous block, the data reading unit stores the previous block into the local disk, the checking unit immediately checks the legality of the information contained in the previous block, and the processing subunit processes the information.
Then, if the preset block generation time 256s is not used up after the unprocessed transaction is processed, waiting for the arrival of a new transaction;
when the node receives the new transaction, the new transaction is checked and processed, the processed transaction is gathered to a new block, and the new transaction is circularly waited to be processed according to the same operation steps.
Finally, when the preset time 256s is consumed, the node signing unit performs block signing on the transaction processed and completed within the preset time 256s, and sends a new block comprising node information, transaction information and data signing information to the blockchain network.
According to the band type data processing method and system based on the block chain, under the condition that the current block generation rule is not changed, the blank block is created in advance, the timing of block transaction processing is adjusted, information contained in a new transaction and a previous block is collected, the problem of transaction processing stagnation is solved according to a sequential processing mode, and the user experience performance is improved.
The above-mentioned embodiments are only preferred embodiments of the present invention, and do not limit the technical scope of the present invention, so that the changes and modifications made by the claims and the specification of the present invention should fall within the scope of the present invention.

Claims (8)

1. A block chain based wave band type data processing method is applied to any node on a block chain network, and is characterized in that the wave band type data processing method comprises the following steps:
s1, presetting block generation time, and updating local account information by a user;
s2, when the node receives the previous block, storing the previous block into a local disk, immediately checking the validity of the information contained in the previous block and processing the information;
s3, creating a new block which is empty currently at the node, and processing the transaction which is not completed due to the timeout of the previous block and the new transaction received by the node within a preset time;
S4, when the preset time is consumed, the node signs the block and sends the signed block to a block chain network;
the preset time includes: the first half of the preset time: the first half of preset time is the time for pre-processing the block in advance, and in the first half of preset time, the node receives the previous block, checks the legality of the information contained in the previous block and processes the information;
the preset time includes: the second half of the preset time: and the latter half period of preset time is transaction advanced processing time, and the node receives and verifies and processes the new transaction within the latter half period of preset time.
2. The method as claimed in claim 1, wherein the processing the transaction completed due to timeout of the previous tile and the new transaction received by the node within a predetermined time includes:
within a preset time, the node cannot process all transactions contained in the previous block, which results in a remaining part of the transactions not completed within a timeout after the block signature is sent, and at this time, the transactions not completed within the timeout need to be processed within the preset time.
3. The method as claimed in claim 1, wherein the processing the transaction completed due to timeout of the previous tile and the new transaction received by the node within a preset time further comprises:
and when the node receives a new transaction, the new transaction and the overtime unfinished transaction of the previous block are processed according to the sequence.
4. A block chain based band data processing system, the system comprising:
a user terminal module: the user terminal module comprises an account updating unit and a block generating unit, when block generating time is preset, local account information is updated, a new currently empty block is created, and the preset time comprises: the first half of the preset time: the first half of preset time is the time for pre-processing the block in advance, and in the first half of preset time, the node receives the previous block, checks the legality of the information contained in the previous block and processes the information;
the preset time includes: the second half of the preset time: the second half period of preset time is transaction advanced processing time, and in the second half period of preset time, the node receives and verifies and processes a new transaction;
A data processing module: the data processing module comprises a receiving unit, a data reading unit, a checking unit and a processing subunit, and is used for processing the new transaction received at the user terminal module and the overtime unfinished transaction of the previous block according to the sequence;
and the signature sending module comprises a node signature unit and a block sending unit, and when the preset time consumption is completed, the signature sending module collects the transaction processed by the data processing module into the new block, signs the transaction and sends the new block to a block chain network.
5. The system according to claim 4, wherein the account update unit updates the local account information by:
when a user logs in the terminal server, the data processing system automatically updates account information corresponding to the user account and starts a terminal operation mode.
6. The system of claim 4, wherein processing the new transaction in a sequential order with respect to the transaction that was not completed due to the timeout of the previous block comprises:
When the node receiving unit receives the previous block, the data reading unit stores the previous block into a local disk, the checking unit immediately checks the validity of the information contained in the previous block, and the processing subunit processes the information.
7. The system of claim 4, wherein processing the new transaction in chronological order with the transaction that was timed out and not completed for the previous block further comprises:
if the processing of the unprocessed transaction is finished, waiting for the arrival of a new transaction if the preset block generation time is not used up; and the node receives the new transaction, checks and processes the new transaction, plugs the processed transaction into a new block, and circularly waits for processing the new transaction.
8. The system according to claim 4, wherein said signing the new block comprises:
when the preset time consumption is completed, the node signing unit performs block signing on the transaction processed and completed in the preset time;
the block comprises node information, transaction information and data signature information.
CN201810434817.8A 2018-05-09 2018-05-09 Block chain-based band type data processing method and system Active CN110473088B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810434817.8A CN110473088B (en) 2018-05-09 2018-05-09 Block chain-based band type data processing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810434817.8A CN110473088B (en) 2018-05-09 2018-05-09 Block chain-based band type data processing method and system

Publications (2)

Publication Number Publication Date
CN110473088A CN110473088A (en) 2019-11-19
CN110473088B true CN110473088B (en) 2022-06-03

Family

ID=68503257

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810434817.8A Active CN110473088B (en) 2018-05-09 2018-05-09 Block chain-based band type data processing method and system

Country Status (1)

Country Link
CN (1) CN110473088B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111126978B (en) * 2019-12-28 2023-03-14 飞天诚信科技股份有限公司 Method and device for realizing rapid transaction processing on block chain
CN112417038B (en) * 2020-11-10 2021-07-13 深圳百纳维科技有限公司 Asynchronous block construction method and device based on ocean transportation and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106453636A (en) * 2016-11-22 2017-02-22 深圳银链科技有限公司 Credible block generation method and system
CN107016611A (en) * 2017-03-29 2017-08-04 杭州秘猿科技有限公司 A kind of transaction manufacture timeout control method based on block chain
CN107688945B (en) * 2017-08-11 2020-04-10 杭州溪塔科技有限公司 Design method of efficient permission chain based on delay state consensus

Also Published As

Publication number Publication date
CN110473088A (en) 2019-11-19

Similar Documents

Publication Publication Date Title
CN108683539B (en) Block chain network management method, block chain network management device, block chain network management medium and electronic equipment
CN109242500B (en) Block chain transaction validity verification method and device and storage medium
CN107332876B (en) Method and device for synchronizing block chain state
CN106874087A (en) A kind of block chain intelligence contract timed task dispatching method
CN108563502B (en) Task scheduling method and device
EP4300323A1 (en) Data processing method and apparatus for blockchain network, computer device, computer readable storage medium, and computer program product
CN111277639B (en) Method and device for maintaining data consistency
CN106354865B (en) Method, device and system for synchronizing master database and slave database
CN107193672B (en) Cross-block asynchronous contract calling system
CN110473088B (en) Block chain-based band type data processing method and system
CN104683472A (en) Data transmission method capable of supporting large data volume
CN105491115A (en) Message pushing device and method
CN110990482A (en) Data synchronization method and device between asynchronous databases
CN113064707B (en) Message processing method, device and equipment
CN106034113A (en) Data processing method and data processing device
CN101192229B (en) Data synchronization method and system
CN102026228B (en) Statistical method and equipment for communication network performance data
CN111556115A (en) Data processing method, device and equipment based on block chain and storage medium
EP2449519A1 (en) 24 hours global low latency computerized exchange system
CN109348434A (en) A kind of sending method of scene information, sending device and terminal device
CN111210340A (en) Automatic task processing method and device, server and storage medium
CN115409507A (en) Block processing method, block processing device, computer equipment and storage medium
CN109542917B (en) Data reading method and computer readable medium
CN102055606B (en) Business processing method, system and equipment in business support system
CN110889765A (en) Transaction information reporting method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20210325

Address after: Room 2201, 703c, Desai science and technology building, 9789 Shennan Avenue, high tech Zone community, Yuehai street, Nanshan District, Shenzhen, Guangdong 518000

Applicant after: Benchainless Technology (Shenzhen) Co.,Ltd.

Address before: 361000 unit 11, 201, building B, 86 Haijing Road, Xiamen area, China (Fujian) pilot Free Trade Zone, Xiamen City, Fujian Province

Applicant before: XIAMEN INSTINCT BLOCKCHAIN TECHNOLOGY Co.,Ltd.

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