CN111709748B - Transaction execution method and device with business attribute and electronic equipment - Google Patents

Transaction execution method and device with business attribute and electronic equipment Download PDF

Info

Publication number
CN111709748B
CN111709748B CN202010527862.5A CN202010527862A CN111709748B CN 111709748 B CN111709748 B CN 111709748B CN 202010527862 A CN202010527862 A CN 202010527862A CN 111709748 B CN111709748 B CN 111709748B
Authority
CN
China
Prior art keywords
transaction
business
contract
receipt
execution
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
CN202010527862.5A
Other languages
Chinese (zh)
Other versions
CN111709748A (en
Inventor
王晓亮
陈昊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Rivtower Technology Co Ltd
Original Assignee
Hangzhou Rivtower Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Rivtower Technology Co Ltd filed Critical Hangzhou Rivtower Technology Co Ltd
Priority to CN202010527862.5A priority Critical patent/CN111709748B/en
Publication of CN111709748A publication Critical patent/CN111709748A/en
Application granted granted Critical
Publication of CN111709748B publication Critical patent/CN111709748B/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/38Payment protocols; Details thereof
    • G06Q20/389Keeping log of transactions for guaranteeing non-repudiation of a transaction
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Finance (AREA)
  • Databases & Information Systems (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Data Mining & Analysis (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Technology Law (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the specification relates to a transaction execution method and device with service attribute and electronic equipment, and mainly comprises the following steps: sending at least one contract transaction with business attribute to the intelligent contract to obtain a transaction receipt; creating a business corresponding to the business attribute, and determining contract transaction and transaction receipt thereof related to the business; determining the execution sequence of the transaction according to the transaction receipt of the related contract transaction; the transaction receipt and the transaction execution sequence of the related contract transaction are sent to a transaction pool, and a business receipt is obtained; and executing the related contract transaction according to the transaction execution sequence. Therefore, the contract transaction with the business attribute put into the transaction pool is not randomly packed, but is associated with a specific business by a client side sending the transaction, and the specific execution steps are carried out after the execution sequence is determined, so that the business scene with the specific business attribute is supported.

Description

Transaction execution method and device with business attribute and electronic equipment
Technical Field
Embodiments of the present disclosure relate to the field of network technologies, and in particular, to a method and an apparatus for executing a transaction with a service attribute, and an electronic device.
Background
In existing blockchain systems, contract transactions may be packaged for execution at any time after being placed in a transaction pool, and the combination of the packaging is random. In transactions that are packaged together, the order of execution is also uncertain, so that its atomicity is a single contract transaction, without the concepts associated with actual business. However, in the practical application of the blockchain system, a series of corresponding transactions are required to be executed according to a fixed sequence, so that the existing transaction execution mode is insufficient to support the specific service scenario.
Disclosure of Invention
The embodiment of the specification provides a transaction execution method, a transaction execution device and electronic equipment with service attributes, which are used for solving the problem that a transaction execution method in the prior art cannot support a specific service scene.
In order to solve the above technical problems, the embodiment of the present specification adopts the following technical solutions:
in a first aspect, there is provided a transaction execution method having a business attribute, the method comprising:
sending at least one contract transaction with business attribute to the intelligent contract to obtain a transaction receipt;
creating a business corresponding to the business attribute, and determining contract transaction and transaction receipt thereof related to the business;
determining the execution sequence of the transaction according to the transaction receipt of the related contract transaction;
the transaction receipt and the transaction execution sequence of the related contract transaction are sent to a transaction pool, and a business receipt is obtained;
and executing the related contract transaction according to the transaction execution sequence.
In a second aspect, there is provided a transaction execution determination method having a business attribute, the method comprising:
sending at least one contract transaction with business attribute to the intelligent contract to obtain a transaction receipt;
creating a business corresponding to the business attribute, and determining contract transaction and transaction receipt thereof related to the business;
determining the execution sequence of the transaction according to the transaction receipt of the related contract transaction;
and sending the transaction receipt and the transaction execution sequence of the related contract transaction to a transaction pool to obtain the business receipt.
In a third aspect, there is provided a transaction execution device having business attributes, the device comprising:
a transaction transmitting module: the method comprises the steps of sending at least one contract transaction with business attribute to an intelligent contract to obtain a transaction receipt;
and a service creation module: the method comprises the steps of creating a service corresponding to a service attribute, and determining contract transaction and transaction receipt thereof related to the service;
a transaction execution sequence determining module: determining the transaction execution order according to the transaction receipt of the related contract transaction;
and a service sending module: the transaction receipt and the transaction execution sequence are used for sending the related contract transaction to a transaction pool to obtain a business receipt;
the execution module: for executing the associated contract transactions according to the transaction execution order.
In a fourth aspect, there is provided an electronic device comprising: a processor; and a memory arranged to store computer executable instructions that, when executed, cause the processor to perform:
sending at least one contract transaction with business attribute to the intelligent contract to obtain a transaction receipt;
creating a business corresponding to the business attribute, and determining contract transaction and transaction receipt thereof related to the business;
determining the execution sequence of the transaction according to the transaction receipt of the related contract transaction;
the transaction receipt and the transaction execution sequence of the related contract transaction are sent to a transaction pool, and a business receipt is obtained;
and executing the related contract transaction according to the transaction execution sequence.
In a fifth aspect, the present invention also provides a computer-readable storage medium storing one or more programs that, when executed by an electronic device comprising a plurality of application programs, cause the electronic device to perform:
sending at least one contract transaction with business attribute to the intelligent contract to obtain a transaction receipt;
creating a business corresponding to the business attribute, and determining contract transaction and transaction receipt thereof related to the business;
determining the execution sequence of the transaction according to the transaction receipt of the related contract transaction;
the transaction receipt and the transaction execution sequence of the related contract transaction are sent to a transaction pool, and a business receipt is obtained;
and executing the related contract transaction according to the transaction execution sequence.
The above-mentioned at least one technical scheme that this description embodiment adopted can reach following beneficial effect: the contract transactions put into the transaction pool are classified into normal contract transactions and contract transactions with business attributes. The contract transaction with the service attribute is not randomly packaged, but is associated with a specific service by a client side sending the transaction, and the specific execution step is entered after the execution sequence is determined, so that the service scene with the specific service attribute is supported.
Drawings
In order to more clearly illustrate the embodiments of the present description or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some of the embodiments described in the embodiments of the present description, and that other drawings may be obtained according to these drawings without inventive effort to a person skilled in the art.
FIG. 1 is a schematic diagram of a transaction execution method with business attribute according to an embodiment of the present disclosure;
FIG. 2 is a second step diagram of a transaction execution method with business attributes according to the embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of a transaction execution device with service attribute according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present specification more apparent, the technical solutions of the embodiments of the present specification will be clearly and completely described below in connection with the specific embodiments of the present specification and the corresponding drawings. It will be apparent that the described embodiments are only some, but not all, of the embodiments of the present specification. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the embodiments herein, are intended to be within the scope of the embodiments herein.
The following describes in detail the technical solutions provided by the embodiments of the present specification with reference to the accompanying drawings.
Example 1
Referring to fig. 1, a schematic step diagram of a transaction execution method with business attribute according to an embodiment of the present disclosure is provided, where the method may include the following steps:
step 101: sending at least one contract transaction with business attribute to the intelligent contract to obtain a transaction receipt;
step 102: creating a business corresponding to the business attribute, and determining contract transaction and transaction receipt thereof related to the business;
step 103: determining the execution sequence of the transaction according to the transaction receipt of the related contract transaction;
step 104: the transaction receipt and the transaction execution sequence of the related contract transaction are sent to a transaction pool, and a business receipt is obtained;
step 105: and executing the related contract transaction according to the transaction execution sequence.
It should be noted that: the contract transactions placed in the transaction pool include contract transactions having business attributes, and may also include common contract transactions without business attribute identification. In the latter case, the blockchain system may package and execute normal random transactions thereon. Whereas the business attributes may be identified by fields contained in the transaction
Optionally, the method may further include: when one of the associated contract transactions fails to execute, the other unexecuted associated contract transactions terminate.
It should be noted that: because of the capacity limitation of the transaction pool, the contract transaction with the business attribute existing in the transaction pool is in a certain time or a certain block height, and no specific business is associated with the contract transaction, and the contract transaction needs to be processed to ensure the space of effective transaction in the transaction pool. Thus optionally, the method further comprises: the contract transaction with business attributes includes a block height threshold or a time threshold, and when the block height exceeds the block height threshold or the time exceeds the time threshold, the contract transaction is removed from the transaction pool if the contract transaction is not already associated with the created business.
Optionally, the method may further include: the blockchain system sets a first blockchain asset upper limit (e.g., a quota upper limit threshold) that is consumed by all contract transactions associated with a business;
the client creating a business sets a second blockchain asset upper limit consumed by all contract transactions related to one business;
in executing the associated contract transaction, execution terminates when the consumed blockchain asset reaches a lesser value of the first blockchain asset upper limit and the second blockchain asset upper limit.
By setting the upper threshold of all blockchain assets consumed by a service, excessive loss of blockchain resources in a service execution process is ensured. The setting of the online of the asset can be performed by the system upper limit setting through a block chain system or by a client.
Optionally, the method may further include:
checking the execution condition of all contract transactions related to the business receipt according to the business receipt;
and/or
And checking the execution condition of the contract transaction according to the transaction receipt.
When the user side sends a business receipt to check results, the blockchain system can return an execution result list of all related contract transactions; when the execution termination occurs, the feedback viewing result is null.
In another alternative embodiment, referring to fig. 2, a schematic step diagram of a transaction execution method with service attribute provided in an embodiment of the present disclosure may be a client that sends a contract transaction, where the method may include the following steps:
step 201: sending at least one contract transaction with business attribute to the intelligent contract to obtain a transaction receipt;
step 202: creating a business corresponding to the business attribute, and determining contract transaction and transaction receipt thereof related to the business;
step 203: determining the execution sequence of the transaction according to the transaction receipt of the related contract transaction;
step 204: and sending the transaction receipt and the transaction execution sequence of the related contract transaction to a transaction pool to obtain the business receipt.
Optionally, the method may further comprise the steps of:
checking the execution condition of all contract transactions related to the business receipt according to the business receipt;
and/or
And checking the execution condition of the contract transaction according to the transaction receipt.
According to the technical scheme of the specification, the contract transaction put into the transaction pool is divided into common contract transaction and contract transaction with business attribute. The contract transaction with the service attribute is not randomly packaged, but is associated with a specific service by a client side sending the transaction, and the specific execution step is entered after the execution sequence is determined, so that the service scene with the specific service attribute is supported.
Example two
Referring to fig. 3, a schematic structural diagram of a transaction execution device with service attributes according to an embodiment of the present disclosure is shown, where the device mainly includes:
transaction transmitting module 301: the method comprises the steps of sending at least one contract transaction with business attribute to an intelligent contract to obtain a transaction receipt;
service creation module 302: the method comprises the steps of creating a service corresponding to a service attribute, and determining contract transaction and transaction receipt thereof related to the service;
transaction execution order determination module 303: determining the transaction execution order according to the transaction receipt of the related contract transaction;
service transmitting module 304: the transaction receipt and the transaction execution sequence are used for sending the related contract transaction to a transaction pool to obtain a business receipt;
execution module 305: for executing the associated contract transactions according to the transaction execution order.
According to the technical scheme of the specification, the contract transaction put into the transaction pool is divided into common contract transaction and contract transaction with business attribute. The contract transaction with the service attribute is not randomly packaged, but is associated with a specific service by a client side sending the transaction, and the specific execution step is entered after the execution sequence is determined, so that the service scene with the specific service attribute is supported.
It should be understood that the apparatus described in the second embodiment may execute all the technical solutions related to the method disclosed in the first embodiment in the form of a functional module, and achieve corresponding technical effects, which are not described herein in detail.
Example III
Fig. 4 is a schematic structural view of an electronic device according to an embodiment of the present specification. Referring to fig. 4, at the hardware level, the electronic device includes a processor, and optionally an internal bus, a network interface, and a memory. The Memory may include a Memory, such as a Random-Access Memory (RAM), and may further include a non-volatile Memory (non-volatile Memory), such as at least 1 disk Memory. Of course, the electronic device may also include hardware required for other services.
The processor, network interface, and memory may be interconnected by an internal bus, which may be an ISA (Industry Standard Architecture ) bus, a PCI (Peripheral Component Interconnect, peripheral component interconnect standard) bus, or EISA (Extended Industry Standard Architecture ) bus, among others. The buses may be classified as address buses, data buses, control buses, etc. For ease of illustration, only one bi-directional arrow is shown in FIG. 4, but not only one bus or type of bus.
And the memory is used for storing programs. In particular, the program may include program code including computer-operating instructions. The memory may include memory and non-volatile storage and provide instructions and data to the processor.
The processor reads the corresponding computer program from the nonvolatile memory into the memory and then runs the computer program to form the transaction execution device with the service attribute on the logic level. The processor is used for executing the programs stored in the memory and is specifically used for executing the following operations:
sending at least one contract transaction with business attribute to the intelligent contract to obtain a transaction receipt;
creating a business corresponding to the business attribute, and determining contract transaction and transaction receipt thereof related to the business;
determining the execution sequence of the transaction according to the transaction receipt of the related contract transaction;
the transaction receipt and the transaction execution sequence of the related contract transaction are sent to a transaction pool, and a business receipt is obtained;
and executing the related contract transaction according to the transaction execution sequence.
The method performed by the apparatus disclosed in the embodiments shown in fig. 1 to 3 of the present specification may be applied to a processor or implemented by a processor. The processor may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or by instructions in the form of software. The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; but also digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. The methods, steps, and logic blocks disclosed in one or more embodiments of the present description may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with one or more embodiments of the present disclosure may be embodied directly in a hardware decoding processor or in a combination of hardware and software modules in a decoding processor. The software modules may be located in a random access memory, flash memory, read only memory, programmable read only memory, or electrically erasable programmable memory, registers, etc. as well known in the art. The storage medium is located in a memory, and the processor reads the information in the memory and, in combination with its hardware, performs the steps of the above method.
The electronic device may also execute the methods of fig. 1 and fig. 2, and implement the functions of the embodiments of the corresponding devices shown in fig. 1 and fig. 2, which are not described herein again.
Of course, in addition to the software implementation, the electronic device of the embodiments of the present disclosure does not exclude other implementations, such as a logic device or a combination of software and hardware, that is, the execution subject of the following processing flow is not limited to each logic unit, but may also be hardware or a logic device.
By dividing the contract transactions put into the transaction pool into normal contract transactions and contract transactions with business attributes. The contract transaction with the service attribute is not randomly packaged, but is associated with a specific service by a client side sending the transaction, and the specific execution step is entered after the execution sequence is determined, so that the service scene with the specific service attribute is supported.
Example IV
The present description also proposes a computer-readable storage medium storing one or more programs, the one or more programs comprising instructions, which when executed by an electronic device comprising a plurality of application programs, enable the electronic device to perform the method of the embodiments of fig. 1 and 2, and in particular to perform the method of:
sending at least one contract transaction with business attribute to the intelligent contract to obtain a transaction receipt;
creating a business corresponding to the business attribute, and determining contract transaction and transaction receipt thereof related to the business;
determining the execution sequence of the transaction according to the transaction receipt of the related contract transaction;
the transaction receipt and the transaction execution sequence of the related contract transaction are sent to a transaction pool, and a business receipt is obtained;
and executing the related contract transaction according to the transaction execution sequence.
The method comprises the steps of dividing contract transactions put into a transaction pool into common contract transactions and contract transactions with business attributes, wherein the contract transactions with the business attributes are not randomly packaged, but are associated with specific businesses by a client side sending the transactions, and enter specific execution steps after determining the execution sequence of the contract transactions, so that business scenes with specific business attributes are supported.
In summary, the foregoing description is only a preferred embodiment of the present invention and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present specification should be included in the protection scope of the present specification.
The systems, devices, modules, or units illustrated in one or more of the embodiments described above may be implemented in particular by a computer chip or entity, or by a product having some function. One typical implementation is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
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 magnetic 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 (transshipment) 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.
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 describes specific embodiments of the present disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims can be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

Claims (9)

1. A transaction execution method having business attributes, the method comprising:
sending at least one contract transaction with business attribute to the intelligent contract to obtain a transaction receipt;
creating a business corresponding to the business attribute, and determining contract transaction and transaction receipt thereof related to the business;
determining the execution sequence of the transaction according to the transaction receipt of the related contract transaction;
the transaction receipt and the transaction execution sequence of the related contract transaction are sent to a transaction pool, and a business receipt is obtained;
executing the related contract transactions according to the transaction execution order;
the method further comprises: the blockchain system sets a first blockchain asset upper limit consumed by all contract transactions related to a business; the client creating a business sets a second blockchain asset upper limit consumed by all contract transactions related to one business; in executing the associated contract transaction, execution terminates when the consumed blockchain asset reaches a lesser value of the first blockchain asset upper limit and the second blockchain asset upper limit.
2. The method of claim 1, further comprising: when one of the associated contract transactions fails to execute, the other unexecuted associated contract transactions terminate.
3. The method of claim 2, further comprising: the contract transaction with business attributes includes a block height threshold or a time threshold, and when the block height exceeds the block height threshold or the time exceeds the time threshold, the contract transaction is removed from the transaction pool if the contract transaction is not already associated with the created business.
4. A method as in claims 1-3, further comprising:
checking the execution condition of all contract transactions related to the business receipt according to the business receipt;
and/or
And checking the execution condition of the contract transaction according to the transaction receipt.
5. A transaction execution determination method having business attributes, the method comprising:
sending at least one contract transaction with business attribute to the intelligent contract to obtain a transaction receipt;
creating a business corresponding to the business attribute, and determining contract transaction and transaction receipt thereof related to the business;
determining the execution sequence of the transaction according to the transaction receipt of the related contract transaction;
sending a transaction receipt and a transaction execution sequence of related contract transactions to a transaction pool to obtain a business receipt, wherein the related transactions are executed according to the transaction execution sequence; wherein in executing the associated contract transaction, the executing terminates when the consumed blockchain asset reaches a lesser value of a first blockchain asset upper limit and a second blockchain asset upper limit, the first blockchain asset upper limit being the blockchain asset upper limit consumed by all contract transactions associated with one business set by the blockchain system, the second blockchain asset upper limit being the blockchain asset upper limit consumed by all contract transactions associated with one business set by a client that created the business.
6. The method of claim 5, further comprising:
checking the execution condition of all contract transactions related to the business receipt according to the business receipt;
and/or
And checking the execution condition of the contract transaction according to the transaction receipt.
7. A transaction execution device having business attributes, the device comprising:
a transaction transmitting module: the method comprises the steps of sending at least one contract transaction with business attribute to an intelligent contract to obtain a transaction receipt;
and a service creation module: the method comprises the steps of creating a service corresponding to a service attribute, and determining contract transaction and transaction receipt thereof related to the service;
a transaction execution sequence determining module: determining the transaction execution order according to the transaction receipt of the related contract transaction;
and a service sending module: the transaction receipt and the transaction execution sequence are used for sending the related contract transaction to a transaction pool to obtain a business receipt;
the execution module: for executing the related contract transactions according to the transaction execution order;
the execution module is further configured to terminate the execution process when, during execution of the related contract transaction, the consumed blockchain asset reaches a smaller value of a first blockchain asset upper limit and a second blockchain asset upper limit, where the first blockchain asset upper limit is a blockchain asset upper limit consumed by all contract transactions related to one business set by the blockchain system, and the second blockchain asset upper limit is a blockchain asset upper limit consumed by all contract transactions related to one business set by a client that creates the business.
8. An electronic device, comprising:
a processor; and
a memory arranged to store computer executable instructions that, when executed, cause the processor to perform:
sending at least one contract transaction with business attribute to the intelligent contract to obtain a transaction receipt;
creating a business corresponding to the business attribute, and determining contract transaction and transaction receipt thereof related to the business;
determining the execution sequence of the transaction according to the transaction receipt of the related contract transaction;
the transaction receipt and the transaction execution sequence of the related contract transaction are sent to a transaction pool, and a business receipt is obtained;
executing the related contract transactions according to the transaction execution order;
the blockchain system sets a first blockchain asset upper limit consumed by all contract transactions related to a business; the client creating a business sets a second blockchain asset upper limit consumed by all contract transactions related to one business; in executing the associated contract transaction, execution terminates when the consumed blockchain asset reaches a lesser value of the first blockchain asset upper limit and the second blockchain asset upper limit.
9. A computer readable storage medium storing one or more programs that, when executed by an electronic device comprising a plurality of application programs, cause the electronic device to perform:
sending at least one contract transaction with business attribute to the intelligent contract to obtain a transaction receipt;
creating a business corresponding to the business attribute, and determining contract transaction and transaction receipt thereof related to the business;
determining the execution sequence of the transaction according to the transaction receipt of the related contract transaction;
the transaction receipt and the transaction execution sequence of the related contract transaction are sent to a transaction pool, and a business receipt is obtained;
executing the related contract transactions according to the transaction execution order;
the blockchain system sets a first blockchain asset upper limit consumed by all contract transactions related to a business; the client creating a business sets a second blockchain asset upper limit consumed by all contract transactions related to one business; in executing the associated contract transaction, execution terminates when the consumed blockchain asset reaches a lesser value of the first blockchain asset upper limit and the second blockchain asset upper limit.
CN202010527862.5A 2020-06-11 2020-06-11 Transaction execution method and device with business attribute and electronic equipment Active CN111709748B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010527862.5A CN111709748B (en) 2020-06-11 2020-06-11 Transaction execution method and device with business attribute and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010527862.5A CN111709748B (en) 2020-06-11 2020-06-11 Transaction execution method and device with business attribute and electronic equipment

Publications (2)

Publication Number Publication Date
CN111709748A CN111709748A (en) 2020-09-25
CN111709748B true CN111709748B (en) 2023-08-22

Family

ID=72540179

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010527862.5A Active CN111709748B (en) 2020-06-11 2020-06-11 Transaction execution method and device with business attribute and electronic equipment

Country Status (1)

Country Link
CN (1) CN111709748B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113225368B (en) * 2021-02-07 2022-04-19 武汉卓尔信息科技有限公司 Block chain transaction method and device, electronic equipment and storage medium
CN112837156A (en) * 2021-02-10 2021-05-25 中国人民银行数字货币研究所 Transaction method and device with fixed execution sequence

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108764870A (en) * 2018-05-29 2018-11-06 阿里巴巴集团控股有限公司 Transaction processing method and device, electronic equipment based on block chain
CN109063183A (en) * 2018-08-27 2018-12-21 众安信息技术服务有限公司 The method and device of information processing is carried out at block chain node
CN109636395A (en) * 2019-02-15 2019-04-16 上海溢唐数据科技有限公司 A kind of across the chain transaction processing system of multi-tiling chain and method
CN109635036A (en) * 2018-11-16 2019-04-16 播金信息科技(上海)有限公司 Block chain construction model and method
CN110349019A (en) * 2019-06-03 2019-10-18 阿里巴巴集团控股有限公司 Verification method, device and equipment in a kind of piece of chain type account book
CN111126977A (en) * 2019-12-27 2020-05-08 深圳大学 Transaction processing method of block chain system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190228409A1 (en) * 2017-09-13 2019-07-25 Vijay Madisetti Transaction Pools Using Smart Contracts and Blockchains
US11556874B2 (en) * 2018-06-11 2023-01-17 International Business Machines Corporation Block creation based on transaction cost and size

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108764870A (en) * 2018-05-29 2018-11-06 阿里巴巴集团控股有限公司 Transaction processing method and device, electronic equipment based on block chain
CN109063183A (en) * 2018-08-27 2018-12-21 众安信息技术服务有限公司 The method and device of information processing is carried out at block chain node
CN109635036A (en) * 2018-11-16 2019-04-16 播金信息科技(上海)有限公司 Block chain construction model and method
CN109636395A (en) * 2019-02-15 2019-04-16 上海溢唐数据科技有限公司 A kind of across the chain transaction processing system of multi-tiling chain and method
CN110349019A (en) * 2019-06-03 2019-10-18 阿里巴巴集团控股有限公司 Verification method, device and equipment in a kind of piece of chain type account book
CN111126977A (en) * 2019-12-27 2020-05-08 深圳大学 Transaction processing method of block chain system

Also Published As

Publication number Publication date
CN111709748A (en) 2020-09-25

Similar Documents

Publication Publication Date Title
US10999060B2 (en) Data processing method and apparatus
CN108846749B (en) Partitioned transaction execution system and method based on block chain technology
CN109347787B (en) Identity information identification method and device
CN109598407B (en) Method and device for executing business process
CN111898139B (en) Data reading and writing method and device and electronic equipment
CN110020859B (en) Parallel execution block chain consensus method and device and electronic equipment
CN111369358B (en) Block chain consensus method and device and electronic equipment
CN111709748B (en) Transaction execution method and device with business attribute and electronic equipment
CN111383031B (en) Intelligent contract execution method and system in block chain and electronic equipment
CN110442481B (en) Service processing method, service component container and electronic equipment
CN110992188B (en) Transaction processing method, device and equipment
CN110648125B (en) Packaging transaction method and device, electronic equipment and storage medium
CN111523887B (en) Authority control method and device for intelligent contract read-only method and electronic equipment
CN110543317A (en) transaction request processing method, device, gateway and storage medium
CN111882322A (en) Method and device for packaging transactions in sequence and electronic equipment
CN109063967B (en) Processing method and device for wind control scene feature tensor and electronic equipment
CN111159298A (en) Service request processing method and device, electronic equipment and storage medium
CN109064105A (en) A kind of resource transfers request processing method, device and electronic equipment
CN110458393B (en) Method and device for determining risk identification scheme and electronic equipment
CN110750271B (en) Service aggregation, method and device for executing aggregated service and electronic equipment
CN111369282B (en) Resource processing method and device
CN110704134A (en) Method and device for performing function expansion on block chain
CN111884809B (en) Method and device for preventing branch chain transaction replay and electronic equipment
CN112016915B (en) Method and device for providing service for user
CN111309495A (en) Batch processing request initiating method and device, risk identification platform and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: Room 2339, 2nd Floor, No. 92, Huancheng North Road, Gongshu District, Hangzhou City, Zhejiang Province 310005

Applicant after: Hangzhou Xita Technology Co.,Ltd.

Address before: 310000 No. 1001, floor 10, tower a, Huaxing Times Square, No. 478, Wensan Road, Xihu District, Hangzhou, Zhejiang Province

Applicant before: Hangzhou Xita Technology Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant