CN112488688B - Transaction processing method, device, equipment and storage medium based on blockchain - Google Patents

Transaction processing method, device, equipment and storage medium based on blockchain Download PDF

Info

Publication number
CN112488688B
CN112488688B CN202011494036.1A CN202011494036A CN112488688B CN 112488688 B CN112488688 B CN 112488688B CN 202011494036 A CN202011494036 A CN 202011494036A CN 112488688 B CN112488688 B CN 112488688B
Authority
CN
China
Prior art keywords
transaction
information
processing
target
queue
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
CN202011494036.1A
Other languages
Chinese (zh)
Other versions
CN112488688A (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.)
Guangzhou Smart Chain Future Technology Co ltd
Original Assignee
Guangzhou Smart Chain Future 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 Guangzhou Smart Chain Future Technology Co ltd filed Critical Guangzhou Smart Chain Future Technology Co ltd
Priority to CN202011494036.1A priority Critical patent/CN112488688B/en
Publication of CN112488688A publication Critical patent/CN112488688A/en
Application granted granted Critical
Publication of CN112488688B publication Critical patent/CN112488688B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/08Payment architectures
    • G06Q20/085Payment architectures involving remote charge determination or related payment systems

Abstract

The embodiment of the application provides a transaction processing method, device and equipment based on a blockchain and a storage medium, and relates to the technical field of blockchains. The method comprises the following steps: receiving a transaction request sent by a first user, if the transaction to be processed is determined to be a delay transaction or a periodic cycle transaction according to transaction information included in the transaction request, determining a target transaction queue for storing the transaction information in a plurality of preset transaction queues, and storing the transaction information to the target transaction queue; if the preset transaction packaging conditions are determined to be met, detecting target transaction information meeting the transaction processing conditions in a transaction queue based on a first intelligent contract; and carrying out transaction processing according to the target transaction information, and carrying out transaction packaging processing according to the first processing result information of the transaction processing to obtain the corresponding block of the block chain. By the embodiment of the application, transaction types and transaction processing modes in the blockchain are enriched, and the transaction processing requirements of user diversification can be met.

Description

Transaction processing method, device, equipment and storage medium based on blockchain
Technical Field
The present disclosure relates to the field of blockchain technologies, and in particular, to a blockchain-based transaction processing method, device, equipment, and storage medium.
Background
Blockchains are widely used in a variety of fields with their decentralised, non-tamperable, traceable properties, among which one of the typical applications is transaction processing. In the current transaction processing process based on the blockchain, the transaction is usually executed immediately after each transaction is received, and the processing mode of the transaction is relatively single. However, with the increasing types of services, the processing requirements of users for transactions become diversified, and the single immediate transaction processing manner cannot meet the diversified transaction processing requirements of users.
Disclosure of Invention
The embodiment of the application aims to provide a transaction processing method, device, equipment and storage medium based on a blockchain, so as to solve the problem that the current transaction processing mode based on the blockchain is single and cannot meet the transaction processing requirements of users in various ways.
To solve the above technical problems, one or more embodiments of the present application are implemented as follows:
in a first aspect, an embodiment of the present application provides a blockchain-based transaction processing method, including:
receiving a transaction request sent by a first user; wherein the transaction request includes transaction information for a transaction to be processed;
If the to-be-processed transaction is a delayed transaction or a periodic circulation transaction according to the transaction information, determining a target transaction queue for storing the transaction information in a plurality of preset transaction queues, and storing the transaction information to the target transaction queue;
if the preset transaction packaging conditions are determined to be met, detecting target transaction information meeting the transaction processing conditions in the transaction queue based on a first intelligent contract;
and carrying out transaction processing according to the target transaction information, and carrying out transaction packaging processing according to the first processing result information of the transaction processing to obtain corresponding blocks of the block chain.
In a second aspect, embodiments of the present application provide a blockchain-based transaction processing device, including:
the receiving module is used for receiving a transaction request sent by a first user; wherein the transaction request includes transaction information for a transaction to be processed;
the determining module is used for determining a target transaction queue for storing the transaction information in a plurality of preset transaction queues if the transaction to be processed is determined to be a delay transaction or a periodic cycle transaction according to the transaction information, and storing the transaction information to the target transaction queue;
The detection module is used for detecting target transaction information meeting transaction processing conditions in the transaction queue based on a first intelligent contract if the preset transaction packaging conditions are determined to be met;
the processing module is used for carrying out transaction processing according to the target transaction information;
and the packing module is used for carrying out transaction packing processing according to the first processing result information of the transaction processing to obtain corresponding blocks.
In a third aspect, embodiments of the present application provide a blockchain-based transaction processing device, including: a processor, and a memory arranged to store computer executable instructions; the computer executable instructions, when executed, cause the processor to implement the steps of the blockchain-based transaction processing method provided in the first aspect above.
In a fourth aspect, embodiments of the present application provide a computer readable storage medium having a computer program stored thereon, which when executed by a processor, implements the steps of the blockchain-based transaction processing method provided in the first aspect.
In the embodiment of the application, when the block link point receives a transaction request sent by a first user, if the transaction to be processed is determined to be a delay transaction or a periodic cycle transaction according to transaction information in the transaction request, determining a target transaction queue for storing the transaction information in a plurality of preset transaction queues, and storing the transaction information in the determined target transaction queue; if the preset transaction packaging conditions are met, detecting target transaction information meeting the transaction processing conditions in each transaction queue based on the first intelligent contract; and carrying out transaction processing according to the target transaction information, and carrying out transaction packaging processing according to the first processing result information of the transaction processing to obtain a corresponding block. Therefore, through presetting a plurality of transaction queues and storing transaction information of delayed transaction or periodic cycle transaction through the transaction queues, target transaction information meeting transaction processing conditions in the transaction queues can be detected when the preset transaction packaging conditions are confirmed to be met, and transaction processing and packaging processing are carried out according to the target transaction information; the method realizes the related processing of the delay transaction and the periodic circulation transaction, enriches the transaction types and the processing modes of the transaction in the blockchain, and can meet the diversified transaction processing requirements of the current user.
Drawings
In order to more clearly illustrate one or more embodiments of the present application or the prior art solutions, the following description will briefly describe the drawings used in the embodiments or the prior art descriptions, and it should be apparent that the drawings in the following description are only some embodiments described in the present application, and that other drawings may be obtained according to these drawings without inventive effort to a person having ordinary skill in the art.
Fig. 1 is a schematic view of a scenario of a transaction processing method based on blockchain according to an embodiment of the present application;
FIG. 2 is a first flowchart of a transaction processing method based on blockchain according to an embodiment of the present disclosure;
FIG. 3 is a second flowchart of a transaction processing method based on blockchain according to an embodiment of the present disclosure;
FIG. 4 is a third flow chart of a transaction processing method based on blockchain according to the embodiment of the present application;
FIG. 5 is a fourth flowchart of a transaction processing method based on blockchain according to the embodiments of the present application;
FIG. 6 is a fifth flowchart of a transaction processing method based on blockchain according to the embodiments of the present application;
FIG. 7 is a sixth flowchart of a transaction processing method based on blockchain according to the embodiments of the present application;
FIG. 8 is a schematic diagram illustrating the module composition of a blockchain-based transaction processing device according to an embodiment of the present disclosure;
fig. 9 is a schematic structural diagram of a transaction processing device based on blockchain according to an embodiment of the present application.
Detailed Description
In order to better understand the technical solutions in the embodiments of the present application, the following description will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments of the present application without making any inventive effort, shall fall within the scope of the present application.
Fig. 1 is an application scenario schematic diagram of a transaction processing method based on blockchain, provided in an embodiment of the present application, as shown in fig. 1, where the scenario includes: a terminal device of a first user and at least one blockchain node (only one shown in fig. 1) accessing the blockchain; the terminal equipment is a mobile phone, a tablet computer, a desktop computer, a portable notebook computer and the like.
Specifically, when a first user wants to conduct transaction processing of a transaction to be processed through a blockchain, operating terminal equipment of the first user to edit transaction information, responding to the transaction operation of the first user, and sending a transaction request to a blockchain link point according to the acquired transaction information; the transaction to be processed can be an instant transaction, a delayed transaction, a periodic circulation transaction and the like. When the blockchain node receives a transaction request sent by a first user, if the transaction to be processed is determined to be a delay transaction or a periodic cycle transaction according to transaction information in the transaction request, determining a target transaction queue for storing the transaction information in n preset transaction queues, and storing the transaction information to the determined target transaction queue; if the preset transaction packaging conditions are met, detecting target transaction information meeting the transaction processing conditions in each transaction queue based on the first intelligent contract; and carrying out transaction processing according to the target transaction information, and carrying out transaction packaging processing according to the first processing result information of the transaction processing to obtain a corresponding block. Other transactions shown in fig. 1, such as instant transactions, etc. Therefore, through presetting a plurality of transaction queues and storing transaction information of delayed transaction or periodic cycle transaction through the transaction queues, target transaction information meeting transaction processing conditions in the transaction queues can be detected when the preset transaction packaging conditions are confirmed to be met, and transaction processing and packaging processing are carried out according to the target transaction information; the method realizes the related processing of the delay transaction and the periodic circulation transaction, enriches the transaction types and the processing modes of the transaction in the blockchain, and can meet the diversified transaction processing requirements of the current user.
Based on the above application scenario architecture, the embodiment of the present application provides a transaction processing method based on a blockchain, and fig. 2 is a flow chart of the transaction processing method based on the blockchain provided in the embodiment of the present application, where the method in fig. 2 can be executed by the blockchain node in fig. 1, as shown in fig. 2, and the method includes the following steps:
step S102, receiving a transaction request sent by a first user; wherein the transaction request includes transaction information for the transaction to be processed;
the transaction information may include a transaction name, a transaction parameter, a transaction type, contract address information and contract identification information of a second intelligent contract corresponding to the transaction to be processed, signature data of the first user, user information of the first user, and the like. Where transaction names such as transfer transactions, statistical transactions, etc. The transaction parameters may vary from transaction to transaction, such as in a transfer transaction, and may include transfer-out account information, transfer-in account information, transfer amount, and the like. The transaction type is used to characterize the type of transaction to be processed, such as instant transaction, delayed transaction, periodic recurring transaction, etc. Wherein the instant transaction is an immediately executed transaction. The delayed transaction is a transaction executed when a specified transaction execution condition is reached, such as a transaction executed when a specified transaction execution time or a specified transaction execution block height is reached, etc.; when the transaction to be processed is a delayed transaction, the transaction information may further include transaction execution condition information; if the current block height of the blockchain is 1000 blocks, the transaction information includes transaction execution condition information when the block height is 1050, and the like. The periodic recurring transactions are transactions executed in a plurality of cycles according to a specified period, such as transactions executed once every 2 days, transactions executed every 200 blocks newly added, and the like. The second smart contract may be a smart contract provided by a service provider for transaction processing of the corresponding transaction; each second smart contract has unique contract address information, and the contract identification information can change along with the change (such as updating and the like) of the second smart contract; contract identification information such as hash value, version number, etc. of the second smart contract; when the contract identification information is a version number, it may be preset that the version number is sequentially incremented when the second smart contract is changed, such as V1.0, V1.1, V1.2, etc. The signature data may be data obtained by performing signature processing on the specified data according to a private key of the first user, where the specified data may be set by itself in actual application according to needs, and each data other than the signature data in the transaction information is entered to perform signature and the like. First user information such as a first user identification, etc.
Further, when the transaction to be processed is a delayed transaction or a periodic recurring transaction, the transaction to be processed may include a plurality of first transactions having a dependency relationship that may be reflected by a priority of transaction processing; accordingly, the transaction information may also include priority information. As an example, the pending transactions include 3 transactions with a dependency relationship, denoted as transaction 1, transaction 2, and transaction 3, respectively, where transaction 1 has a priority greater than that of transaction 2, transaction 2 has a priority greater than that of transaction 3, and so on.
Step S104, if the to-be-processed transaction is a delay transaction or a periodic cycle transaction according to the transaction information, determining a target transaction queue for storing the transaction information in a plurality of preset transaction queues, and storing the transaction information in the target transaction queue;
specifically, transaction type information is obtained from transaction information, and if the obtained transaction type information characterizes delayed processing of the transaction to be processed, the transaction to be processed is determined to be delayed transaction; if the obtained transaction type information represents that the transaction to be processed is periodically and circularly processed, determining that the transaction to be processed is periodically and circularly processed; and if the obtained transaction type information represents that the transaction to be processed is processed in real time, determining that the transaction to be processed is the real-time transaction. As an example, the identification information of each transaction type may be preset, for example, the transaction identification of the delayed transaction is 01, and accordingly, when the blockchain node obtains the transaction type information 01 from the transaction information, it is determined that the delayed transaction is performed on the transaction to be processed, that is, the transaction to be processed is the delayed transaction. As another example, the transaction type information includes transaction execution condition information, and the transaction type is determined according to the transaction execution condition information, and if the transaction type information acquired from the transaction information includes "time/24 hours", it may be determined that the periodic cycle processing is performed on the transaction to be processed, that is, the transaction to be processed is the periodic cycle transaction, or the like. It should be noted that the specific content, format, etc. of the transaction type information may be set as required in practical application.
Furthermore, in order to realize the processing of the delayed transaction and the periodic cycle transaction and the effective processing of a plurality of transactions with a dependency relationship, a plurality of transaction queues are preset in each blockchain node, each transaction queue corresponds to a priority, and the transaction information of the delayed transaction and the periodic cycle transaction is stored through the transaction queues. The number of the transaction queues can be set according to the needs in practical application, for example, 6 transaction queues are set, and the corresponding priorities are priority 1, priority 2, priority 3 …, priority 6 and the like.
Step S106, if the preset transaction packaging conditions are determined to be met, detecting target transaction information meeting the transaction processing conditions in the transaction queue based on the first intelligent contract;
the transaction packing conditions can be set according to the needs in practical application, such as the number of transactions to be packed reaches a preset number, the size of a storage space required for storing the transactions to be packed reaches a preset size, and the like.
Step S108, carrying out transaction processing according to the target transaction information, and carrying out transaction packaging processing according to the first processing result information of the transaction processing to obtain corresponding blocks of the block chain.
In one or more embodiments of the present application, when a block link point receives a transaction request sent by a first user, if it is determined that a transaction to be processed is a delayed transaction or a periodic cycle transaction according to transaction information in the transaction request, determining a target transaction queue for storing the transaction information in a plurality of preset transaction queues, and storing the transaction information in the determined target transaction queue; if the preset transaction packaging conditions are met, detecting target transaction information meeting the transaction processing conditions in each transaction queue based on the first intelligent contract; and carrying out transaction processing according to the target transaction information, and carrying out transaction packaging processing according to the first processing result information of the transaction processing to obtain a corresponding block. Therefore, through presetting a plurality of transaction queues and storing transaction information of delayed transaction or periodic cycle transaction through the transaction queues, target transaction information meeting transaction processing conditions in the transaction queues can be detected when the preset transaction packaging conditions are confirmed to be met, and transaction processing and packaging processing are carried out according to the target transaction information; the method realizes the related processing of the delay transaction and the periodic circulation transaction, enriches the transaction types and the processing modes of the transaction in the blockchain, and can meet the diversified transaction processing requirements of the current user.
To ensure that the transaction is effectively performed, in one or more embodiments of the present application, the transaction information is also validated after the transaction request is received. Specifically, as shown in fig. 3, step S104 may include the following steps S104-2:
step S104-2, if the transaction information is determined to be valid and the transaction to be processed is a delayed transaction or a periodic cycle transaction, determining a target transaction queue for storing the transaction information in a plurality of preset transaction queues, and storing the transaction information in the target transaction queue.
Wherein determining that the transaction information is valid comprises: and calling the first intelligent contract, and if the contract identification information is determined to be valid based on the first intelligent contract, signature data is verified to pass, and the storage capacity required for storing the transaction information is determined to be not more than the preset capacity, determining that the transaction information is valid.
Specifically, in order to realize effective management and call of the second intelligent contract, an association relation between contract address information and contract identification information is preset, and the association relation is stored in each blockchain node; when the service provider performs processing such as updating on the second intelligent contract, the corresponding contract address information and the updated contract identification information of the second intelligent contract are required to be sent to each blockchain node, and each blockchain node updates the stored association relation according to the received contract address information and contract identification information. When the block link point receives a transaction request, calling a first intelligent contract, and acquiring associated contract identification information from a stored association relation based on contract address information in transaction information included in the transaction request by the first intelligent contract; matching the acquired contract identification information with contract identification information in the transaction information, if the matching fails, determining that the transaction information is invalid, and sending request failure information to a first user; if the matching is successful, a corresponding public key is acquired according to the user information in the transaction information, signature data in the transaction information is verified according to the acquired public key, if verification fails, the transaction information is determined to be invalid, and request failure information is sent to the first user; if the verification is successful, determining the storage capacity required for storing the transaction information, and if the determined storage capacity is larger than the preset capacity, determining that the transaction information is invalid, and sending request failure information to the first user; and if the determined storage capacity is not greater than the preset capacity, determining that the transaction information is valid. It should be noted that, when the transaction to be processed includes a plurality of first transactions having an association relationship, the storage capacity required for storing the transaction information of each first transaction is determined respectively, and the storage capacity is determined, and when it is determined that the storage capacity required for storing the transaction information of any one of the first transactions is greater than the preset capacity, it is determined that the transaction information is invalid, and the request failure information is sent to the first user. The preset capacity may be a maximum storage capacity of the transaction queue, or a capacity value set to not exceed the maximum storage capacity of the transaction queue, for example, the maximum storage capacity of the transaction queue is 2G, the preset capacity is 1.9G, etc.
Therefore, by verifying contract identification information in the transaction information, the problems that the corresponding second intelligent contract is updated and the transaction cannot be executed are avoided; by verifying the signature data, the risk that other people impersonate the first user to initiate a transaction and cause loss to the first user is avoided; by verifying the storage capacity, the problems that the transaction cannot be effectively executed due to overlarge transaction information and incapability of being stored in a transaction queue are avoided.
Further, considering that when the transaction to be processed includes a plurality of first transactions having a dependency relationship, the execution of each first transaction needs to be performed according to a priority specified by the user, in order to ensure the sequentiality of the transaction execution, as shown in fig. 4, step S104 may include the following steps S104-4 to S104-8:
step S104-4, if the to-be-processed transaction is determined to be a delay transaction or a periodic cycle transaction according to the transaction information, determining whether the to-be-processed transaction comprises a plurality of first transactions with dependency relationships according to the transaction information, if yes, executing step S104-6, otherwise, executing step S104-8;
step S104-6, acquiring priority information among the first transactions from the transaction information, carrying out matching processing on the acquired priority information and priority information corresponding to a plurality of transaction queues to obtain target transaction queues for storing the transaction information of each first transaction, and storing the transaction information of each first transaction into the corresponding target transaction queues;
Specifically, when the first number of the first transactions is smaller than the second number of the transaction queues, each first transaction may be respectively stored in a continuous first number of transaction queues, or may be respectively stored in a discontinuous first number of transaction queues. As an example, there are 6 transaction queues, which are respectively marked as a transaction queue 1, a transaction queue 2 … and a transaction queue 6 according to the priority from high to low; the transaction to be processed comprises 3 first transactions with a dependency relationship, which are respectively marked as transaction 1, transaction 2 and transaction 3; the priority information obtained from the transaction information is that the transaction 1 is priority 1, the transaction 2 is priority 2, and the transaction 3 is priority 3; wherein, priority 1> priority 2> priority 3; the acquired priority information and the priority information of the transaction queue are matched, so that the transaction queue 1 is a target transaction queue for storing transaction information of the transaction 1, the transaction queue 2 is a target transaction queue for storing transaction information of the transaction 2, and the transaction queue 3 is a target transaction queue for storing transaction information of the transaction 3; alternatively, it is determined that the transaction queue 2 is a target transaction queue for holding transaction information of the transaction 1, the transaction queue 3 is a target transaction queue for holding transaction information of the transaction 2, and the transaction queue 4 is a target transaction queue for holding transaction information of the transaction 3; alternatively, it is determined that the transaction queue 1 is a target transaction queue for holding transaction information of the transaction 1, the transaction queue 3 is a target transaction queue for holding transaction information of the transaction 2, the transaction queue 6 is a target transaction queue for holding transaction information of the transaction 3, and the like. When the first number of the first transactions is smaller than the second number of the transaction queues, the determination mode of the target transaction queues can be set according to the needs in practical application.
Further, when the first number of the first transactions is equal to the second number of the transaction queues, each transaction queue may be determined as a target transaction queue for storing transaction information of the corresponding first transaction according to the order of priority from high to low; if the priority is from high to low transaction 1 to transaction 6, it is determined that transaction queue 1 is a target transaction queue for holding transaction information of transaction 1, transaction queue 2 is a target transaction queue … for holding transaction information of transaction 2, and transaction queue 6 is a target transaction queue for holding transaction information of transaction 6.
Further, if the first number of the first transactions is greater than the second number of the transaction queues, the transaction information may further include transaction execution information that characterizes whether the transactions may be executed concurrently. Alternatively, if the user specifies that the transactions may be executed concurrently, the first transactions may be packaged into different blocks in a priority order from high to low. Accordingly, step S104-6 may include: acquiring priority information among the first transactions from the transaction information, and dividing the first transactions into a plurality of first transaction sets according to the order of the priority from high to low if the first number of the first transactions is larger than the second number of the transaction queues and the transaction information comprises transaction execution information which characterizes the smooth execution; wherein the number of first transactions in each first transaction set is no greater than the second number; before the transaction packaging processing, determining a first transaction set to be processed currently according to the order of the priority from high to low; and matching the priority information of each first transaction in the first transaction set to be processed currently with the priority information corresponding to the transaction queues to obtain a target transaction queue for storing the transaction information of each first transaction in the first transaction set to be processed currently.
Specifically, the first transaction is divided into a plurality of first transaction sets according to the order of priority from high to low; determining a first transaction set as a first transaction set to be processed currently, and storing other first transaction sets into a transaction pool; matching the priority information of each first transaction in the current to-be-processed first transaction set with the priority information corresponding to the transaction queue to obtain a target transaction queue for storing the transaction information of each first transaction in the current to-be-processed first transaction set, and storing the transaction information of each first transaction in the current to-be-processed first transaction set into the corresponding target transaction queue; if the preset transaction packaging condition is met and the transaction information of each first transaction in the first transaction set to be processed currently is determined to be the target transaction information based on the first intelligent contract, carrying out transaction processing, and carrying out transaction packaging processing according to the first processing result information of the transaction processing to obtain a corresponding block of the block chain; acquiring a first transaction set from a transaction pool according to the order of the priority from high to low, determining the first transaction set as a first transaction set to be processed currently, and performing related processing on the first transaction set to be processed currently according to the mode to obtain a corresponding block; and so on until all processing of each first transaction set is complete. As an example, 6 transaction queues are preset, the current block height is 1000, the transaction to be processed includes 8 first transactions with a dependency relationship, and the transactions 1 and 2 and … are marked as transaction 8 in sequence from high to low according to the priority, the transactions 1 to 6 can be divided into a first transaction set, the transaction 7 and the transaction 8 are divided into a first transaction set, and the first transaction set including the transactions 1 to 6 is firstly processed to obtain a 1001 st block; the first set of transactions, including transaction 7 and transaction 8, is then processed as described above, resulting in a 1002 th block. It should be noted that, the transactions 1 to 5 may be further divided into a first transaction set, and the transactions 6 to 8 may be divided into a first transaction set, where a specific division manner of the first transaction set may be set according to needs in practical applications.
Further, if the first number of the first transactions is greater than the second number of the transaction queues, and the user specifies that the transactions cannot be executed in a smooth manner, the step S104-6 may include: acquiring priority information among the first transactions from the transaction information, and dividing each first transaction into a plurality of second transaction sets according to the order of priority from high to low if the first number of the first transactions is larger than the second number of the transaction queues and the transaction information does not comprise transaction execution information representing the smooth execution; wherein the number of the second set of transactions is no greater than the second number; determining priority information of each second transaction set, and carrying out matching processing on the determined priority information and priority information corresponding to a plurality of transaction queues to obtain a target transaction queue for storing transaction information corresponding to each second transaction set;
correspondingly, storing the transaction information in the target transaction queue may include: and storing the transaction information of each first transaction in each second transaction set into a corresponding target transaction queue in sequence from high priority to low priority.
As an example, 6 transaction queues are preset, the transaction to be processed includes 8 first transactions with a dependency relationship, and the first transactions are marked as transaction 1 and transaction 2 … transaction 8 in turn according to the priority from high to low, and then the transactions 1 to 5 can be respectively divided into a second transaction set, and the transactions 6 to 8 are divided into a second transaction set, so as to obtain 6 second transaction sets; and determining the transaction queue 1 as a target transaction queue for storing transaction information of the transaction 1, and storing the transaction information of the transaction 1 into the transaction queue 1; determining the transaction queue 2 as a target transaction queue for storing transaction information of the transaction 2, and storing the transaction information of the transaction 2 into the transaction queue 2; determining the transaction queue 3 as a target transaction queue for storing transaction information of the transaction 3, and storing the transaction information of the transaction 3 into the transaction queue 3; determining the transaction queue 4 as a target transaction queue for storing transaction information of the transaction 4, and storing the transaction information of the transaction 4 into the transaction queue 4; determining the transaction queue 5 as a target transaction queue for storing transaction information of the transaction 5, and storing the transaction information of the transaction 5 into the transaction queue 5; the transaction queue 6 is determined as a target transaction queue for storing transaction information of the transactions 6 to 8, the transaction information of the transactions 6 to 8 is sequentially stored in the transaction queue 6 from high to low in priority, the transaction 6 is executed before the transaction 7, and the transaction 7 is executed before the transaction 8. Or dividing the transaction 1 and the transaction 2 into a second transaction set, dividing the transaction 3 and the transaction 5 into a second transaction set, and dividing the transactions 6 to 8 into a second transaction set respectively to obtain 5 second transaction sets; determining a transaction queue 1 as a target transaction queue for storing transaction information of the transaction 1 and the transaction 2, and sequentially storing the transaction information of the transaction 1 and the transaction information of the transaction 2 into the transaction queue 1 according to the order of priority from high to low so that the transaction 1 is executed before the transaction 2; determining a transaction queue 2 as a target transaction queue for storing transaction information of transactions 3 to 5, sequentially storing the transaction information of the transactions 3 to 5 into the transaction queue 2 according to the order of priority from high to low, so that the transactions 3 are executed before the transactions 4, and the transactions 4 are self-propelled before the transactions 5; determining the transaction queue 3 as a target transaction queue for storing transaction information of the transaction 6, and storing the transaction information of the transaction 6 into the transaction queue 3; determining the transaction queue 4 as a target transaction queue for storing transaction information of the transaction 7, and saving the transaction information of the transaction 7 into the transaction queue 4; the transaction queue 5 is determined as a target transaction queue for storing transaction information of the transaction 8, and the transaction information of the transaction 8 is saved in the transaction queue 5. It should be noted that, the dividing manner of the second transaction set may be set according to the needs in practical application, so long as the number of the transaction sets is ensured not to be greater than the second number of the transaction queues, and each transaction in the same set is sequentially saved to the corresponding transaction queue according to the mode of priority from high to low, so as to ensure that the transaction with high priority is executed first.
Step S104-8, determining a target transaction queue for storing transaction information in a plurality of preset transaction queues according to a preset mode, and storing the transaction information to the corresponding target transaction queue.
Optionally, a transaction queue with the highest priority in the preset transaction queues is determined as a target transaction queue; or randomly selecting one transaction queue from a plurality of preset transaction queues to determine the transaction queue as a target transaction queue; and acquiring a transaction queue with the largest remaining storage capacity among a plurality of preset transaction queues, and determining the transaction queue as a target transaction queue. When the transaction to be processed does not include a plurality of first transactions with dependency relationships, the determination mode of the target transaction queue can be set according to the needs in actual application.
Therefore, through presetting a plurality of transaction queues and storing transaction information of delayed transaction or periodic cycle transaction through the transaction queues, target transaction information meeting transaction processing conditions in the transaction queues can be detected when the preset transaction packaging conditions are confirmed to be met, and transaction processing and packaging processing are carried out according to the target transaction information; the method realizes the related processing of the delay transaction and the periodic circulation transaction, enriches the transaction types and the processing modes of the transaction in the blockchain, and can meet the diversified transaction processing requirements of the current user.
It should be noted that, the total storage capacity of the transaction queue in the embodiment of the present application is smaller than the storage capacity of each block in the blockchain, and based on the consensus mechanism of the blockchain, the consistency of the transaction queue maintained by each blockchain node can be ensured, so when the transaction packaging condition is determined to be met, the transaction queue is detected, the target transaction information meeting the transaction processing condition can be ensured to be executed and packaged to the corresponding block, and the transaction processing requirements of the delayed transaction and the periodic cycle transaction are met.
In order to ensure that the plurality of first transactions having the dependency relationship are executed in the order of the specified priority, in one or more embodiments of the present application, as shown in fig. 5, step S106 includes the following steps S106-2 and S106-4:
step S106-2, if the preset transaction packaging condition is determined to be met, calling a first intelligent contract, and sequentially acquiring each transaction information in each transaction queue according to the priority information corresponding to a plurality of transaction queues and the order of the priority from high to low based on the first intelligent contract;
step S106-4, if the current time is determined to be matched with the appointed transaction execution time in the acquired transaction information, the acquired transaction information is determined to be target transaction information meeting the transaction processing conditions; or if the current block height of the blockchain is matched with the transaction execution block height specified in the acquired transaction information, the acquired transaction information is determined to be target transaction information meeting the transaction processing conditions.
As an example, 6 transaction queues are preset, and are sequentially marked as a transaction queue 1 to a transaction queue 6 according to the order of the priority from high to low, and each transaction queue is marked as a transaction queue from high to low according to the order from the beginning to the end; firstly, determining a transaction queue 1 as a current transaction queue, determining first transaction information stored in the current transaction queue as current transaction information according to the sequence from beginning to end, performing matching processing on transaction execution time or transaction execution block height designated in the current transaction information and the current time or the current block height to obtain a matching result, and determining the first transaction information in the unmatched transaction information as the current transaction information if unmatched transaction information exists after the current transaction information in the current transaction queue, and performing matching processing on the current transaction information according to the mode; if no unmatched transaction information exists after the current transaction information in the current transaction queue is determined, determining the next transaction queue of the current transaction queue as the current transaction queue, determining the first transaction information stored in the current transaction queue as the current transaction information according to the sequence from beginning to end, and carrying out matching processing on the current transaction information according to the mode; and the same is repeated until all transaction information stored in all transaction queues are matched and completed, so that all target transaction information is obtained.
And the first intelligent contract is used for sequentially carrying out matching processing on each transaction information according to the order of the priority from high to low to obtain target transaction information, so that the detection efficiency is ensured, and a plurality of transactions with the dependency relationship can be ensured to be sequentially executed according to the dependency relationship.
In order to enable the transaction corresponding to the target transaction information to be quickly and effectively executed, in one or more embodiments of the present application, the transaction processing is performed based on the second smart contract, specifically, as shown in fig. 6, step S108 may include the following steps S108-2 and S108-4:
step S108-2, determining a corresponding second intelligent contract according to each target transaction information, calling the determined second intelligent contract, and carrying out transaction processing according to the corresponding target transaction information based on the second intelligent contract;
specifically, contract address information is obtained from each piece of target transaction information, a second intelligent contract corresponding to the obtained contract address information is called, and transaction processing is carried out according to the corresponding target transaction information based on the second intelligent contract.
And S108-4, carrying out transaction packaging processing according to the first processing result information of the transaction processing to obtain corresponding blocks of the block chain.
It should be noted that the first smart contract and the second smart contract described above may be executed in a virtual machine environment; or in a corresponding process, such as a native process.
Further, considering that it is not meaningful to store the corresponding transaction information in the transaction queue after the delayed transaction is executed, after the transaction processing according to the target transaction information in step S104, the method further includes:
and if the transaction corresponding to the target transaction information is determined to be the delayed transaction, removing the target transaction information from the corresponding transaction queue.
When the transaction corresponding to the target transaction information is a delayed transaction, the storage space can be timely released by removing the target transaction information from the corresponding transaction queue.
Further, given that periodic recurring transactions may be performed in a recurring manner, over time, the corresponding transaction data may be more and more complex, and thus the rate of execution of the transactions may be slower and slower than the rate of execution of the transactions required by the blockchain system. Based on this, in one or more embodiments of the present application, when the transaction to be processed is a periodic recurring transaction, the method may further include:
And if the to-be-processed transaction meets the preset transaction removal condition, removing the transaction information from the corresponding transaction queue, and sending a transaction removal prompt message to the first user.
Wherein, the preset transaction removal condition is that the execution rate of the transaction is larger than the preset rate, the gas of the first user is completely consumed, and the like. By removing transaction information meeting preset transaction removal conditions from the corresponding transaction queues, stable operation of the blockchain system can be ensured.
Further, considering that in practical application, the user has processing requirements of delay transaction and periodic circulation transaction, and also has processing requirements of instant transaction; based on this, in one or more embodiments of the present application, as shown in fig. 7, the method further includes the following step S103:
step S103, if the to-be-processed transaction is determined to be an instant transaction according to the transaction information, performing transaction processing according to the transaction information to obtain second processing result information, and executing step S106;
accordingly, step S108 includes the following steps S108-6 and S108-8:
step S108-6, according to the target transaction information transaction processing, obtaining first processing result information;
and S108-8, carrying out transaction packaging processing according to the first processing result information and/or the second processing result information to obtain corresponding blocks of the block chain.
Specifically, when the preset transaction packaging condition is determined to be met, if the second processing result information exists and the target transaction information exists, transaction packaging processing is performed according to the first processing result information and the second processing result information to obtain corresponding blocks of the blockchain. When the preset transaction packaging condition is determined to be met, if the second processing result information is not present and the target transaction information is present, transaction packaging processing is carried out according to the first processing result information to obtain a corresponding block of the block chain. When the preset transaction packaging condition is determined to be met, if the second processing result information exists and the target transaction information does not exist, transaction packaging processing is carried out according to the second processing result information to obtain corresponding blocks of the blockchain.
In one or more embodiments of the present application, when a block link point receives a transaction request sent by a first user, if it is determined that a transaction to be processed is a delayed transaction or a periodic cycle transaction according to transaction information in the transaction request, determining a target transaction queue for storing the transaction information in a plurality of preset transaction queues, and storing the transaction information in the determined target transaction queue; if the preset transaction packaging conditions are met, detecting target transaction information meeting the transaction processing conditions in each transaction queue based on the first intelligent contract; and carrying out transaction processing according to the target transaction information, and carrying out transaction packaging processing according to the first processing result information of the transaction processing to obtain a corresponding block. Therefore, through presetting a plurality of transaction queues and storing transaction information of delayed transaction or periodic cycle transaction through the transaction queues, target transaction information meeting transaction processing conditions in the transaction queues can be detected when the preset transaction packaging conditions are confirmed to be met, and transaction processing and packaging processing are carried out according to the target transaction information; the method realizes the related processing of the delay transaction and the periodic circulation transaction, enriches the transaction types and the processing modes of the transaction in the blockchain, and can meet the diversified transaction processing requirements of the current user.
Further, corresponding to the above-described transaction processing method based on the blockchain, based on the same technical concept, the embodiment of the application further provides a transaction processing device based on the blockchain, which is applied to the first blockchain node. Fig. 8 is a schematic block diagram of a block chain-based transaction processing device according to an embodiment of the present application, where, as shown in fig. 8, the device includes:
a receiving module 201, configured to receive a transaction request sent by a first user; wherein the transaction request includes transaction information for a transaction to be processed;
a determining module 202, configured to determine a target transaction queue for storing the transaction information in a preset plurality of transaction queues, and store the transaction information in the target transaction queue if the transaction to be processed is determined to be a delayed transaction or a periodic cycle transaction according to the transaction information;
the detection module 203 is configured to detect, if it is determined that the preset transaction packaging condition is met, target transaction information in the transaction queue that meets a transaction processing condition based on a first smart contract;
a processing module 204, configured to perform transaction processing according to the target transaction information;
and the packing module 205 is configured to perform transaction packing processing according to the first processing result information of the transaction processing to obtain a corresponding block.
When a transaction request sent by a first user is received, if it is determined that a transaction to be processed is a delayed transaction or a periodic cycle transaction according to transaction information in the transaction request, determining a target transaction queue for storing the transaction information in a plurality of preset transaction queues, and storing the transaction information in the determined target transaction queue; if the preset transaction packaging conditions are met, detecting target transaction information meeting the transaction processing conditions in each transaction queue based on the first intelligent contract; and carrying out transaction processing according to the target transaction information, and carrying out transaction packaging processing according to the first processing result information of the transaction processing to obtain a corresponding block. Therefore, through presetting a plurality of transaction queues and storing transaction information of delayed transaction or periodic cycle transaction through the transaction queues, target transaction information meeting transaction processing conditions in the transaction queues can be detected when the preset transaction packaging conditions are confirmed to be met, and transaction processing and packaging processing are carried out according to the target transaction information; the method realizes the related processing of the delay transaction and the periodic circulation transaction, enriches the transaction types and the processing modes of the transaction in the blockchain, and can meet the diversified transaction processing requirements of the current user.
Optionally, the determining module 202 is specifically configured to obtain transaction type information from the transaction information;
if the transaction type information characterizes delay processing of the transaction to be processed, determining that the transaction to be processed is delay transaction;
and if the transaction type information characterizes that the to-be-processed transaction is subjected to periodic cyclic processing, determining that the to-be-processed transaction is a periodic cyclic transaction.
Optionally, the determining module 202 is specifically configured to determine a target transaction queue for storing the transaction information in a preset plurality of transaction queues, and store the transaction information to the target transaction queue if the transaction information is determined to be valid and the transaction to be processed is a delayed transaction or a periodic cycle transaction.
Optionally, the transaction information includes contract identification information of a second intelligent contract corresponding to the to-be-processed transaction and signature data of the first user;
the determining module 202 is specifically configured to invoke the first smart contract, and determine that the transaction information is valid if the contract identification information is determined to be valid based on the first smart contract, the signature data is verified, and it is determined that a storage capacity required for storing the transaction information is not greater than a preset capacity.
Optionally, the processing module 204 is specifically configured to determine the corresponding second smart contract according to the target transaction information;
and calling the determined second intelligent contract, and carrying out transaction processing according to the target transaction information based on the second intelligent contract.
Optionally, the determining module 202 is specifically configured to determine, according to the transaction information, whether the to-be-processed transaction includes a plurality of first transactions having a dependency relationship;
if yes, priority information among the first transactions is obtained from the transaction information, the priority information is matched with the priority information corresponding to the transaction queues, and a target transaction queue for storing the transaction information of each first transaction is obtained;
if not, determining a target transaction queue for storing the transaction information in a plurality of preset transaction queues according to a preset mode.
Optionally, the determining module 202 is specifically configured to divide the first transaction into a plurality of first transaction sets according to a priority order from high to low if it is determined that the first number of the first transactions is greater than the second number of the transaction queues and the transaction information includes transaction execution information that characterizes the executable transaction; wherein the number of first transactions in each first set of transactions is no greater than the second number;
Before the transaction packaging processing, determining a first transaction set to be processed currently according to the order of the priority from high to low;
and matching the priority information of each first transaction in the first transaction set to be processed currently with the priority information corresponding to the transaction queues to obtain a target transaction queue for storing the transaction information of each first transaction in the first transaction set to be processed currently.
Optionally, the determining module 202 is specifically configured to divide the first transaction into a plurality of second transaction sets according to a priority order from high to low if the first number of the first transactions is greater than the second number of the transaction queues and the transaction information does not include transaction execution information that characterizes the transactions that can be executed in a concurrent manner; wherein the number of the second set of transactions is not greater than the second number;
determining priority information of each second transaction set, and carrying out matching processing on the determined priority information and priority information corresponding to the transaction queues to obtain a target transaction queue for storing transaction information corresponding to each second transaction set; the method comprises the steps of,
And storing the transaction information of each first transaction in each second transaction set into a corresponding target transaction queue in sequence from high priority to low priority.
Optionally, the detecting module 203 is specifically configured to invoke a first intelligent contract, and sequentially obtain, according to the order of priority from high to low, each transaction information in each transaction queue based on priority information corresponding to the plurality of transaction queues by using the first intelligent contract;
if the current time is matched with the appointed transaction execution time in the acquired transaction information, determining the acquired transaction information as target transaction information meeting the transaction processing conditions; or if the current block height of the blockchain is matched with the transaction execution block height specified in the acquired transaction information, determining the acquired transaction information as target transaction information meeting the transaction processing conditions.
Optionally, the apparatus further comprises: a first removal module;
the first removing module removes the target transaction information from the corresponding transaction queue if it is determined that the transaction corresponding to the target transaction information is a delayed transaction after the processing module 204 performs the transaction processing according to the target transaction information.
Optionally, the apparatus further comprises: a second removal module and a transmission module;
the second removing module is used for removing the transaction information from the corresponding transaction queue if the to-be-processed transaction meets the preset transaction removing condition when the to-be-processed transaction is a periodic circulation transaction;
and the sending module is used for sending transaction removal prompt information to the first user.
Optionally, if the transaction to be processed is determined to be an instant transaction according to the transaction information, the processing module 204 performs transaction processing according to the transaction information to obtain second processing result information;
the packing module 205 performs transaction packing processing according to the first processing result information and/or the second processing result information to obtain corresponding blocks of the blockchain.
When a transaction request sent by a first user is received, if it is determined that a transaction to be processed is a delayed transaction or a periodic cycle transaction according to transaction information in the transaction request, determining a target transaction queue for storing the transaction information in a plurality of preset transaction queues, and storing the transaction information in the determined target transaction queue; if the preset transaction packaging conditions are met, detecting target transaction information meeting the transaction processing conditions in each transaction queue based on the first intelligent contract; and carrying out transaction processing according to the target transaction information, and carrying out transaction packaging processing according to the first processing result information of the transaction processing to obtain a corresponding block. Therefore, through presetting a plurality of transaction queues and storing transaction information of delayed transaction or periodic cycle transaction through the transaction queues, target transaction information meeting transaction processing conditions in the transaction queues can be detected when the preset transaction packaging conditions are confirmed to be met, and transaction processing and packaging processing are carried out according to the target transaction information; the method realizes the related processing of the delay transaction and the periodic circulation transaction, enriches the transaction types and the processing modes of the transaction in the blockchain, and can meet the diversified transaction processing requirements of the current user.
It should be noted that, the embodiments of the blockchain-based transaction processing device and the embodiments of the blockchain-based transaction processing method in the present application are based on the same inventive concept, so that the specific implementation of the embodiments may refer to the implementation of the corresponding blockchain-based transaction processing method, and the repetition is omitted.
Further, corresponding to the above-mentioned blockchain-based transaction processing method, based on the same technical concept, the embodiments of the present application further provide a blockchain-based transaction processing device, where the device is configured to execute the above-mentioned blockchain-based transaction processing method, and fig. 9 is a schematic structural diagram of the blockchain-based transaction processing device provided in the embodiments of the present application.
As shown in FIG. 9, blockchain-based transaction processing devices may vary considerably in configuration or performance, and may include one or more processors 301 and memory 302, where memory 302 may store one or more storage applications or data. Wherein the memory 302 may be transient storage or persistent storage. The application programs stored in memory 302 may include one or more modules (not shown in the figures), each of which may include a series of computer executable instructions in a blockchain-based transaction processing device. Still further, the processor 301 may be configured to communicate with the memory 302 to execute a series of computer executable instructions in the memory 302 on a blockchain-based transaction processing device. The blockchain-based transaction processing device may also include one or more power supplies 303, one or more wired or wireless network interfaces 304, one or more input/output interfaces 305, one or more keyboards 306, and the like.
In one particular embodiment, a blockchain-based transaction processing device includes a memory, and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs may include one or more modules, and each module may include a series of computer-executable instructions for the blockchain-based transaction processing device, and configured to be executed by the one or more processors, the one or more programs including computer-executable instructions for:
receiving a transaction request sent by a first user; wherein the transaction request includes transaction information for a transaction to be processed;
if the to-be-processed transaction is a delayed transaction or a periodic circulation transaction according to the transaction information, determining a target transaction queue for storing the transaction information in a plurality of preset transaction queues, and storing the transaction information to the target transaction queue;
if the preset transaction packaging conditions are determined to be met, detecting target transaction information meeting the transaction processing conditions in the transaction queue based on a first intelligent contract;
and carrying out transaction processing according to the target transaction information, and carrying out transaction packaging processing according to the first processing result information of the transaction processing to obtain corresponding blocks of the block chain.
Optionally, the computer executable instructions, when executed, determine from the transaction information that the pending transaction is a delayed transaction or a periodic recurring transaction, comprising:
acquiring transaction type information from the transaction information;
if the transaction type information characterizes delay processing of the transaction to be processed, determining that the transaction to be processed is delay transaction;
and if the transaction type information characterizes that the to-be-processed transaction is subjected to periodic cyclic processing, determining that the to-be-processed transaction is a periodic cyclic transaction.
Optionally, when the computer executable instructions are executed, if the transaction to be processed is determined to be a delayed transaction or a periodic cycle transaction according to the transaction information, determining a target transaction queue for storing the transaction information in a preset plurality of transaction queues, and storing the transaction information in the target transaction queue, including:
if the transaction information is determined to be effective and the transaction to be processed is a delayed transaction or a periodic cycle transaction, determining a target transaction queue for storing the transaction information in a plurality of preset transaction queues, and storing the transaction information to the target transaction queue.
Optionally, when executed, the transaction information includes contract identification information of a second smart contract corresponding to the pending transaction and signature data of the first user;
the determining that the transaction information is valid includes:
and calling the first intelligent contract, and if the contract identification information is determined to be valid based on the first intelligent contract, the signature data is verified to pass, and the storage capacity required for storing the transaction information is determined to be not more than the preset capacity, determining that the transaction information is valid.
Optionally, the computer executable instructions, when executed, perform transaction processing according to the target transaction information, including:
determining the corresponding second intelligent contract according to the target transaction information;
and calling the determined second intelligent contract, and carrying out transaction processing according to the target transaction information based on the second intelligent contract.
Optionally, the determining a target transaction queue for storing the transaction information in a preset plurality of transaction queues when the computer executable instructions are executed includes:
determining whether the to-be-processed transaction comprises a plurality of first transactions with a dependency relationship according to the transaction information;
If yes, priority information among the first transactions is obtained from the transaction information, the priority information is matched with the priority information corresponding to the transaction queues, and a target transaction queue for storing the transaction information of each first transaction is obtained;
if not, determining a target transaction queue for storing the transaction information in a plurality of preset transaction queues according to a preset mode.
Optionally, when the computer executable instructions are executed, the matching processing is performed on the priority information and the priority information corresponding to the transaction queues to obtain a target transaction queue for storing the transaction information of each first transaction, where the matching processing includes:
if the first number of the first transactions is determined to be greater than the second number of the transaction queues, and transaction execution information representing that the transactions can be executed smoothly is included in the transaction information, dividing the first transactions into a plurality of first transaction sets according to the order of priority from high to low; wherein the number of first transactions in each first set of transactions is no greater than the second number;
before the transaction packaging processing, determining a first transaction set to be processed currently according to the order of the priority from high to low;
And matching the priority information of each first transaction in the first transaction set to be processed currently with the priority information corresponding to the transaction queues to obtain a target transaction queue for storing the transaction information of each first transaction in the first transaction set to be processed currently.
Optionally, when the computer executable instructions are executed, the matching processing is performed on the priority information and the priority information corresponding to the transaction queues to obtain a target transaction queue for storing the transaction information of each first transaction, where the matching processing includes:
if the first number of the first transactions is greater than the second number of the transaction queues and the transaction information does not include transaction execution information representing that the transactions can be executed smoothly, dividing the first transactions into a plurality of second transaction sets according to the order of priority from high to low; wherein the number of the second set of transactions is not greater than the second number;
determining priority information of each second transaction set, and carrying out matching processing on the determined priority information and priority information corresponding to the transaction queues to obtain a target transaction queue for storing transaction information corresponding to each second transaction set;
The saving the transaction information to the target transaction queue includes:
and storing the transaction information of each first transaction in each second transaction set into a corresponding target transaction queue in sequence from high priority to low priority.
Optionally, the computer executable instructions, when executed, detect target transaction information in the transaction queue that meets a transaction processing condition based on a first smart contract, comprising:
invoking a first intelligent contract, and sequentially acquiring each transaction information in each transaction queue according to the priority information corresponding to the transaction queues and the order of the priority from high to low based on the first intelligent contract;
if the current time is matched with the appointed transaction execution time in the acquired transaction information, determining the acquired transaction information as target transaction information meeting the transaction processing conditions; or if the current block height of the blockchain is matched with the transaction execution block height specified in the acquired transaction information, determining the acquired transaction information as target transaction information meeting the transaction processing conditions.
Optionally, the computer executable instructions, when executed, further comprise, after the transaction processing according to the target transaction information:
And if the transaction corresponding to the target transaction information is determined to be a delayed transaction, removing the target transaction information from the corresponding transaction queue.
Optionally, the computer executable instructions, when executed, the transaction to be processed is a periodic recurring transaction, the method further comprising:
if the transaction to be processed meets the preset transaction removing condition, removing the transaction information from the corresponding transaction queue;
and sending transaction removal prompt information to the first user.
Optionally, the computer executable instructions, when executed, further comprise:
if the to-be-processed transaction is determined to be an instant transaction according to the transaction information, performing transaction processing according to the transaction information to obtain second processing result information;
the transaction packaging processing is performed according to the first processing result information of the transaction processing to obtain a corresponding block of a blockchain, including:
and carrying out transaction packaging processing according to the first processing result information and/or the second processing result information to obtain corresponding blocks of the block chain.
When a transaction request sent by a first user is received, if a to-be-processed transaction is determined to be a delayed transaction or a periodic cycle transaction according to transaction information in the transaction request, determining a target transaction queue for storing the transaction information in a plurality of preset transaction queues, and storing the transaction information in the determined target transaction queue; if the preset transaction packaging conditions are met, detecting target transaction information meeting the transaction processing conditions in each transaction queue based on the first intelligent contract; and carrying out transaction processing according to the target transaction information, and carrying out transaction packaging processing according to the first processing result information of the transaction processing to obtain a corresponding block. Therefore, through presetting a plurality of transaction queues and storing transaction information of delayed transaction or periodic cycle transaction through the transaction queues, target transaction information meeting transaction processing conditions in the transaction queues can be detected when the preset transaction packaging conditions are confirmed to be met, and transaction processing and packaging processing are carried out according to the target transaction information; the method realizes the related processing of the delay transaction and the periodic circulation transaction, enriches the transaction types and the processing modes of the transaction in the blockchain, and can meet the diversified transaction processing requirements of the current user.
It should be noted that, the embodiments of the blockchain-based transaction processing device and the embodiments of the blockchain-based transaction processing method in the present application are based on the same inventive concept, so that the specific implementation of the embodiments may refer to the implementation of the corresponding blockchain-based transaction processing method, and the repetition is omitted.
Further, in accordance with the above data processing method, based on the same technical concept, one or more embodiments of the present application further provide a storage medium, which is used to store computer executable instructions, and in a specific embodiment, the storage medium may be a U disc, an optical disc, a hard disk, etc., where the computer executable instructions stored in the storage medium can implement the following flow when executed by a processor:
receiving a transaction request sent by a first user; wherein the transaction request includes transaction information for a transaction to be processed;
if the to-be-processed transaction is a delayed transaction or a periodic circulation transaction according to the transaction information, determining a target transaction queue for storing the transaction information in a plurality of preset transaction queues, and storing the transaction information to the target transaction queue;
If the preset transaction packaging conditions are determined to be met, detecting target transaction information meeting the transaction processing conditions in the transaction queue based on a first intelligent contract;
and carrying out transaction processing according to the target transaction information, and carrying out transaction packaging processing according to the first processing result information of the transaction processing to obtain corresponding blocks of the block chain.
Optionally, the computer executable instructions stored on the storage medium, when executed by the processor, determine from the transaction information that the transaction to be processed is a delayed transaction or a periodic recurring transaction, comprising:
acquiring transaction type information from the transaction information;
if the transaction type information characterizes delay processing of the transaction to be processed, determining that the transaction to be processed is delay transaction;
and if the transaction type information characterizes that the to-be-processed transaction is subjected to periodic cyclic processing, determining that the to-be-processed transaction is a periodic cyclic transaction.
Optionally, when executed by the processor, the determining a target transaction queue for storing the transaction information in a preset plurality of transaction queues if the transaction to be processed is determined to be a delayed transaction or a periodic cycle transaction according to the transaction information, and storing the transaction information in the target transaction queue includes:
If the transaction information is determined to be effective and the transaction to be processed is a delayed transaction or a periodic cycle transaction, determining a target transaction queue for storing the transaction information in a plurality of preset transaction queues, and storing the transaction information to the target transaction queue.
Optionally, the computer executable instructions stored on the storage medium, when executed by the processor, the transaction information includes contract identification information of a second smart contract corresponding to the pending transaction and signature data of the first user;
the determining that the transaction information is valid includes:
and calling the first intelligent contract, and if the contract identification information is determined to be valid based on the first intelligent contract, the signature data is verified to pass, and the storage capacity required for storing the transaction information is determined to be not more than the preset capacity, determining that the transaction information is valid.
Optionally, the storage medium stores computer executable instructions that, when executed by the processor, perform transaction processing according to the target transaction information, including:
determining the corresponding second intelligent contract according to the target transaction information;
and calling the determined second intelligent contract, and carrying out transaction processing according to the target transaction information based on the second intelligent contract.
Optionally, the computer executable instructions stored on the storage medium, when executed by the processor, determine a target transaction queue of a plurality of preset transaction queues for storing the transaction information, including:
determining whether the to-be-processed transaction comprises a plurality of first transactions with a dependency relationship according to the transaction information;
if yes, priority information among the first transactions is obtained from the transaction information, the priority information is matched with the priority information corresponding to the transaction queues, and a target transaction queue for storing the transaction information of each first transaction is obtained;
if not, determining a target transaction queue for storing the transaction information in a plurality of preset transaction queues according to a preset mode.
Optionally, when the computer executable instructions stored in the storage medium are executed by the processor, the matching processing is performed on the priority information and the priority information corresponding to the transaction queues, to obtain a target transaction queue for storing the transaction information of each first transaction, including:
if the first number of the first transactions is determined to be greater than the second number of the transaction queues, and transaction execution information representing that the transactions can be executed smoothly is included in the transaction information, dividing the first transactions into a plurality of first transaction sets according to the order of priority from high to low; wherein the number of first transactions in each first set of transactions is no greater than the second number;
Before the transaction packaging processing, determining a first transaction set to be processed currently according to the order of the priority from high to low;
and matching the priority information of each first transaction in the first transaction set to be processed currently with the priority information corresponding to the transaction queues to obtain a target transaction queue for storing the transaction information of each first transaction in the first transaction set to be processed currently.
Optionally, when the computer executable instructions stored in the storage medium are executed by the processor, the matching processing is performed on the priority information and the priority information corresponding to the transaction queues, to obtain a target transaction queue for storing the transaction information of each first transaction, including:
if the first number of the first transactions is greater than the second number of the transaction queues and the transaction information does not include transaction execution information representing that the transactions can be executed smoothly, dividing the first transactions into a plurality of second transaction sets according to the order of priority from high to low; wherein the number of the second set of transactions is not greater than the second number;
determining priority information of each second transaction set, and carrying out matching processing on the determined priority information and priority information corresponding to the transaction queues to obtain a target transaction queue for storing transaction information corresponding to each second transaction set;
The saving the transaction information to the target transaction queue includes:
and storing the transaction information of each first transaction in each second transaction set into a corresponding target transaction queue in sequence from high priority to low priority.
Optionally, the computer executable instructions stored on the storage medium, when executed by the processor, detect, based on the first smart contract, target transaction information in the transaction queue that meets a transaction processing condition, comprising:
invoking a first intelligent contract, and sequentially acquiring each transaction information in each transaction queue according to the priority information corresponding to the transaction queues and the order of the priority from high to low based on the first intelligent contract;
if the current time is matched with the appointed transaction execution time in the acquired transaction information, determining the acquired transaction information as target transaction information meeting the transaction processing conditions; or if the current block height of the blockchain is matched with the transaction execution block height specified in the acquired transaction information, determining the acquired transaction information as target transaction information meeting the transaction processing conditions.
Optionally, the computer executable instructions stored on the storage medium, when executed by the processor, further comprise, after the transaction processing according to the target transaction information:
And if the transaction corresponding to the target transaction information is determined to be a delayed transaction, removing the target transaction information from the corresponding transaction queue.
Optionally, the storage medium stores computer executable instructions that, when executed by the processor, the pending transaction is a periodic recurring transaction, the method further comprising:
if the transaction to be processed meets the preset transaction removing condition, removing the transaction information from the corresponding transaction queue;
and sending transaction removal prompt information to the first user.
Optionally, the storage medium stores computer executable instructions that, when executed by the processor, further comprise:
if the to-be-processed transaction is determined to be an instant transaction according to the transaction information, performing transaction processing according to the transaction information to obtain second processing result information;
the transaction packaging processing is performed according to the first processing result information of the transaction processing to obtain a corresponding block of a blockchain, including:
and carrying out transaction packaging processing according to the first processing result information and/or the second processing result information to obtain corresponding blocks of the block chain.
When the block chain node receives a transaction request sent by a first user, if the transaction to be processed is determined to be a delayed transaction or a periodic cycle transaction according to transaction information in the transaction request, determining a target transaction queue for storing the transaction information in a plurality of preset transaction queues, and storing the transaction information to the determined target transaction queue; if the preset transaction packaging conditions are met, detecting target transaction information meeting the transaction processing conditions in each transaction queue based on the first intelligent contract; and carrying out transaction processing according to the target transaction information, and carrying out transaction packaging processing according to the first processing result information of the transaction processing to obtain a corresponding block. Therefore, through presetting a plurality of transaction queues and storing transaction information of delayed transaction or periodic cycle transaction through the transaction queues, target transaction information meeting transaction processing conditions in the transaction queues can be detected when the preset transaction packaging conditions are confirmed to be met, and transaction processing and packaging processing are carried out according to the target transaction information; the method realizes the related processing of the delay transaction and the periodic circulation transaction, enriches the transaction types and the processing modes of the transaction in the blockchain, and can meet the diversified transaction processing requirements of the current user.
It should be noted that, in the present specification, the embodiment about the storage medium and the embodiment about the blockchain-based transaction processing method in the present specification are based on the same inventive concept, so that the specific implementation of this embodiment may refer to the implementation of the corresponding blockchain-based transaction processing method, and the repetition is omitted.
One skilled in the relevant art will recognize that one or more embodiments of the present description may be provided as a method, system, or computer program product. Accordingly, one or more embodiments of the present description may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present description can take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
The present description is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the specification. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises the element.
One or more embodiments of the present specification may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. One or more embodiments of the specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
In this specification, each embodiment is described in a progressive manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for system embodiments, since they are substantially similar to method embodiments, the description is relatively simple, as relevant to see a section of the description of method embodiments.
The foregoing description is by way of example only and is not intended to limit the present disclosure. Various modifications and changes may occur to those skilled in the art. Any modifications, equivalent substitutions, improvements, etc. that fall within the spirit and principles of the present document are intended to be included within the scope of the claims of the present document.

Claims (14)

1. A blockchain-based transaction processing method, comprising:
receiving a transaction request sent by a first user; wherein the transaction request includes transaction information for a transaction to be processed;
if the to-be-processed transaction is a delayed transaction or a periodic circulation transaction according to the transaction information, determining a target transaction queue for storing the transaction information in a plurality of preset transaction queues, and storing the transaction information to the target transaction queue;
if the preset transaction packaging conditions are determined to be met, detecting target transaction information meeting the transaction processing conditions in the transaction queue based on a first intelligent contract;
carrying out transaction processing according to the target transaction information, and carrying out transaction packaging processing according to first processing result information of the transaction processing to obtain corresponding blocks of a block chain;
wherein the determining that the transaction to be processed is a delayed transaction or a periodic recurring transaction according to the transaction information includes:
acquiring transaction type information from the transaction information;
if the transaction type information characterizes delay processing of the transaction to be processed, determining that the transaction to be processed is delay transaction;
If the transaction type information characterizes that the to-be-processed transaction is subjected to periodic cyclic processing, determining that the to-be-processed transaction is a periodic cyclic transaction;
if the obtained transaction type information represents that the transaction to be processed is processed in real time, determining that the transaction to be processed is the real-time transaction;
if the transaction to be processed is determined to be a delayed transaction or a periodic cycle transaction according to the transaction information, determining a target transaction queue for storing the transaction information in a plurality of preset transaction queues, and storing the transaction information to the target transaction queue, including:
if the transaction information is determined to be effective and the transaction to be processed is a delayed transaction or a periodic cycle transaction, determining a target transaction queue for storing the transaction information in a plurality of preset transaction queues, and storing the transaction information to the target transaction queue;
the method further comprises the steps of:
if the to-be-processed transaction is determined to be an instant transaction according to the transaction information, performing transaction processing according to the transaction information to obtain second processing result information;
the transaction packaging processing is performed according to the first processing result information of the transaction processing to obtain a corresponding block of a blockchain, including:
Carrying out transaction packaging processing according to the first processing result information and/or the second processing result information to obtain corresponding blocks of a block chain; when the preset transaction packaging condition is determined to be met, if the second processing result information exists and the target transaction information exists, carrying out transaction packaging processing according to the first processing result information and the second processing result information to obtain corresponding blocks of the blockchain; when the preset transaction packaging condition is determined to be met, if the second processing result information does not exist and the target transaction information exists, performing transaction packaging processing according to the first processing result information to obtain a corresponding block of the block chain; when the preset transaction packaging condition is determined to be met, if the second processing result information exists and the target transaction information does not exist, transaction packaging processing is carried out according to the second processing result information to obtain corresponding blocks of the blockchain.
2. The method of claim 1, wherein the transaction information includes contract identification information of a second smart contract corresponding to the pending transaction and signature data of the first user;
the determining that the transaction information is valid includes:
and calling the first intelligent contract, and if the contract identification information is determined to be valid based on the first intelligent contract, the signature data is verified to pass, and the storage capacity required for storing the transaction information is determined to be not more than the preset capacity, determining that the transaction information is valid.
3. The method of claim 2, wherein conducting transaction processing based on the target transaction information comprises:
determining the corresponding second intelligent contract according to the target transaction information;
and calling the determined second intelligent contract, and carrying out transaction processing according to the target transaction information based on the second intelligent contract.
4. The method of claim 1, wherein determining a target transaction queue of a plurality of predetermined transaction queues for storing the transaction information comprises:
determining whether the to-be-processed transaction comprises a plurality of first transactions with a dependency relationship according to the transaction information;
if yes, priority information among the first transactions is obtained from the transaction information, the priority information is matched with the priority information corresponding to the transaction queues, and a target transaction queue for storing the transaction information of each first transaction is obtained;
if not, determining a target transaction queue for storing the transaction information in a plurality of preset transaction queues according to a preset mode.
5. The method of claim 4, wherein the matching the priority information with priority information corresponding to the plurality of transaction queues to obtain a target transaction queue for storing transaction information of each of the first transactions, includes:
If the first number of the first transactions is determined to be greater than the second number of the transaction queues, and transaction execution information representing that the transactions can be executed smoothly is included in the transaction information, dividing the first transactions into a plurality of first transaction sets according to the order of priority from high to low; wherein the number of first transactions in each first set of transactions is no greater than the second number;
before the transaction packaging processing, determining a first transaction set to be processed currently according to the order of the priority from high to low;
and matching the priority information of each first transaction in the first transaction set to be processed currently with the priority information corresponding to the transaction queues to obtain a target transaction queue for storing the transaction information of each first transaction in the first transaction set to be processed currently.
6. The method of claim 4, wherein the matching the priority information with priority information corresponding to the plurality of transaction queues to obtain a target transaction queue for storing transaction information of each of the first transactions, includes:
if the first number of the first transactions is greater than the second number of the transaction queues and the transaction information does not include transaction execution information representing that the transactions can be executed smoothly, dividing the first transactions into a plurality of second transaction sets according to the order of priority from high to low; wherein the number of the second set of transactions is not greater than the second number;
Determining priority information of each second transaction set, and carrying out matching processing on the determined priority information and priority information corresponding to the transaction queues to obtain a target transaction queue for storing transaction information corresponding to each second transaction set;
the saving the transaction information to the target transaction queue includes:
and storing the transaction information of each first transaction in each second transaction set into a corresponding target transaction queue in sequence from high priority to low priority.
7. The method of claim 1, wherein detecting target transaction information in the transaction queue that meets a transaction processing condition based on a first smart contract comprises:
invoking a first intelligent contract, and sequentially acquiring each transaction information in each transaction queue according to the priority information corresponding to the transaction queues and the order of the priority from high to low based on the first intelligent contract;
if the current time is matched with the appointed transaction execution time in the acquired transaction information, determining the acquired transaction information as target transaction information meeting the transaction processing conditions; or if the current block height of the blockchain is matched with the transaction execution block height specified in the acquired transaction information, determining the acquired transaction information as target transaction information meeting the transaction processing conditions.
8. The method of claim 1, wherein after the transaction processing according to the target transaction information, further comprising:
and if the transaction corresponding to the target transaction information is determined to be a delayed transaction, removing the target transaction information from the corresponding transaction queue.
9. The method of claim 1, wherein the transaction to be processed is a periodic recurring transaction, the method further comprising:
if the transaction to be processed meets the preset transaction removing condition, removing the transaction information from the corresponding transaction queue;
and sending transaction removal prompt information to the first user.
10. A blockchain-based transaction processing device, comprising:
the receiving module is used for receiving a transaction request sent by a first user; wherein the transaction request includes transaction information for a transaction to be processed;
the determining module is used for determining a target transaction queue for storing the transaction information in a plurality of preset transaction queues if the transaction to be processed is determined to be a delay transaction or a periodic cycle transaction according to the transaction information, and storing the transaction information to the target transaction queue;
The detection module is used for detecting target transaction information meeting transaction processing conditions in the transaction queue based on a first intelligent contract if the preset transaction packaging conditions are determined to be met;
the processing module is used for carrying out transaction processing according to the target transaction information;
the packing module is used for carrying out transaction packing processing according to the first processing result information of the transaction processing to obtain corresponding blocks;
the determining module is specifically configured to obtain transaction type information from the transaction information;
if the transaction type information characterizes delay processing of the transaction to be processed, determining that the transaction to be processed is delay transaction;
if the transaction type information characterizes that the to-be-processed transaction is subjected to periodic cyclic processing, determining that the to-be-processed transaction is a periodic cyclic transaction;
if the obtained transaction type information represents that the transaction to be processed is processed in real time, determining that the transaction to be processed is the real-time transaction;
if the transaction information is determined to be effective and the transaction to be processed is a delayed transaction or a periodic cycle transaction, determining a target transaction queue for storing the transaction information in a plurality of preset transaction queues, and storing the transaction information to the target transaction queue;
The processing module is used for processing the transaction according to the transaction information to obtain second processing result information if the transaction to be processed is determined to be an instant transaction according to the transaction information;
the packaging module is used for carrying out transaction packaging processing according to the first processing result information and/or the second processing result information to obtain corresponding blocks of the block chain; when the preset transaction packaging condition is determined to be met, if the second processing result information exists and the target transaction information exists, carrying out transaction packaging processing according to the first processing result information and the second processing result information to obtain corresponding blocks of the blockchain; when the preset transaction packaging condition is determined to be met, if the second processing result information does not exist and the target transaction information exists, performing transaction packaging processing according to the first processing result information to obtain a corresponding block of the block chain; when the preset transaction packaging condition is determined to be met, if the second processing result information exists and the target transaction information does not exist, transaction packaging processing is carried out according to the second processing result information to obtain corresponding blocks of the blockchain.
11. The apparatus of claim 10, wherein the determining module is specifically configured to:
Determining whether the to-be-processed transaction comprises a plurality of first transactions with a dependency relationship according to the transaction information;
if yes, priority information among the first transactions is obtained from the transaction information, the priority information is matched with the priority information corresponding to the transaction queues, and a target transaction queue for storing the transaction information of each first transaction is obtained;
if not, determining a target transaction queue for storing the transaction information in a plurality of preset transaction queues according to a preset mode.
12. The apparatus of claim 10, wherein the detection module is specifically configured to:
according to priority information corresponding to the transaction queues, sequentially acquiring each transaction information in each transaction queue according to the order of priority from high to low;
if the current time is matched with the appointed transaction execution time in the acquired transaction information, determining the acquired transaction information as target transaction information meeting the transaction processing conditions; or if the current block height of the blockchain is matched with the transaction execution block height specified in the acquired transaction information, determining the acquired transaction information as target transaction information meeting the transaction processing conditions.
13. A blockchain-based transaction processing device, comprising: a processor, and a memory arranged to store computer executable instructions; the computer executable instructions, when executed, cause the processor to implement the steps of the method of any of the preceding claims 1 to 9.
14. A computer-readable storage medium, characterized in that it has stored thereon a computer program which, when executed by a processor, implements the steps of the method according to any of the preceding claims 1 to 9.
CN202011494036.1A 2020-12-17 2020-12-17 Transaction processing method, device, equipment and storage medium based on blockchain Active CN112488688B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011494036.1A CN112488688B (en) 2020-12-17 2020-12-17 Transaction processing method, device, equipment and storage medium based on blockchain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011494036.1A CN112488688B (en) 2020-12-17 2020-12-17 Transaction processing method, device, equipment and storage medium based on blockchain

Publications (2)

Publication Number Publication Date
CN112488688A CN112488688A (en) 2021-03-12
CN112488688B true CN112488688B (en) 2024-03-26

Family

ID=74917389

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011494036.1A Active CN112488688B (en) 2020-12-17 2020-12-17 Transaction processing method, device, equipment and storage medium based on blockchain

Country Status (1)

Country Link
CN (1) CN112488688B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113110925A (en) * 2021-04-09 2021-07-13 杭州复杂美科技有限公司 Block packing method and equipment based on parallel execution and storage medium
CN113781214A (en) * 2021-08-25 2021-12-10 安徽中科晶格技术有限公司 Packaging method, device and equipment for promoting transaction TPS (transaction transfer protocol) based on PoW (PoW)
CN117217920B (en) * 2023-11-08 2024-01-30 深圳海辰储能科技有限公司 Energy storage transaction data processing method, device and storage medium

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105469510A (en) * 2014-10-12 2016-04-06 吴思进 Encryption currency wallet capable of noticing in advance delayed payment or finding
CN109064168A (en) * 2018-06-12 2018-12-21 深圳前海微众银行股份有限公司 Authority control method, device and computer readable storage medium based on block chain
CN109377219A (en) * 2018-10-15 2019-02-22 深圳市必住科技有限公司 Transaction of servitude method, system, server and storage medium based on block chain
CN110245947A (en) * 2019-05-20 2019-09-17 阿里巴巴集团控股有限公司 The receipt storage method and node limited in conjunction with the condition of transaction and user type
CN110263544A (en) * 2019-05-20 2019-09-20 阿里巴巴集团控股有限公司 In conjunction with the receipt storage method and node of type of transaction and Rule of judgment
CN110717762A (en) * 2019-12-16 2020-01-21 腾讯科技(深圳)有限公司 Data processing method, data processing device, node equipment and storage medium
CN110838065A (en) * 2019-10-24 2020-02-25 腾讯云计算(北京)有限责任公司 Transaction data processing method and device
KR102099234B1 (en) * 2019-07-24 2020-04-09 최상규 System for providing finance service with payment in advance of principal using blockchain based smart contract
CN111445333A (en) * 2020-03-26 2020-07-24 腾讯科技(深圳)有限公司 Block generation method and device, computer equipment and storage medium
CN111488626A (en) * 2020-04-09 2020-08-04 腾讯科技(深圳)有限公司 Data processing method, device, equipment and medium based on block chain
CN111899008A (en) * 2020-09-17 2020-11-06 支付宝(杭州)信息技术有限公司 Resource transfer method, device, equipment and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
SG11202006981QA (en) * 2018-03-14 2020-08-28 Jieqian Zheng Block chain data processing method, management terminal, user terminal, conversion device, and medium

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105469510A (en) * 2014-10-12 2016-04-06 吴思进 Encryption currency wallet capable of noticing in advance delayed payment or finding
CN109064168A (en) * 2018-06-12 2018-12-21 深圳前海微众银行股份有限公司 Authority control method, device and computer readable storage medium based on block chain
CN109377219A (en) * 2018-10-15 2019-02-22 深圳市必住科技有限公司 Transaction of servitude method, system, server and storage medium based on block chain
CN110245947A (en) * 2019-05-20 2019-09-17 阿里巴巴集团控股有限公司 The receipt storage method and node limited in conjunction with the condition of transaction and user type
CN110263544A (en) * 2019-05-20 2019-09-20 阿里巴巴集团控股有限公司 In conjunction with the receipt storage method and node of type of transaction and Rule of judgment
KR102099234B1 (en) * 2019-07-24 2020-04-09 최상규 System for providing finance service with payment in advance of principal using blockchain based smart contract
CN110838065A (en) * 2019-10-24 2020-02-25 腾讯云计算(北京)有限责任公司 Transaction data processing method and device
CN110717762A (en) * 2019-12-16 2020-01-21 腾讯科技(深圳)有限公司 Data processing method, data processing device, node equipment and storage medium
CN111445333A (en) * 2020-03-26 2020-07-24 腾讯科技(深圳)有限公司 Block generation method and device, computer equipment and storage medium
CN111488626A (en) * 2020-04-09 2020-08-04 腾讯科技(深圳)有限公司 Data processing method, device, equipment and medium based on block chain
CN111899008A (en) * 2020-09-17 2020-11-06 支付宝(杭州)信息技术有限公司 Resource transfer method, device, equipment and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
区块链在场外衍生品市场中的应用价值;王一军;丁竞渊;应晓明;;金融纵横(第02期);第41-50页 *

Also Published As

Publication number Publication date
CN112488688A (en) 2021-03-12

Similar Documents

Publication Publication Date Title
CN112488688B (en) Transaction processing method, device, equipment and storage medium based on blockchain
EP3886403B1 (en) Block chain service acceptance and consensus method and device
EP3975474B1 (en) Methods and apparatuses for chaining service data
CN111899008B (en) Resource transfer method, device, equipment and system
CN110677462A (en) Access processing method, system, device and storage medium for multi-block chain network
CN110659905A (en) Transaction verification method, device, terminal equipment and storage medium
CN114036031B (en) Scheduling system and method for resource service application in enterprise digital middleboxes
CN112925586B (en) Applet routing method, device, computer equipment and storage medium
CN112114976B (en) Service processing method, device, equipment and storage medium
CN110764930B (en) Request or response processing method and device based on message mode
JP2005228183A (en) Program execution method and computer system for executing the program
CN106599045B (en) Request sending method and device
CN111294377B (en) Dependency network request sending method, terminal device and storage medium
CN110516477A (en) Document handling method and device
CN107402749B (en) Method and device for realizing picture loading library
US10250515B2 (en) Method and device for forwarding data messages
CN112328598B (en) ID generation method, ID generation device, electronic equipment and storage medium
CN114048059A (en) Method and device for adjusting timeout time of interface, computer equipment and storage medium
CN115220887A (en) Processing method of scheduling information, task processing system, processor and electronic equipment
CN110413427B (en) Subscription data pulling method, device, equipment and storage medium
CN110381150B (en) Data processing method and device on block chain, electronic equipment and storage medium
CN112925659A (en) Message processing method, device, equipment and computer storage medium
CN110704026A (en) Calling method and device of software development kit, terminal and readable medium
CN114268540B (en) Rule engine optimization method, device and equipment
CN113760487B (en) Service processing 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
GR01 Patent grant
GR01 Patent grant