Unlock instant, AI-driven research and patent intelligence for your innovation.

A blockchain-based database transaction operation method and system

A transaction operation and operating system technology, applied in the blockchain field, can solve problems such as failure to provide database transaction support, second-step operation failure, transaction failure, etc.

Active Publication Date: 2019-10-15
BEIJING ZHONGXIANG BIT TECH
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

If only the first step is executed successfully, so that 100 yuan is deducted from Tom's account, but the second step fails, and Jack's account does not add 100 yuan, then the whole transaction fails
[0005] Blockchain provides verification and storage of transactions, but does not provide support for database transactions

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A blockchain-based database transaction operation method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0023] Embodiments of the present invention are described below with reference to the drawings, in which like parts are denoted by like reference numerals.

[0024] Such as figure 1 Shown, method of the present invention comprises:

[0025] S1. Receive a database transaction transaction, where the database transaction transaction refers to a transaction that uses a database operation as a block chain.

[0026] S2. Locally verify multiple database operations in the database transaction in sequence. If the verification is successful, go to step S3; otherwise, go to S4.

[0027] Specifically, the verification of the database operation is mainly whether the state of the operation data is consistent with the expectation, so as to ensure the timing and validity of the database operation.

[0028] On the blockchain, there is a possibility that multiple users operate on the same table at a certain moment. In order to prevent this kind of conflict, define a transaction transaction, ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The present invention provides a transaction operation method based on the block chain. The method comprises: S1, receiving a database transaction, wherein the database transaction refers to taking a database operation as a transaction of a block chain; S2, sequentially verifying a plurality of database operations in the database transaction locally, and if the verification is successful, proceeding to step S3; and S3, sending the database transaction to the network to participate in the consensus. The system comprises: a transaction receiving module, wherein the transaction receives module receives the database transaction; a transaction verification module, wherein the transaction verification module carries out verification on the plurality of database operations in the database transaction locally; and a transaction sending module, wherein when the verification of the transaction verification module is successful, the transaction sending module sends the database transaction to the network to participate in the consensus. The technical scheme of the present invention realizes transaction of the database transaction operation.

Description

technical field [0001] The present invention relates to the field of block chain technology, and more specifically, to a block chain-based database transaction operation method and system. Background technique [0002] In a blockchain system, a transaction refers to a set of interdependent operations, such as bank transactions, stock exchanges, or online shopping. [0003] The success of a transaction depends on whether these interdependent operations can be executed successfully. As long as one operation fails, it means that the entire transaction fails. [0004] For example, Tom goes to the bank to transfer 100 yuan to Jack's account. This transaction includes the following operations: (1) Subtract 100 yuan from Tom's account. (2) Add 100 yuan to Jack's account. Obviously, the above two operations must be regarded as an indivisible unit of work. If only the first step is successfully executed, 100 yuan is deducted from Tom's account, but the second step fails, and Jack'...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F21/62
Inventor 严挺程双全卢小明陈姝
Owner BEIJING ZHONGXIANG BIT TECH